/* Animación de rebote y giro como moneda */
@keyframes coinFlip {
    0% { transform: rotateY(0) scale(1); }
    25% { transform: rotateY(90deg) scale(1.2); }
    50% { transform: rotateY(180deg) scale(1); }
    75% { transform: rotateY(270deg) scale(1.1); }
    100% { transform: rotateY(360deg) scale(1); }
}

/* Animación suave al pasar el mouse */
.left-side-menu ul li a i {
    transition: color 0.3s ease;
    display: inline-block;
}

/* Hover con animación */
.left-side-menu ul li a:hover i {
    animation: coinFlip 0.6s ease;
    color: #af1932;
}

/* Hover del enlace */
.left-side-menu ul li a:hover {
    background-color: rgba(175, 25, 50, 0.15) !important; /* Vino más claro */
    color: #af1932 !important;
}

/* Fuente moderna */
.left-side-menu {
    font-family: 'Poppins', sans-serif;
}

/* Títulos del menú */
.menu-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 15px;
    padding-left: 15px;
}
/* ===== Animación para el sidebar ===== */
.left-side-menu {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.left-side-menu.open {
    box-shadow: 4px 0 12px rgba(0,0,0,0.2);
}

/* ===== Efecto hover en items ===== */
#sidebar-menu ul li a {
    transition: background 0.25s ease, padding-left 0.25s ease, color 0.25s ease;
}
#sidebar-menu ul li a:hover {
    background: rgba(255, 255, 255, 0.08);
    padding-left: 18px;
}

/* ===== Iconos animados ===== */
#sidebar-menu i {
    transition: transform 0.25s ease, color 0.25s ease;
}
#sidebar-menu a:hover i {
    transform: scale(1.2);
    color: #ff9800;
}

/* ===== Animación para submenu ===== */
.nav-second-level {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.metismenu li.mm-active > .nav-second-level {
    max-height: 500px; /* suficiente para mostrar elementos */
}

/* ===== Badges con rebote ===== */
.badge {
    animation: bounceIn 0.6s ease;
}
@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}

/* ===== Efecto especial en Biblioteca ===== */
#sidebar-menu li a.special-link {
    position: relative;
    overflow: hidden;
}
#sidebar-menu li a.special-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: #ff9800;
    transition: left 0.3s ease;
}
#sidebar-menu li a.special-link:hover::after {
    left: 0;
}
/* Fuente para todo el menú */
.left-side-menu {
    font-family: 'Poppins', sans-serif;
}

