.notificacion-container {
  position: relative;
  display: inline-block;  
  margin-right: 10px;
}

.icono-campana {
  cursor: pointer;
  font-size: 22px;
  position: relative;
  display: inline-block;
}

.badge {
  background-color: red;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  text-align: center;
  line-height: 1;
}
.badge2 {
  background-color: red;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  text-align: center;
  line-height: 1;
}

.vibrando {
  animation: vibrar 0.4s infinite;
}

@keyframes vibrar {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(5deg); }
  50% { transform: rotate(-5deg); }
  75% { transform: rotate(4deg); }
  100% { transform: rotate(0deg); }
}

.dropdown-notificaciones {
  display: none;
  position: absolute;
  top: calc(100% + 15px);  /*Antes era 10px o 12px — ahora 16px */
  right: 0;
  width: 330px;
  max-width: 90vw;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 9999;
}

.dropdown-notificaciones h4 {
  margin: 0;
  padding: 10px;
  border-bottom: 1px solid #ddd;
  font-size: 16px;
  background-color: #f5f5f5;
  text-align: center;
}

.lista-notificaciones {
  max-height: 300px;
  overflow-y: auto;
}

.item-notificacion {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

.item-notificacion:hover {
  background-color: #e0f0ff;  /* color más claro al hacer hover */
  transform: translateY(-2px); /* efecto de levantarse un poco */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* sombra más fuerte */
  cursor: pointer;
}

.item-notificacion .icono-item {
  font-size: 18px;
}

.item-notificacion .contenido-item {
  flex: 1;
}

.item-notificacion .contenido-item .texto {
  font-weight: normal;
  color: #333;
}

.item-notificacion .contenido-item .fecha {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.item-notificacion.vacia {
  text-align: center;
  color: #999;
}

.ver-todas {
  display: block;
  text-align: center;
  padding: 10px;
  background-color: #fafafa;
  font-weight: bold;
  text-decoration: none;
  color: #555;
  border-top: 1px solid #eee;
}

/* 📱 Mobile view: más compacto */
@media (max-width: 768px) {
  .dropdown-notificaciones {
    width: 280px;
    max-width: 90vw;
    top: calc(100% + 12px);
    left: 0;
    transform: none; /* 🔧 evitamos centrado en pantalla */
  }

  .item-notificacion {
    font-size: 13px;
  }
}




/* para las notificaciones de la pagina principal*/



.notificacion-box {
  background: linear-gradient(135deg, #ff6f61, #ff9472);
  color: white;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  position: relative;
  animation: aparecer 0.8s ease-in-out;
}

.notificacion-box h3 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
}

.notificacion-box p {
  margin: 5px 0 10px;
  font-size: 16px;
}

.notificacion-box a {
  background-color: white;
  color: #ff6f61;
  padding: 8px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
}

.notificacion-box a:hover {
  background-color: #ffe9e6;
}
.notificacion-box {
  position: fixed;
  top: 50px;
  right: 200px;
  z-index: 9999;
  width: 45px;
  background: linear-gradient(135deg, #ff6f61, #ff9472);
  color: white;
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  animation: aparecer 0.8s ease-in-out;
  transition: all 0.3s ease;
}

/* Media query para pantallas pequeñas */
@media (max-width: 768px) {
  .notificacion-box {
    right: 30%;
    transform: translateX(50%);
    width: 12%;
    top: 95px;
    text-align: center;
    border-radius: 15px;
  }
}

@keyframes aparecer {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}



/* nuevo diseño de la pagina principal
*/



.container .row {
    display: flex;
    flex-wrap: wrap;
}

.container .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.dashboard-card {
    border-radius: 12px;
    padding: 16px 12px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    margin-bottom: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: -14px;
    right: -14px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    pointer-events: none;
}

.dashboard-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -14px;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    pointer-events: none;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.dashboard-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    opacity: .95;
}

.dashboard-number {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 3px;
    letter-spacing: -1px;
}

.dashboard-label {
    font-size: .8rem;
    font-weight: 500;
    opacity: .9;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.dashboard-link {
    display: inline-block;
    margin-top: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 11px;
    text-decoration: none;
    background: rgba(255,255,255,.22);
    padding: 4px 14px;
    border-radius: 20px;
    transition: background .2s;
}

.dashboard-link:hover {
    background: rgba(255,255,255,.38);
    color: #fff;
    text-decoration: none;
}

/* ── Responsive dashboard ── */
@media (max-width: 992px) {
    .dash-welcome { padding: 12px 18px; }
    .dash-welcome-title { font-size: 15px; }
    .dash-date { font-size: 12px; }
}

@media (max-width: 768px) {
    .dash-welcome {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 12px 16px;
    }
    .dash-welcome-right { text-align: left; }

    .dash-shortcuts {
        gap: 8px;
    }
    .dash-shortcut {
        padding: 9px 14px;
        font-size: 12px;
    }

    .dashboard-card { padding: 14px 10px 12px; margin-bottom: 12px; }
    .dashboard-icon { font-size: 1.5rem; margin-bottom: 6px; }
    .dashboard-number { font-size: 1.6rem; }
    .dashboard-label { font-size: .72rem; }
    .dashboard-link { margin-top: 8px; padding: 3px 12px; font-size: 10px; }

    .col-sm-12 { width: 100% !important; }
}

@media (max-width: 480px) {
    .dash-shortcut { padding: 8px 10px; font-size: 11px; }
    .dash-shortcut i { font-size: 13px; }
    .dashboard-card { padding: 12px 8px 10px; }
    .dashboard-number { font-size: 1.4rem; }
}

.bg-docentes       { background: linear-gradient(135deg, #5b9dab, #3a7a87); }
.bg-representantes { background: linear-gradient(135deg, #4ecdc4, #2aad9e); }
.bg-estudiantes    { background: linear-gradient(135deg, #f9b730, #e09000); }
.bg-grupos         { background: linear-gradient(135deg, #4aab78, #2e7d52); }
.bg-asignaturas    { background: linear-gradient(135deg, #4a80a8, #2d5f87); }
.bg-inscripciones  { background: linear-gradient(135deg, #7986CB, #5C6BC0); }
.bg-avisos         { background: linear-gradient(135deg, #e05c58, #c0392b); }

.dashboard-number,
.dashboard-label,
.dashboard-link,
.dashboard-icon {
    color: #fff;
}


/* ── Barra de bienvenida dashboard ── */
.dash-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1a3a5c, #1976D2);
    border-radius: 12px;
    padding: 10px 24px;
    margin-bottom: 10px;
    color: #fff;
    flex-wrap: wrap;
    gap: 8px;
}

.dash-welcome-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .3px;
}

.dash-welcome-sub {
    font-size: 12px;
    opacity: .75;
    margin-top: 3px;
}

.dash-version {
    background: rgba(255,255,255,.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.dash-welcome-right {
    text-align: right;
}

.dash-date {
    font-size: 14px;
    font-weight: 600;
    opacity: .95;
}

.dash-period {
    font-size: 12px;
    opacity: .75;
    margin-top: 3px;
}

.dash-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.dash-section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D1D5DB, transparent);
}

.dash-section-text {
    font-size: 13px;
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.dash-section-text i {
    color: #1976D2;
    margin-right: 5px;
}

.dash-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.dash-shortcut {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #E8EDF5;
    border-radius: 10px;
    padding: 12px 20px;
    color: #374A6D;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

.dash-shortcut i {
    font-size: 16px;
    color: #1976D2;
}

.dash-shortcut:hover {
    background: #EEF4FF;
    border-color: #1976D2;
    color: #1565C0;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25,118,210,.15);
}

.dash-shortcut:hover i {
    color: #1565C0;
}

.periodo-btn {
  background-color: #8B5C49 !important;
  color: #fff !important;
  padding: 8px 15px;
  border-radius: 6px;
  display: inline-block;
  border: none;
  text-decoration: none;
  margin-top: 1px;
  user-select: none;
  -webkit-tap-highlight-color: transparent; /* Evita el parpadeo azul en móviles */
}

.periodo-btn:hover,
.periodo-btn:focus,
.periodo-btn:active,
.periodo-btn:visited {
  background-color: #8B5C49 !important;
  color: #fff !important;
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.periodo-btn i,
.periodo-btn span {
  color: white !important;
}


/* notificaciones de las panatalla principal */

  #calendar {
    max-width: 1100px;
    margin: 0 auto;
    max-height: 800px;
  }

  .card-noti {
  background: #fff;
  border-left: 5px solid #d3d5d8;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.card-noti h6 {
  margin: 0;
  color: #555;
}

.card-noti p {
  margin: 5px 0;
  color: #666;
}

.card-noti small {
  color: #999;
  font-size: 0.85rem;
}

.icono-noti {
  font-size: 1.5rem;
  color: #356487;
  margin-right: 10px;
}
li {
  list-style: none;
}