/* estilo.css - Estilos principales de CampusUNERMB */

body { 
  background-color: #f5f7fa; 
  padding-bottom: 70px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card { 
  border-radius: 15px; 
  box-shadow: 0px 2px 6px rgba(0,0,0,0.15); 
  border: none;
}

.card:hover {
  box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
  transition: box-shadow 0.3s ease;
}

main { 
  padding-top: 20px; 
}

footer {
  text-align: center;
  margin-top: 40px;
  color: #888;
  font-size: 0.9rem;
  background-color: rgba(200, 200, 200, 0.2);
  padding: 10px 0;
}

/* Badge de rol */
.badge-rol {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 4px;
  margin-left: 8px;
}

.badge-estudiante {
  background-color: #007bff;
  color: white;
}

.badge-profesor {
  background-color: #28a745;
  color: white;
}

.badge-admin {
  background-color: #dc3545;
  color: white;
}

/* Publicaciones */
#lista-publicaciones {
  display: flex;
  flex-direction: column-reverse;
}

.card .d-flex {
  flex-wrap: wrap;
}

.hidden {
  display: none;
}

/* Botones de like */
.like-btn {
  border: none;
  background: none;
  color: #6c757d;
  transition: color 0.2s ease;
}

.like-btn:hover {
  color: #dc3545;
}

.like-btn.liked {
  color: #dc3545;
}

/* Notificaciones - estilos específicos */
.activity-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #dc3545;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.trending-post {
  border-left: 4px solid #007bff;
}

.announcement-card {
  border-left: 4px solid #28a745;
}

.personal-notification {
  border-left: 4px solid #ffc107;
}

.stats-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.stats-card .card-body {
  text-align: center;
}

/* Navegación fija */
.navbar.fixed-bottom {
  height: 60px;
  z-index: 1030;
}

.navbar .nav-link {
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.navbar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Formularios */
.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  .navbar .fs-4 {
    font-size: 1.2rem !important;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  animation: fadeIn 0.3s ease-out;
}

/* Estados de carga */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Tooltips personalizados */
.tooltip-inner {
  background-color: #333;
  color: white;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.875rem;
}

/* Perfil */
.rounded-circle {
  object-fit: cover;
}