/* Animación en iconos */
.left-side-menu i {
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover del item */
.left-side-menu ul li a {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.left-side-menu ul li a:hover {
    background-color: rgba(175, 25, 50, 0.15) !important; /* Vino más claro */
    color: #af1932 !important;
}

/* Iconos girando */
.left-side-menu ul li a:hover i {
    transform: rotate(360deg);
    color: #af1932;
}

/* Suavidad al abrir submenús */
.nav-second-level li a {
    padding-left: 30px;
    font-size: 0.95rem;
}

/* Mejorar títulos del menú */
.menu-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 15px;
    padding-left: 15px;
}

/* Animación para el dash de biblioteca */
a[href="libreria.php"]:hover span:last-child {
    opacity: 1 !important;
    transform: scale(1.05);
}
        
                
               .subject-card {
    color: #ffffff;
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subject-card:hover {
    transform: scale(1.02);
}

.subject-title {
    font-size: 2em;
    margin: 0 0 15px;
    text-align: center;
    color: #fff;
    font-weight: bold;
}

.subject-info p {
    font-size: 1.1em;
    margin: 10px 0;
    color: #e0e0e0;
}

.subject-info strong {
    color: #ffdd57;
}

.group-link {
    font-weight: bold;
    color: #ffdd57;
    text-decoration: none;
    border-bottom: 2px dotted #ffdd57;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.group-link:hover {
    color: #ff8800;
    border-bottom-color: #ff8800;
}

.students-list h3 {
    margin-top: 20px;
    font-size: 1.5em;
    text-decoration: underline;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.students-list ul {
    list-style: none;
    padding: 0;
}

.students-list li {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    margin: 8px 0;
    font-size: 1em;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s ease;
}

.students-list li:hover {
    background: rgba(255, 255, 255, 0.2);
}

.alert-h {
    background: #ff4c4c;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin: 10px 0;
    font-weight: bold;
}

.alert-warning-h {
    background: #ff9900;
}

.alert-warning-h:hover {
    background: #e07b00;
}

.notification-list .noti-icon-badge{
    height: 12px;
    width: 12px;
}
.noti-icon-badge {
     
      animation: pulse 1.0s infinite ease-in-out;
    }

    @keyframes pulse {
      0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 82, 82, 0.6);
      }
      50% {
        transform: scale(1.2);
        box-shadow: 0 0 15px rgba(255, 82, 82, 0.8);
      }
    }
         .table-custom {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(7, 61, 96, 0.08);
}

.badge-calificacion {
    background: #e3faf2;
    color: #1abc9c;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 600;
    display: inline-block;
    min-width: 50px;
    text-align: center;
}

.table-custom tr:last-child {
    border-bottom: none;
}

.table-custom tr:hover {
    background-color: #f8f9fa;
}
/* Estilos Personalizados */
.custom-modal-content {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(7, 61, 96, 0.2);
}

.gradient-bg {
  background: linear-gradient(135deg, #073d60 0%, #1a5276 100%);
  padding: 1.5rem;
  border-bottom: 3px solid #1abc9c;
}

.text-teal { color: #1abc9c; }
.text-navy { color: #073d60; }

.subject-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin: 15px 0;
  transition: transform 0.3s ease;
}

.hover-effect:hover {
  transform: translateY(-3px);
  transition: all 0.3s ease;
}

.info-item {
  padding: 12px;
  margin: 8px 0;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 8px rgba(7, 61, 96, 0.08);
}

.btn-request-s {
  background: linear-gradient(45deg, #ffc107, #ffc107);
  color: white;
  padding: 12px 35px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-request-e {
  background: linear-gradient(45deg, #64b0f2, #3db9dc);
  color: white;
  padding: 12px 35px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-request {
  background: linear-gradient(45deg, #1bb99a, #3db9dc);
  color: white;
  padding: 12px 35px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}


.btn-request-e:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px #64b0f2;
}

.btn-request-s:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px #ffc107;
}

.btn-request:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(26, 188, 156, 0.4);
}

.btn-request-e::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255,255,255,0.1);
  transform: rotate(45deg);
}
.btn-request-s::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255,255,255,0.1);
  transform: rotate(45deg);
}

.alert-soft-blue {
  background: rgba(23, 162, 184, 0.1);
  border-color: rgba(23, 162, 184, 0.2);
  color: #073d60;
  border-radius: 8px;
}

/* Evitamos conflictos con otras clases */
#gruposModal .custom-modal-content {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    animation: fadeInUp 0.5s ease-out;
    overflow: hidden;
}

#gruposModal .custom-modal-body {
    padding: 2rem;
    background: #f2f5fb;
}

#gruposModal .custom-footer {
    background: #f4f7fa;
    border-top: none;
    justify-content: center;
    padding: 1.5rem;
}

/* Scroll horizontal container */
#gruposModal .horizontal-scroll-v2 {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
}

#gruposModal .horizontal-scroll-v2::-webkit-scrollbar {
    height: 8px;
}

#gruposModal .horizontal-scroll-v2::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

/* Tarjetas con colores aleatorios */
#gruposModal .group-card {
    flex: 0 0 auto;
    width: 240px;
    min-height: 140px;
    padding: 1.2rem;
    border-radius: 1rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.3;
    text-align: left;
}

#gruposModal .group-card i {
    font-size: 2rem;
}

