/* ============================================================
   Classroom Connect — Common Styles
   Estilos compartidos entre todos los paneles del plugin.
   Cargar antes de cualquier CSS específico de panel.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=DM+Serif+Display&family=DM+Mono:wght@400;500;600&display=swap');

/* ============================================================
   RELOJ EN TOPBAR
   Usado en: panel profesor, panel superadmin, panel alumno
   ============================================================ */

.ag-reloj {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.06em;
    margin-right: 16px;
    flex-shrink: 0;
}

/* ============================================================
   SELECTOR DE IDIOMA CON BANDERAS
   ============================================================ */

.cm-lang-selector {
    position: relative;
    display: flex;
    align-items: center;
}

.cm-lang-current {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    line-height: 1;
    transition: background 0.15s;
    display: flex;
    align-items: center;
}

.cm-lang-current:hover {
    background: rgba(255,255,255,0.15);
}

.cm-lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border: 1.5px solid #e8e0d8;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(28,20,16,0.12);
    z-index: 999;
    min-width: 140px;
    overflow: hidden;
}

.cm-lang-menu.visible {
    display: block;
}

.cm-lang-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 13.5px;
    color: #1c1410;
    cursor: pointer;
    text-align: left;
    transition: background 0.1s;
}

.cm-lang-menu button:hover {
    background: #fdf3eb;
    color: #d4712a;
}

/* Selector flotante en páginas de auth */
.cm-lang-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.cm-lang-float .cm-lang-current {
    background: #ffffff;
    border: 1.5px solid #e8e0d8;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(28,20,16,0.12);
}

.cm-lang-float .cm-lang-menu {
    bottom: calc(100% + 8px);
    top: auto;
    right: 0;
}

/* Ocultar icono giratorio de Google Translate */
.goog-te-spinner,
.goog-te-spinner *,
#goog-gt-tt,
.goog-te-bubble,
.goog-te-menu-value,
.VIpgJd-ZVi9od-l4eHX-hSRGPd,
.VIpgJd-ZVi9od-aZ2wEe,
.VIpgJd-ZVi9od-aZ2wEe-OiiCO {
    display: none !important;
    visibility: hidden !important;
}