#gruposModal .group-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}
/* Scroll container fix */
#gruposModal .horizontal-scroll-v2 {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    max-width: 100%;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

/* Fix scroll not responding */
#gruposModal .horizontal-scroll-v2 > a,
#gruposModal .horizontal-scroll-v2 > div {
    scroll-snap-align: start;
    flex: 0 0 auto;
    pointer-events: auto;
}

/* Make sure links are clickable */
#gruposModal .group-card {
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    pointer-events: auto;
    transition: all 0.3s ease;
}
#gruposModal .group-title {
    font-size: 1rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* máximo 2 líneas */
    -webkit-box-orient: vertical;
    line-height: 1.4;
}
/* Fix modal stacking */
.modal-backdrop {
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
}

.modal-dialog {
    pointer-events: auto;
}

.nav-tabs .nav-item {
    transition: all 0.3s ease;
}
.color-1 { background: linear-gradient(135deg, #4e54c8, #8f94fb); }
.color-2 { background: linear-gradient(135deg, #00c6ff, #0072ff); }
.color-3 { background: linear-gradient(135deg, #ff6a00, #ee0979); }
.color-4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.color-5 { background: linear-gradient(135deg, #ff9a9e, #fad0c4); }
.color-6 { background: linear-gradient(135deg, #30cfd0, #330867); }



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(26, 188, 156, 0.4); }
  100% { box-shadow: 0 0 0 15px rgba(26, 188, 156, 0); }
}

@media (max-width: 768px) {
  .modal-dialog {
    margin: 10px;
  }
  .nav-tabs .nav-link {
    font-size: 14px;
    padding: 10px;
  }
  .subject-card {
    padding: 15px;
  }
  .table thead th, .table tbody td {
    font-size: 14px;
    padding: 8px;
  }
}
/* En tu archivo CSS */
.btn-hover-scale {
    transition: all 0.3s ease;
    transform: scale(1);
}
.btn-hover-scale:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

/* Estilo general para íconos de notificación y chat */
.navbar-custom .topnav-menu .notification-list > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #ffffff15; /* fondo translúcido */
    border-radius: 50%; /* redondo */
    transition: all 0.3s ease;
    margin: 0 8px; /* separación lateral */
}

/* Hover con efecto */
.navbar-custom .topnav-menu .notification-list > a:hover {
    background-color: #ffffff30;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Íconos dentro */
.navbar-custom .topnav-menu .notification-list i,
.navbar-custom .topnav-menu .notification-list svg {
    font-size: 20px;
    color: white;
}

/* Ajustar dropdown de noti/chat */
.navbar-custom .dropdown-menu {
    border-radius: 15px;
    overflow: hidden;
}
/* Espaciado y posición general de la lista de iconos */
.navbar-custom .topnav-menu.float-right {
    margin: 15px 15px 0px 0px;
}

/* Íconos redondos (noti y chat) */
.navbar-custom .topnav-menu .notification-list > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #ffffff15;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin: 0 8px; /* espacio entre iconos */
}

/* Hover */
.navbar-custom .topnav-menu .notification-list > a:hover {
    background-color: #ffffff30;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Íconos dentro */
.navbar-custom .topnav-menu .notification-list i,
.navbar-custom .topnav-menu .notification-list svg {
    font-size: 18px;
    color: white;
}

/* Avatar del usuario (solo imagen, sin texto) */
.navbar-custom .topnav-menu .nav-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Ocultar el nombre del usuario */
.navbar-custom .topnav-menu .nav-user span {
    display: none;
}

/* Estilos personalizados para el modal Classroom */
#gruposModal .custom-modal-content {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: none;
}

#gruposModal .custom-modal-body {
    padding: 24px;
    background: #f8f9fa;
}

#gruposModal .horizontal-scroll-v2 {
    display: flex;
    overflow-x: auto;
    padding: 8px;
    gap: 20px;
    scrollbar-width: thin;
    scrollbar-color: #dadce0 transparent;
}

#gruposModal .horizontal-scroll-v2::-webkit-scrollbar {
    height: 8px;
}

#gruposModal .horizontal-scroll-v2::-webkit-scrollbar-thumb {
    background-color: #dadce0;
    border-radius: 10px;
}

#gruposModal .group-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 200px;
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

#gruposModal .group-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
}

#gruposModal .group-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

#gruposModal .group-card i {
    font-size: 48px;
    margin-bottom: 16px;
    color: white;
    z-index: 1;
}

#gruposModal .group-title {
    font-family: 'Google Sans', Roboto, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: white;
    text-align: center;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#gruposModal .custom-footer {
    padding: 16px 24px;
    background: white;
    border-top: 1px solid #dadce0;
    display: flex;
    justify-content: center;
}

#gruposModal .btn-outline-secondary {
    border: 1px solid #dadce0;
    color: #5f6368;
    font-family: 'Google Sans', Roboto, Arial, sans-serif;
    font-weight: 500;
    transition: all 0.2s ease;
}

#gruposModal .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #dadce0;
}

/* Paleta de colores moderna */
#gruposModal .color-1 { background: linear-gradient(135deg, #4285F4 0%, #5B8DEF 100%); }
#gruposModal .color-2 { background: linear-gradient(135deg, #EA4335 0%, #F28B82 100%); }
#gruposModal .color-3 { background: linear-gradient(135deg, #FBBC05 0%, #FDE293 100%); }
#gruposModal .color-4 { background: linear-gradient(135deg, #34A853 0%, #81C995 100%); }
#gruposModal .color-5 { background: linear-gradient(135deg, #A142F4 0%, #C58EF4 100%); }
#gruposModal .color-6 { background: linear-gradient(135deg, #24C1E0 0%, #7EE5FA 100%); }

/* ESTILOS PARA EL MODAL REDISEÑADO */
#materia.modal {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#materia .modal-dialog {
  max-width: 95%;
}

#materia .modal-content {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: none;
}

#materia .modal-header {
  background: linear-gradient(135deg, #a91b37 0%, #7a1028 100%);
  padding: 0;
  border-bottom: none;
}

#materia .nav-tabs {
  border: none;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
}

#materia .nav-item {
  flex: 1;
  min-width: 180px;
}

#materia .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  text-align: center;
  padding: 16px 12px;
  border: none !important;
  border-radius: 0;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

#materia .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: #ffd166;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

#materia .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

#materia .nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
  font-weight: 600;
}

#materia .nav-link.active::after {
  width: 70%;
}

#materia .modal-body {
  padding: 0;
  background: #f8f9fa;
}

#materia .tab-content {
  padding: 0;
}

#materia .subject-card {
  background: white;
  border-radius: 12px;
  margin: 20px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#materia .subject-title {
  color: #a91b37;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 12px;
}

#materia .subject-info {
  margin-bottom: 20px;
}

#materia .subject-info p {
  margin-bottom: 8px;
  color: #495057;
  display: flex;
  align-items: center;
}

#materia .subject-info strong {
  color: #343a40;
  min-width: 160px;
  display: inline-block;
}

#materia .group-link {
  display: inline-block;
  background: #fff4e6;
  color: #e67700 !important;
  padding: 6px 12px;
  border-radius: 50px;
  text-decoration: none;
  margin-right: 8px;
  margin-bottom: 8px;
  font-weight: 500;
  border: 1px solid #ffd8a8;
  transition: all 0.2s ease;
}

#materia .group-link:hover {
  background: #ffe8cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(230, 119, 0, 0.2);
}

#materia .students-list {
  margin-top: 24px;
}

#materia .students-list h3 {
  color: #a91b37;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e9ecef;
}

#materia .table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#materia .table thead th {
  background: #a91b37;
  color: white;
  padding: 14px 12px;
  font-weight: 600;
  text-align: center;
  border: none;
}

#materia .table tbody td {
  padding: 12px;
  vertical-align: middle;
  text-align: center;
  border-bottom: 1px solid #e9ecef;
}

#materia .table tbody tr {
  background: white;
  transition: background 0.2s ease;
}

#materia .table tbody tr:hover {
  background: #f8f9fa;
}

#materia .form-control {
  border-radius: 6px;
  border: 1px solid #ced4da;
  padding: 6px 10px;
  text-align: center;
  width: 70px;
  margin: 0 auto;
  transition: all 0.2s ease;
}

#materia .form-control:focus {
  border-color: #a91b37;
  box-shadow: 0 0 0 0.2rem rgba(169, 27, 55, 0.25);
}

#materia button[type="submit"] {
  background: linear-gradient(135deg, #a91b37 0%, #7a1028 100%);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-weight: 600;
  margin-top: 20px;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 4px 12px rgba(169, 27, 55, 0.3);
}

#materia button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(169, 27, 55, 0.4);
}

#materia .custom-footer {
  padding: 16px 24px;
  background: white;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
}

#materia .custom-footer .btn {
  border-radius: 50px;
  padding: 8px 20px;
  font-weight: 500;
}

/* Colores para calificaciones */
.grade-confirmed {
  background: #4caf50 !important;
  color: white !important;
  font-weight: 600;
  border-radius: 6px;
  padding: 4px 8px;
}

.grade-pending {
  background: #ff9800 !important;
  color: white !important;
  font-weight: 600;
  border-radius: 6px;
  padding: 4px 8px;
}

.grade-failed {
  background: #f44336 !important;
  color: white !important;
  font-weight: 600;
  border-radius: 6px;
  padding: 4px 8px;
}

/* Scroll personalizado */
.horizontal-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #a91b37 #f1f1f1;
}

.horizontal-scroll::-webkit-scrollbar {
  height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
  background: #a91b37;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  #materia .nav-item {
    min-width: 140px;
  }
  
  #materia .subject-info strong {
    min-width: 120px;
  }
  
  #materia .table thead th {
    padding: 10px 6px;
    font-size: 14px;
  }
  
  #materia .table tbody td {
    padding: 8px 6px;
    font-size: 14px;
  }
}

/* --- Estilo tipo Classroom sin cambiar estructura --- */

.left-side-menu {
  border-right: 1px solid #e6e6e6;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.left-side-menu .slimscroll-menu {
  padding: 1rem 0;
}

#sidebar-menu ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#sidebar-menu ul li {
  margin: 5px 0px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

#sidebar-menu ul li a {
  align-items: center;
  padding: 10px 5px;
  font-size: 15px;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
}


#sidebar-menu ul li a i {
  font-size: 18px;
  margin-right: 10px;
  transition: color 0.2s ease;
}


/* Avatar dentro del menú */
#sidebar-menu ul li a img {
  border-radius: 50%;
  width: 34px;
  height: 34px;
  object-fit: cover;
  margin-right: 10px;
}

/* Títulos tipo secciones */
.menu-title {
  font-size: 12px;
  font-weight: 600;
  color: #9aa0a6;
  margin: 15px 20px 5px;
  text-transform: uppercase;
}

/* Badges */
#sidebar-menu .badge {
  background: #fbbc04;
  color: #fff;
  font-size: 11px;
  border-radius: 8px;
  padding: 2px 6px;
  margin-left: auto;
}

/* Submenús */
.nav-second-level {
  background: transparent;
  padding-left: 1.5rem;
  margin-top: 4px;
}

.nav-second-level li a {
  font-size: 14px;
  padding: 8px 12px;
}

.nav-second-level li a:hover {
  border-radius: 8px;
}

/* Barra de progreso (archivos) */
.progress {
  height: 5px !important;
  border-radius: 4px;
  background: #e0e0e0;
}

.progress-bar {
  background: #1a73e8 !important;
  border-radius: 4px;
}



/* Scroll limpio */
.slimscroll-menu::-webkit-scrollbar {
  width: 6px;
}
.slimscroll-menu::-webkit-scrollbar-thumb {
  background: #c7c7c7;
  border-radius: 3px;
}

.ek-fb-item {
    padding: 12px 14px !important;
    border-radius: 12px;
    margin: 6px 8px;
    transition: background .18s ease, transform .18s ease;
    border: 1px solid transparent;
}

.ek-fb-item:hover {
    background: #f2f4f7 !important;
    transform: translateY(-1px);
}

.ek-fb-item-unread {
    background: linear-gradient(180deg, rgba(237,245,255,.95) 0%, rgba(244,248,255,.98) 100%) !important;
    border-color: #d7e7ff;
}

.ek-fb-media {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.ek-fb-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.ek-fb-avatar,
.ek-round-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50% !important;
    object-fit: cover;
    display: block;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.10);
}

.ek-fb-online-dot {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
}

.ek-fb-iconbox {
    width: 48px;
    height: 48px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.ek-fb-iconbox i {
    font-size: 21px;
    color: #fff;
}

.ek-fb-content {
    min-width: 0;
    flex: 1;
}

.ek-fb-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.ek-fb-name {
    font-size: 14px;
    font-weight: 700;
    color: #1c1e21;
    line-height: 1.2;
}

.ek-fb-time {
    font-size: 11px;
    color: #65676b;
    white-space: nowrap;
    flex-shrink: 0;
}

.ek-fb-message {
    font-size: 13px;
    line-height: 1.35;
    color: #4b5563;
    word-break: break-word;
}

.ek-fb-message-unread {
    color: #111827;
    font-weight: 600;
}

.ek-fb-empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #eef2f7;
    color: #667085;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ek-fb-empty-icon i {
    font-size: 22px;
}

.notification-list .notify-item {
    white-space: normal !important;
}

.notification-list .notify-icon,
.notification-list .notify-details {
    float: none !important;
    margin: 0 !important;
}

.instagram-wrapper {
    width: 100%;
}

.instagram-card {
    background: linear-gradient(135deg, #ad1c39 0%, #f44336 100%);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    margin-bottom: 1.5rem;
    width: 100%;
}

.instagram-card:hover {
    transform: translateY(-5px);
}

.instagram-title {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 1rem;
    border-bottom: 2px solid var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instagram-title i {
    color: #ffffff;
    font-size: 1.5rem;
}

.instagram-embed {
    background: #fff;
    border-radius: 0 0 15px 15px;
    padding: 1px;
    transition: all 0.3s ease;
}

.instagram-embed:hover {
    box-shadow: 0 4px 20px rgba(224, 123, 0, 0.2);
}

.edu-card {
    position: relative;
    border: 1px solid #356150;
    border-left: 4px solid #356150;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 10px 0 30px 0;
    overflow: hidden;
    width: 100%;
}

.edu-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('https://edukalli.com/images/1536/15743081/20250423_2011_ComputadoraEscolarNhuatl_simple_compose_01jsjrz0jpexqrywntwdsy2z15-6GuZXOeuagO8Rde4tHFgUA.png');
    background-size: cover;
    background-position: center;
    filter: brightness(50%);
    z-index: 1;
    border-radius: 10px;
}

.edu-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(255 255 255 / 67%);
    z-index: 2;
    border-radius: 10px;
}

.edu-card-header,
.edu-card-body {
    position: relative;
    z-index: 3;
}

.edu-card-header {
    background-color: #356150;
    color: #fff;
    padding: 10px 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.edu-card-header i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.edu-card-body {
    padding: 15px;
    text-align: center;
}

.edu-logo {
    max-width: 100px;
    height: auto;
}

@media (max-width: 768px) {
    .instagram-wrapper,
    .edu-card {
        display: none;
    }
}
