/* Import Google Font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

:root {
    /* Tema Oscuro por defecto - Refinado sutilmente */
    --text-color: #F0F0F0; /* Temperatura más cálida para mejor lectura nocturna */
    --subheading-color: #A0A0A0; /* Más contraste */
    --placeholder-color: #888888; /* Mejor contraste */
    --primary-color: #1A1A1A; 
    --secondary-color: #282828; /* Tinte ligeramente cálido */
    --secondary-hover-color: #383838;
    --border-color-subtle: rgba(255, 255, 255, 0.06); /* Más sutil */
    --accent-color: rgb(93, 156, 236);
    --accent-hover-color: #75ACF0;
    --error-color: #E57373;
    --success-color: #81C784;

    --font-family-base: "Poppins", sans-serif;
    --font-size-base: 1rem; 
    --font-size-sm: 0.875rem; 
    --font-size-lg: 1.125rem; 
    --line-height-base: 1.65; /* Ligeramente mayor para mejor legibilidad */

    --border-radius: 10px; /* Ligeramente más redondeado */
    --border-radius-large: 14px;
    --padding-base: 1rem;
    --padding-large: 1.5rem;
    --margin-base: 1rem;
    --margin-large: 1.5rem;
    --layout-max-width: 1024px; 
    
    /* Sistema de spacing basado en golden ratio */
    --space-xs: 0.25rem;    /* 4px */
    --space-sm: 0.5rem;     /* 8px */
    --space-md: 0.75rem;    /* 12px */
    --space-lg: 1rem;       /* 16px */
    --space-xl: 1.618rem;   /* 26px - golden ratio */
    --space-2xl: 2.618rem;  /* 42px - golden ratio */
    --space-3xl: 4.236rem;  /* 68px - golden ratio */
    
    /* Transiciones más suaves y sofisticadas */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Sombras muy sutiles */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 2px 6px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-focus: 0 0 0 3px rgba(93, 156, 236, 0.12);
}

:root.light-theme {
    /* Tema Claro - Temperatura más fría para mejor claridad diurna */
    --text-color: #1E1E1E; /* Tinte azul muy sutil */
    --subheading-color: #525252; /* Mejor contraste */
    --placeholder-color: #7A7A7A; /* Más visible */
    --primary-color: #FAFAFA; /* Ligeramente más cálido */
    --secondary-color: #FEFEFE; /* Blanco más puro */
    --secondary-hover-color: #F6F6F6; /* Más sutil */
    --border-color-subtle: #E5E5E5; /* Más sutil */
    --accent-color: #007BFF; 
    --accent-hover-color: #0056b3;
    --error-color: #DC3545;
    --success-color: #28A745;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.02);
    --shadow-md: 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-focus: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Estilos específicos para tema claro */
:root.light-theme .collapsible-content {
    background-color: #F5F5F5; /* Fondo ligeramente más oscuro que el primary en tema claro */
}

:root.light-theme .meeting-suggestion-item {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

:root.light-theme .formatted-content {
    color: var(--text-color);
}

:root.light-theme .formatted-content h3,
:root.light-theme .formatted-content h4 {
    color: var(--text-color);
}

:root.light-theme .formatted-content ul li,
:root.light-theme .formatted-content ol li {
    color: var(--text-color);
}

:root.light-theme .item-details {
    background-color: #E9ECEF;
    color: var(--subheading-color);
    border-color: var(--border-color-subtle);
}

/* Reset básico */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.error-notification{
    display: none !important
}

html {
    font-size: var(--font-size-base);
    background-color: var(--primary-color);
}

body {
    font-family: var(--font-family-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--primary-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover-color);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--margin-base);
    font-weight: 500;
    color: var(--text-color);
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }

/* --- Layout Principal --- */

.main-header {
    background: linear-gradient(180deg, var(--primary-color) 0%, rgba(42, 42, 42, 0.05) 100%);
    padding: var(--padding-base) 0;
    border-bottom: 1px solid var(--secondary-color);
}

.header-content {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: 0 var(--padding-large); /* Padding dentro del contenedor */
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
    position: relative; /* Para posicionamiento absoluto de menú móvil */
}

.logo {
    font-size: 1.2rem;
    font-weight: 600; /* Más peso al logo */
    color: var(--text-color);
}

.logo:hover {
    color: var(--text-color);
    text-decoration: none;
}

/* Navegación escritorio */
#desktop-nav {
    display: flex;
    align-items: center;
    gap: var(--margin-large);
}

.main-nav {
    display: flex;
    gap: var(--margin-base);
}

.main-nav a {
    color: var(--subheading-color); 
    font-weight: 500; /* Más peso */
    font-size: var(--font-size-sm);
    padding: 0.6rem 1rem; /* Padding más equilibrado */
    text-decoration: none;
    transition: all var(--transition-smooth);
    position: relative;
    border-radius: 100px; /* Navegación redondeada */
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-smooth);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-color);
    background-color: var(--secondary-hover-color); /* Fondo en hover */
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 20px; /* Indicador más pequeño y centrado */
}

/* Botón hamburguesa para móvil */
.mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    font-size: 16px;
}

.mobile-menu-toggle .material-symbols-rounded {
    font-size: 28px;
}

/* Información usuario */
.user-info {
    display: flex;
    align-items: center;
    gap: var(--margin-base);
}

.user-info span {
    font-size: var(--font-size-sm);
    color: var(--subheading-color);
}

.logout-button {
    font-size: var(--font-size-sm);
    color: var(--subheading-color);
    background-color: var(--secondary-color);
    border: none;
    padding: 0.4rem 0.9rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.logout-button:hover {
    background-color: var(--secondary-hover-color);
    color: var(--text-color);
    text-decoration: none;
}

/* === Media Query para Móviles === */
@media (max-width: 768px) {
    /* Estilos específicos para móvil ahora están inline
    en el header.php con !important para asegurar prioridad */
    
    /* Mobile NAV - Cuando está activa */
    #mobile-nav.active {
        transform: translateY(0);
        opacity: 1;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease, opacity 0.2s ease;
    }
    
    /* Transición suave para abrir el menú */
    #mobile-nav {
        z-index: 1000; 
        transition: transform 0.3s ease, opacity 0.2s ease;
    }
}

/* Contenedor Principal */
.main-container {
    flex-grow: 1; 
    width: 100%;
    max-width: var(--layout-max-width);
    margin: var(--margin-large) auto; 
    padding: 0 var(--padding-large);
}

.content-area {
    padding: var(--padding-base) 0; /* Espacio arriba/abajo */
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--placeholder-color); /* Placeholder color como en disclaimer */
    text-align: center;
    padding: var(--padding-base) var(--padding-large);
    margin-top: auto; 
    border-top: 1px solid var(--secondary-color);
    font-size: 0.8rem;
}

/* --- Componentes Base --- */

.card {
    background: linear-gradient(145deg, var(--secondary-color), rgba(56, 56, 56, 0.1));
    border-radius: var(--border-radius);
    padding: var(--space-xl); /* Usando el nuevo sistema de spacing */
    margin-bottom: var(--margin-large);
    border: 1px solid var(--border-color-subtle);
    transition: all var(--transition-smooth);
    /* Aceleración hardware para elementos animados */
    will-change: transform;
    transform: translateZ(0);
}

.card:hover {
    border-color: var(--accent-color);
    background: linear-gradient(145deg, var(--secondary-hover-color), rgba(56, 56, 56, 0.15));
    transform: translateY(-2px) translateZ(0); /* Optimizar repaints */
    box-shadow: var(--shadow-lg);
}

.button {
    display: inline-flex; 
    align-items: center; 
    gap: 0.7em; /* Espaciado más refinado */
    padding: 0.75rem 1.5rem; /* Ajuste sutil */
    border: none;
    border-radius: 100px; /* Botones redondeados */
    cursor: pointer;
    font-family: var(--font-family-base);
    font-weight: 500;
    font-size: 0.925rem; /* Ligeramente más pequeño */
    letter-spacing: 0.01em; /* Espaciado de letras sutil */
    text-align: center;
    text-decoration: none; 
    background-color: var(--secondary-color);
    color: var(--text-color);
    transition: all var(--transition-smooth); /* Transición más suave */
    border: 1px solid var(--border-color-subtle);
}

.button:hover {
    background-color: var(--secondary-hover-color);
    color: var(--text-color);
    text-decoration: none;
    transform: translateY(-1px); /* Efecto más sutil */
    border-color: var(--accent-color);
}

.button:active {
    transform: translateY(0); /* Vuelve a posición original */
}

.button .material-symbols-rounded {
    font-size: 1.2em; /* Iconos ligeramente más pequeños */
    line-height: 0;
}

/* Estilo para botones que SOLO contienen un icono */
.button.icon-only {
    padding: 0.65rem; /* Padding más equilibrado */
    gap: 0;
    aspect-ratio: 1 / 1;
    line-height: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    min-height: 40px;
}

.button.icon-only .material-symbols-rounded {
    font-size: 1.4em;
    line-height: 1;
}

/* Botón primario (usar para acciones importantes) */
.button.primary-button {
    background-color: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
    font-weight: 600; /* Más énfasis */
}

.button.primary-button:hover {
    background-color: var(--accent-hover-color);
    color: #ffffff;
    border-color: var(--accent-hover-color);
}

.form-group {
    margin-bottom: calc(var(--margin-base) * 1.2); /* Más espacio entre campos */
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem; /* Más espacio */
    font-weight: 500; /* Más peso */
    font-size: var(--font-size-sm);
    color: var(--subheading-color);
    letter-spacing: 0.01em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.4rem; /* Padding más equilibrado */
    border: 1px solid var(--border-color-subtle);
    border-radius: 100px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-family: var(--font-family-base);
    font-size: 0.925rem;
    line-height: 1.5;
    transition: all var(--transition-smooth);
}

.form-group textarea {
    min-height: 90px; /* Ligeramente más alto */
    border-radius: 20px; /* Menos redondeado para textarea */
    resize: vertical;
    line-height: 1.6; /* Mejor legibilidad */
    padding: 1rem 1.4rem; /* Consistente con inputs */
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(93, 156, 236, 0.08); /* Sombra de foco muy sutil */
}

/* Placeholder color */
::placeholder {
    color: var(--placeholder-color);
    opacity: 1; /* Firefox */
}
:-ms-input-placeholder { color: var(--placeholder-color); }
::-ms-input-placeholder { color: var(--placeholder-color); }

/* Mensajes */
.message {
    padding: 1.2rem; /* Padding más generoso */
    margin-bottom: var(--margin-large);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    border: 1px solid var(--border-color-subtle); /* Borde sutil */
    text-align: left;
    background-color: var(--secondary-color);
    line-height: 1.5;
    transition: all var(--transition-smooth);
}

.message.error {
    background-color: rgba(229, 88, 101, 0.12); /* Más sutil */
    color: var(--error-color); 
    border-color: rgba(229, 88, 101, 0.3);
}

.message.success {
    background-color: rgba(34, 197, 94, 0.08); /* Más sutil */
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.25);
}

/* Separador */
.separator {
    border: none;
    border-top: 1px solid var(--secondary-color);
    margin: var(--margin-large) 0;
}

/* Formularios Login/Registro (adaptados) */
.form-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1; 
    padding: var(--padding-large);
}

.form-container {
    width: 100%;
    max-width: 440px; /* Ligeramente más ancho */
    background-color: var(--primary-color);
    padding: 2rem 2.5rem; /* Padding más generoso */
    border-radius: var(--border-radius-large); /* Más redondeado */
    border: 1px solid var(--border-color-subtle);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08); /* Sombra muy sutil */
}

.form-container h1 {
    text-align: center;
    margin-bottom: calc(var(--margin-large) * 1.3); /* Más espacio */
    font-size: 1.7rem; /* Ligeramente más grande */
    font-weight: 600;
    letter-spacing: -0.01em; /* Espaciado negativo sutil */
}

.submit-button {
    width: 100%;
    margin-top: calc(var(--margin-base) * 1.2); /* Más espacio */
    padding: 1rem 1.4rem; /* Más generoso */
    font-weight: 600; /* Más énfasis */
    min-height: 48px; /* Altura consistente */
}

.form-link {
    text-align: center;
    margin-top: var(--margin-base);
    font-size: var(--font-size-sm);
}

/* Modal (adaptado) */
.modal {
    position: fixed; 
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6); /* Ligeramente más opaco */
    backdrop-filter: blur(2px); /* Efecto blur muy sutil */
    display: flex; 
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
}

.modal.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease;
}

.modal-content {
    background-color: var(--secondary-color); 
    padding: calc(var(--padding-large) * 1.3); /* Padding más generoso */
    border: 1px solid var(--border-color-subtle);
    border-radius: var(--border-radius-large); /* Más redondeado */
    width: 90%;
    max-width: 520px; /* Ligeramente más ancho */
    position: relative;
    box-shadow: 0 12px 48px rgba(0,0,0,0.15); /* Sombra más prominente */
    transform: translateY(-15px); /* Efecto inicial más prominente */
    transition: all var(--transition-smooth);
}

.modal.is-visible .modal-content {
    transform: translateY(0);
}

.close-button {
    color: var(--placeholder-color);
    position: absolute;
    top: calc(var(--padding-base) * 0.7);
    right: calc(var(--padding-base) * 0.7);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.4rem; /* Ajustar padding */
    transition: color 0.2s ease;
}

.close-button:hover {
    color: var(--text-color);
}

.close-button .material-symbols-rounded {
    font-size: 1.6rem; /* Tamaño icono cierre */
}

/* Lista de reuniones (AHORA COMO SUGERENCIAS HORIZONTALES) */
#past-meetings-container {
    /* Contenedor principal para el título y la lista */
}

.meeting-suggestion-list { /* Reemplaza .meeting-list */
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Por defecto para móvil y como fallback */
    gap: var(--margin-base); /* Espacio entre tarjetas en móvil */
    overflow-x: auto; /* Permitir scroll horizontal en móvil */
    scroll-snap-type: x mandatory; /* Ajustar scroll en móvil */
    padding-bottom: var(--padding-base); /* Espacio para scrollbar si aparece */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE y Edge */
}
.meeting-suggestion-list::-webkit-scrollbar { 
    display: none; /* Chrome, Safari y Opera */
}

.meeting-suggestion-item { /* Reemplaza .meeting-item, hereda de .card */
    flex-shrink: 0; /* Evitar que se encojan en móvil */
    width: 280px; /* Ancho fijo para cada tarjeta en móvil, se ajustará en desktop */
    height: auto; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; /* Añadida transición para transform y shadow */
    scroll-snap-align: start;
    margin-bottom: var(--margin-base); /* Margen consistente */
    padding: var(--padding-base); /* Padding consistente */
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color-subtle);
}

.meeting-suggestion-item:hover {
    background-color: var(--secondary-hover-color);
 
    transform: translateY(-1px); /* Reducir efecto elevación */
    box-shadow: var(--shadow-md); /* Sombra sutil en hover o quitar */
}

.meeting-suggestion-content {
    /* Contenido principal de la tarjeta */
}

.meeting-title-preview { /* Reemplaza .meeting-notes-preview */
    font-size: 1rem; /* Ligeramente más grande */
    font-weight: 500; /* Normal/Medio */
    color: var(--text-color);
    margin-bottom: 0.6rem;
    line-height: 1.5; /* Mejor espaciado de línea */
    max-height: calc(1.5em * 3); /* Ejemplo: Limitar a 3 líneas */
    overflow: hidden;
    text-overflow: ellipsis; /* Añadir ellipsis si el texto es muy largo y se corta */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Número de líneas a mostrar */
    -webkit-box-orient: vertical;
}

.meeting-suggestion-client,
.meeting-suggestion-date {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--subheading-color);
    line-height: 1.3;
}
.meeting-suggestion-date {
    margin-top: 0.3rem;
}

.meeting-suggestion-actions { /* Reemplaza .meeting-actions */
    display: flex;
    justify-content: space-between; /* Botón a la izq, iconos a la der */
    align-items: center;
    margin-top: var(--margin-base); /* Espacio sobre las acciones */
    border-top: 1px solid var(--border-color-subtle); /* Separador sutil */
    padding-top: var(--padding-base);
}

.meeting-suggestion-actions .view-button {
     /* Hereda estilos de .button */
     background-color: var(--secondary-hover-color) !important; 
     /* Aplicar clase icon-only implícitamente o añadirla en PHP */
     padding: 0.5rem; /* Ajustar padding para el icono solo */
     gap: 0;
     aspect-ratio: 1 / 1;
     border-radius: 50%; /* Hacerlo circular */
}
.meeting-suggestion-actions .view-button .material-symbols-rounded {
     font-size: 1.3em; /* Tamaño específico para este icono */
}
.meeting-suggestion-actions .view-button:hover {
    background-color: #555;
}

.status-icons-group {
    display: flex;
    gap: 0.5rem;
}

.status-icon {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--subheading-color);
    border: 1px solid var(--border-color-subtle);
    border-radius: 4px;
    width: auto; 
    height: auto;
    padding: 0.1rem 0.4rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: default; 
    background-color: var(--secondary-color);
    line-height: 1;
    transition: transform 0.2s ease, opacity 0.2s ease; /* Añadida transición */
}

.status-icon:hover {
    transform: scale(1.15); /* Efecto de zoom sutil */
    opacity: 0.9; /* Ligera transparencia */
}

.status-icon[title*="Transcripción"] {
    /* Estilo diferente si tiene transcripción? */
     color: var(--success-color);
     border-color: rgba(var(--success-color, 34, 197, 94), 0.4);
     background-color: rgba(var(--success-color, 34, 197, 94), 0.1);
}
.status-icon[title*="Resumen"] {
    /* Estilo diferente si tiene resumen? */
     color: var(--accent-color);
     border-color: rgba(var(--accent-color, 66, 133, 244), 0.4);
     background-color: rgba(var(--accent-color, 66, 133, 244), 0.1);
}

.status-icon.material-symbols-rounded {
    font-size: 1rem;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    padding: 4px;
     /* Centrado ya debería funcionar con flex */
}

.no-meetings-message {
    color: var(--subheading-color);
    font-size: var(--font-size-sm);
    text-align: center;
    padding: var(--padding-large) 0;
}

/* --- Tablas de Datos --- */
.table-responsive {
    overflow-x: auto; /* Scroll horizontal en pantallas pequeñas */
    margin-bottom: var(--margin-base);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--secondary-color); 
    vertical-align: middle;
}

.data-table th {
    font-weight: 500;
    color: var(--subheading-color);
    background-color: var(--secondary-hover-color); /* Fondo leggermente distinto para cabecera */
}

.data-table tbody tr:hover {
    background-color: var(--secondary-hover-color);
}

.data-table td.no-data-message {
    text-align: center;
    color: var(--subheading-color);
    padding: var(--padding-large);
}

/* --- Caja de Resumen General --- */
.summary-result-box {
    margin-top: var(--margin-large);
    padding: var(--padding-large);
    background-color: var(--primary-color); /* Fondo principal para destacar */
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
}

.summary-result-box h3 {
    margin-bottom: var(--margin-base);
    font-size: 1.1rem;
}

.summary-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: monospace; /* O mantener Poppins */
    font-size: var(--font-size-sm);
    line-height: 1.7;
    color: var(--text-color);
    max-height: 300px; /* Limitar altura si es muy largo */
    overflow-y: auto;
    background-color: var(--secondary-color);
    padding: var(--padding-base);
    border-radius: calc(var(--border-radius) / 2);
}

.loader-inline {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: var(--font-size-sm);
    color: var(--placeholder-color);
    /* Podríamos añadir una pequeña animación aquí si quisiéramos */
}

/* --- Sección de Grabación (adaptada) --- */
.recording-controls {
    display: flex;
    flex-direction: column; 
    gap: var(--margin-base);
    align-items: stretch;
}

/* Wrapper para input y botón en línea */
.input-wrapper-reunion {
    display: flex;
    gap: 0.75rem; /* Espacio entre input y botón */
    align-items: center;
    background-color: var(--secondary-color);
    border-radius: 100px; /* Redondeado como los inputs */
    padding: 0.60rem 0.60rem 0.60rem var(--padding-base); /* Padding interno, más a la izquierda */
    transition: background-color 0.2s ease;
}

.input-wrapper-reunion:focus-within {
    background-color: var(--secondary-hover-color);
}

.prompt-input {
    flex-grow: 1; /* Ocupa el espacio restante */
    border: none !important; /* Sobreescribir borde de .form-group input */
    background-color: transparent !important; /* Heredar fondo del wrapper */
    padding: 0.6rem 0 !important; /* Ajustar padding vertical, sin padding horizontal */
    border-radius: 0 !important; /* Sin borde redondeado propio */
    box-shadow: none !important; /* Sin sombra de foco */
    outline: none;
    font-size: 0.95rem;
}

.record-button-inline {
    flex-shrink: 0;
    align-self: center;
    padding: 0; /* Sin padding para botón redondo */
    width: 48px; /* Tamaño como Gemini */
    height: 48px; /* Tamaño como Gemini */
    border-radius: 50%; /* Completamente redondo */
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 6px; /* Espacio del botón de pausa */
}

#record-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    /* Estilos específicos solo para el botón de grabar */
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#record-button:hover {
    background-color: var(--accent-hover-color);
    transform: scale(1.05); /* Efecto hover sutil */
}

/* Indicador de grabación */
#record-button.is-recording {
    background-color: var(--error-color); 
    animation: recording-pulse 1.5s infinite;
}

#record-button.is-recording:hover {
    background-color: #d44a56; /* Oscurecer error */
}

/* Animación de pulso para grabación */
@keyframes recording-pulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(229, 88, 101, 0.4);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 0 0 8px rgba(229, 88, 101, 0);
    }
}

/* Ícono del micrófono */
#record-button .material-symbols-rounded {
    font-size: 24px; /* Tamaño del ícono */
    line-height: 1;
}

/* Estilos para el botón de pausa - Diseño minimalista */
.pause-button-inline {
    flex-shrink: 0;
    align-self: center;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    border: 1.5px solid var(--border-color-subtle);
    color: var(--subheading-color);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    margin-left: 8px !important; /* Espacio del input en móvil */
}

#pause-button {
    background-color: transparent;
    border: 1.5px solid var(--border-color-subtle);
    color: var(--subheading-color);
}

#pause-button:hover {
    background-color: var(--secondary-hover-color);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: scale(1.05);
}

#pause-button.is-paused {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 0 0 3px rgba(93, 156, 236, 0.2);
}

#pause-button.is-paused:hover {
    background-color: var(--accent-hover-color);
    border-color: var(--accent-hover-color);
    transform: scale(1.05);
    box-shadow: 0 0 0 4px rgba(93, 156, 236, 0.3);
}

/* Ocultar el texto, solo mostrar ícono */
#pause-button .material-symbols-rounded {
    font-size: 20px;
    transition: transform 0.2s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    line-height: 1;
}

#pause-button:hover .material-symbols-rounded {
    transform: translate(-50%, -50%) scale(1.1);
}

#recording-status {
    margin-top: 0.5rem;
    font-weight: 400;
    font-size: var(--font-size-sm);
    color: var(--placeholder-color);
    display: flex; /* Alinear icono y texto */
    align-items: center;
    gap: 0.6rem;
}

#recording-status.is-recording::before {
    content: ''; 
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--error-color);
    border-radius: 50%;
    animation: blink 1.4s infinite ease-in-out;
}

/* Estado pausado */
#recording-status.is-paused {
    color: var(--accent-color);
}

#recording-status.is-paused::before {
    content: ''; 
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* Keyframes blink se mantienen */
@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* --- Loader (adaptado) --- */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--primary-color, 36, 36, 36), 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.loader-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease;
}

.loader {
    /* Loader tipo barra como en el ejemplo */
    width: 120px; /* Ancho de la barra */
    height: 8px; /* Alto de la barra */
    border-radius: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color), var(--accent-color));
    background-size: 200% 100%;
    animation: loading 1.5s linear infinite;
    /* Quitar estilos de spinner anteriores */
    border: none;
}

/* Keyframes loading adaptado */
@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 🚨 NUEVO: Upload progress para archivos largos (reuniones 30+ minutos) */
.upload-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.upload-progress-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.upload-progress-content {
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 40px;
    border-radius: var(--border-radius-large);
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color-subtle);
}

.upload-progress-text {
    margin-bottom: 25px;
}

.upload-status {
    display: block;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.upload-details {
    display: block;
    font-size: 0.9em;
    color: var(--subheading-color);
}

.upload-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color-subtle);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover-color));
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.upload-time-estimate {
    font-size: 0.85em;
    color: var(--subheading-color);
    line-height: 1.4;
}

.time-elapsed {
    font-weight: 600;
    color: var(--text-color);
}

.time-remaining {
    opacity: 0.8;
}

/* Responsive para progreso de upload */
@media (max-width: 768px) {
    .upload-progress-content {
        padding: 30px 20px;
        max-width: 320px;
    }
    
    .upload-status {
        font-size: 1.1em;
    }
    
    .upload-progress-bar {
        height: 6px;
        margin-bottom: 15px;
    }
}

/* 🚨 ESTILOS PARA SISTEMA DE ADVERTENCIAS BOT */

/* Modal de advertencia pre-grabación */
.bot-warning-modal {
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.8);
}

.bot-warning-content {
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bot-warning-header {
    text-align: center;
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e9ecef;
}

.bot-warning-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.bot-warning-header h2 {
    margin: 0 0 8px;
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: 600;
}

.bot-warning-subtitle {
    margin: 0;
    color: #6c757d;
    font-size: 0.95rem;
}

.bot-warning-body {
    padding: 25px 30px;
}

.bot-warning-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bot-warning-point {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px;
    border-radius: 12px;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    transition: all 0.2s ease;
}

.bot-warning-point.critical {
    background: #fff5f5;
    border-left-color: #dc3545;
}

.bot-warning-point:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.point-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.point-content {
    flex: 1;
}

.point-content strong {
    display: block;
    margin-bottom: 5px;
    color: #1a1a1a;
    font-weight: 600;
}

.point-content p {
    margin: 0;
    color: #495057;
    line-height: 1.5;
}

.bot-warning-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-radius: 0 0 16px 16px;
}

.bot-confirm-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
}

/* Advertencia persistente durante grabación */
.persistent-bot-warning {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999998;
    animation: warningSlideDown 0.4s ease-out;
}

@keyframes warningSlideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.warning-content {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    backdrop-filter: blur(10px);
    max-width: 400px;
}

.warning-icon {
    font-size: 1.2rem;
    animation: warningPulse 2s infinite;
}

@keyframes warningPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.warning-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.3;
}

.warning-text strong {
    font-weight: 600;
}

.warning-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.warning-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

/* 🤖 INDICADOR DE ESTADO GEMINI-STYLE */
.gemini-status-indicator {
    margin-top: 2rem;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: geminiSlideUp 0.4s ease-out;
}

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

.status-content {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 0.75rem 1.25rem;
    position: relative;
    overflow: hidden;
    max-width: 280px;
}

.status-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.status-primary {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.status-secondary {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.3;
    letter-spacing: -0.005em;
}

/* Pulso sutil para estados activos */
.status-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        transparent 100%);
    animation: geminiPulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes geminiPulse {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
}

/* Estados específicos con colores sutiles */
.gemini-status-indicator.connecting .status-content {
    border-color: rgba(255, 152, 0, 0.2);
    background: rgba(255, 152, 0, 0.08);
}

.gemini-status-indicator.waiting .status-content {
    border-color: rgba(33, 150, 243, 0.2);
    background: rgba(33, 150, 243, 0.08);
}

.gemini-status-indicator.configuring .status-content {
    border-color: rgba(156, 39, 176, 0.2);
    background: rgba(156, 39, 176, 0.08);
}

.gemini-status-indicator.recording .status-content {
    border-color: rgba(76, 175, 80, 0.2);
    background: rgba(76, 175, 80, 0.08);
}

.gemini-status-indicator.processing .status-content {
    border-color: rgba(33, 150, 243, 0.2);
    background: rgba(33, 150, 243, 0.08);
}

/* Responsive para indicadores de bot */
@media (max-width: 768px) {
    .bot-warning-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .bot-warning-header,
    .bot-warning-body,
    .bot-warning-footer {
        padding: 20px;
    }
    
    .bot-warning-footer {
        flex-direction: column;
    }
    
    .persistent-bot-warning {
        left: 20px;
        right: 20px;
        transform: none;
        max-width: none;
    }
    
    .warning-content {
        font-size: 0.85rem;
        padding: 10px 15px;
    }
    
    /* Indicador Gemini responsive */
    .gemini-status-indicator {
        margin-top: 1.5rem;
        padding: 0 1rem;
    }
    
    .status-content {
        max-width: 260px;
        padding: 0.6rem 1rem;
    }
    
    .status-primary {
        font-size: 0.8rem;
    }
    
    .status-secondary {
        font-size: 0.7rem;
    }
}

/* Mejoras específicas para overlay de bot */
.voice-recording-overlay.bot-overlay {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2d2d2d 100%);
}

.voice-recording-overlay.bot-overlay .voice-orb {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    box-shadow: 0 0 60px rgba(255, 107, 53, 0.4);
}

.voice-recording-overlay.bot-overlay .voice-orb::before {
    border: 3px solid rgba(255, 107, 53, 0.3);
}

.voice-recording-overlay.bot-overlay .voice-timer {
    color: #FF6B35;
}

/* 🎙️ INTERFAZ DE GRABACIÓN MINIMALISTA TIPO CHATGPT */
.voice-recording-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100vh;
    height: 100dvh;
    background: #1a1a1a;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.voice-recording-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Contenedor principal del modo voz */
.voice-mode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 400px;
    width: 90%;
    height: 100%;
    position: relative;
}

/* Orbe central animado (similar a ChatGPT) */
.voice-orb {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(45deg, #4a9eff, #00d4aa);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(74, 158, 255, 0.3);
    transition: all 0.3s ease;
}

/* Animación de pulso para el orbe durante grabación */
.voice-orb.recording {
    animation: voice-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 60px rgba(74, 158, 255, 0.5);
}

.voice-orb.paused {
    animation: voice-pulse-paused 3s ease-in-out infinite;
    background: linear-gradient(45deg, #ff9800, #ffeb3b);
    box-shadow: 0 0 40px rgba(255, 152, 0, 0.3);
}

@keyframes voice-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 60px rgba(74, 158, 255, 0.5);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 80px rgba(74, 158, 255, 0.7);
    }
}

@keyframes voice-pulse-paused {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 40px rgba(255, 152, 0, 0.3);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 0 60px rgba(255, 152, 0, 0.5);
    }
}

/* Ícono dentro del orbe */
.voice-orb-icon {
    font-size: 3.5rem;
    color: white;
    font-weight: 300;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Efecto de ondas concéntricas */
.voice-orb::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid rgba(74, 158, 255, 0.3);
    border-radius: 50%;
    animation: voice-ring 2s ease-out infinite;
}

.voice-orb::after {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    right: -40px;
    bottom: -40px;
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 50%;
    animation: voice-ring 2s ease-out infinite 0.5s;
}

@keyframes voice-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Timer minimalista */
.voice-timer {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 3rem;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Controles de grabación */
.voice-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

/* Botones de control */
.voice-control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.voice-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.voice-control-btn:active {
    transform: scale(0.95);
}

/* Botón de stop específico */
.voice-control-btn.stop-btn {
    background: rgba(229, 88, 101, 0.8);
    backdrop-filter: blur(10px);
}

.voice-control-btn.stop-btn:hover {
    background: rgba(229, 88, 101, 1);
    box-shadow: 0 0 20px rgba(229, 88, 101, 0.5);
}

/* Botón de pausa específico */
.voice-control-btn.pause-btn {
    background: rgba(255, 152, 0, 0.8);
    backdrop-filter: blur(10px);
}

.voice-control-btn.pause-btn:hover {
    background: rgba(255, 152, 0, 1);
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.5);
}

.voice-control-btn.pause-btn.is-paused {
    background: rgba(76, 175, 80, 0.8);
}

.voice-control-btn.pause-btn.is-paused:hover {
    background: rgba(76, 175, 80, 1);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

/* Estado de grabación */
.voice-status {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.voice-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4a9eff;
    animation: status-blink 1.5s ease-in-out infinite;
}

.voice-status.paused .voice-status-dot {
    background: #ff9800;
    animation: status-blink-paused 2s ease-in-out infinite;
}

@keyframes status-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes status-blink-paused {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Hint de atajos de teclado */
.voice-keyboard-hints {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5rem;
    opacity: 0.6;
}

.voice-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.voice-hint-key {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .voice-orb {
        width: 160px;
        height: 160px;
        margin-bottom: 1.5rem;
    }
    
    .voice-orb-icon {
        font-size: 2.8rem;
    }
    
    .voice-timer {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }
    
    .voice-controls {
        gap: 1.5rem;
    }
    
    .voice-control-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .voice-keyboard-hints {
        display: none; /* Ocultar hints en móvil */
    }
    
    .voice-status {
        top: 1.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .voice-orb {
        width: 140px;
        height: 140px;
    }
    
    .voice-orb-icon {
        font-size: 2.5rem;
    }
    
    .voice-timer {
        font-size: 1.2rem;
    }
    
    .voice-control-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* --- Página de Detalles de Reunión (view_meeting) --- */
.meeting-details-card {
    position: relative;
}

.meeting-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.meeting-details-card .meeting-meta p {
    margin-bottom: 0.5rem;
    font-size: var(--font-size-sm);
    color: var(--subheading-color);
}
.meeting-details-card .meeting-meta p strong {
    color: var(--text-color);
    font-weight: 500;
}

/* Estilos para el título de la reunión en el header */
.meeting-title-container {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color-subtle);
    padding-bottom: 0.75rem;
}

.meeting-title-container .meeting-title-preview {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    background-color: transparent;
    transition: background-color 0.2s ease;
    cursor: pointer;
    word-wrap: break-word;
    line-height: 1.4;
}

.meeting-title-container .meeting-title-preview:hover {
    background-color: var(--secondary-color);
}

.meeting-title-container .meeting-title-preview:focus {
    outline: 2px solid var(--accent-color);
    background-color: var(--secondary-color);
}

.audio-player {
    margin-top: var(--margin-large);
    padding-top: var(--margin-large);
    border-top: 1px solid var(--secondary-color);
}

.audio-player h3 {
    font-size: 1rem;
    margin-bottom: var(--margin-base);
    font-weight: 500;
}

.audio-player audio {
    width: 100%;
    border-radius: var(--border-radius);
    /* Estilos del reproductor dependen mucho del navegador */
    /* Podemos intentar estilar controles específicos con pseudo-elementos */
    /* pero es complejo y varía. Un estilo base es suficiente a menudo */
    filter: invert(95%) sepia(6%) saturate(100%) hue-rotate(180deg) brightness(100%) contrast(90%); /* Intento de tema oscuro */
}

.audio-filename {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--placeholder-color);
    text-align: right;
}

.text-content-box {
    position: relative;
    margin-top: 10px;
    padding-left: calc(var(--padding-base) + 10px); /* Añadir padding para el borde y que el texto no se pegue */
    border-left-color: transparent; /* Sin borde de color específico */
    transition: border-color 0.3s ease;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color-subtle);
    padding: 1.2rem;
    border-radius: var(--border-radius);
    white-space: pre-wrap; 
    word-wrap: break-word; 
    max-height: 450px; 
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.6;
}

.text-content-box.transcript-box {
     /* Estilo específico si queremos */
    font-family: monospace; /* Monospace para transcripción */
}

.placeholder-text {
    color: var(--placeholder-color);
    font-style: italic;
    padding: 0.5rem 0;
}

.page-actions {
    margin-top: var(--margin-large);
    text-align: center; /* O alinear a la izquierda/derecha */
}

/* Ajuste icono botón Volver */
.page-actions .button .material-symbols-rounded {
     font-size: 1.2em; 
}

/* Ajuste icono botón Logout */
.logout-button .material-symbols-rounded {
    font-size: 1.2em; 
}

/* --- Página de Reuniones por Cliente (client_meetings) --- */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--margin-large);
    flex-wrap: wrap; /* Para pantallas pequeñas */
    gap: var(--margin-base);
}

.search-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
    border-radius: 100px;
    padding: 0.3rem 0.5rem 0.3rem var(--padding-base);
    flex-grow: 1; /* Ocupa espacio disponible */
    min-width: 250px; /* Ancho mínimo */
}

.search-wrapper .material-symbols-rounded {
    font-size: 1.4rem;
    color: var(--placeholder-color);
    margin-right: 0.6rem;
}

#meeting-search {
    flex-grow: 1;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: var(--font-size-sm);
    padding: 0.5rem 0;
    outline: none;
}
#meeting-search::placeholder {
    color: var(--placeholder-color);
}

.back-button {
    /* Estilos heredados de .button */
    flex-shrink: 0; /* No encoger */
}

#client-meetings-list .client-meeting-item {
    display: flex; 
    justify-content: space-between;
    align-items: center;
    gap: var(--margin-base);
    margin-bottom: var(--margin-base); /* Espacio entre items */
    padding: var(--padding-base);
    flex-wrap: wrap; /* Envolver acciones si no caben */
    /* Hereda estilos de .card */
}

.meeting-item-content {
    flex-grow: 1;
    min-width: 200px;
}

.meeting-item-date {
    font-size: var(--font-size-sm);
    color: var(--subheading-color);
    display: flex;
    align-items: center;
    gap: 0.4em;
    margin-bottom: 0.5rem;
}
.meeting-item-date .material-symbols-rounded {
    font-size: 1.1em;
}

.meeting-item-notes {
    font-size: 1rem; /* Notas/Título un poco más grande */
    color: var(--text-color);
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

.meeting-item-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap; /* Envolver iconos/audio */
}

.inline-audio-player {
    height: 35px; /* Reducir altura del reproductor */
    max-width: 250px; /* Limitar ancho */
    vertical-align: middle;
}

/* Reajustar estilos de iconos para este contexto si es necesario */
.meeting-item-actions .view-button {
    /* Estilos ya definidos */
}
.meeting-item-actions .status-icons-group {
    /* Estilos ya definidos */
}

.no-results-message,
.no-meetings-message {
    color: var(--subheading-color);
    font-size: var(--font-size-sm);
    text-align: center;
    padding: var(--padding-large) 0;
}

/* --- Sección de Grabación (adaptada) --- */
/* ... estilos grabación ... */

/* --- Loader (adaptado) --- */
/* ... estilos loader ... */

/* Animación de spinner para procesamiento */
.status-icon.spin {
    animation: spin 2s linear infinite;
    color: var(--accent-color); /* Azul para destacar como procesando */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Si ya existe una animación keyframes llamada 'spin', podemos usar esa en lugar de definir una nueva */
.processing-icon {
    font-size: 1.2rem;
}

/* Estilos para la lista de reuniones en DESKTOP */
@media (min-width: 769px) {
    .meeting-suggestion-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Grid adaptable */
        gap: var(--margin-large); /* Espacio mayor en desktop */
        overflow-x: visible; /* No necesitamos scroll horizontal */
        scroll-snap-type: none; /* No snap en desktop */
        padding-bottom: 0; /* Sin padding extra abajo */
        align-items: start; /* Asegurar alineación superior */
    }
    
    .meeting-suggestion-item {
        width: 100%; /* Ocupar el espacio del grid-column */
        height: auto; /* Altura automática */
        display: flex;
        flex-direction: column;
        margin-bottom: 0; /* Eliminar margin-bottom que puede causar desalineación */
    }
    
    .meeting-suggestion-item:hover {
        transform: translateY(-3px); /* Ajustar para desktop */
        box-shadow: var(--shadow-md); 
    }
    
    /* Asegurar que el contenido se distribuya uniformemente */
    .meeting-suggestion-content {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .meeting-suggestion-actions {
        margin-top: auto; /* Empujar acciones hacia abajo */
    }
}

/* Adaptación adicional para móviles muy pequeños si es necesario, o para refinar el scroll */
@media (max-width: 768px) {
    .meeting-suggestion-item {
        /* flex-direction: column; */
        padding: var(--padding-base);
        margin-bottom: var(--margin-base); /* Mantener margin en móvil */
    }

    .meeting-suggestion-item:last-child {
        border-bottom: none; /* Eliminar borde del último */
    }
    .meeting-suggestion-item:active { /* Efecto al tocar en móvil */
        background-color: var(--secondary-color);
    }

    .meeting-suggestion-list {
        /* gap: var(--margin-base);  */
    }
    
    /* Responsivo para los botones de grabación y pausa */
    .input-wrapper-reunion {
        flex-direction: row; /* Mantener en fila en móvil */
        gap: 10px;
        justify-content: space-between;
        padding: 0.5rem;
    }
    
    .record-button-inline {
        /* Mantener el estilo redondo en móvil pero ligeramente más pequeño */
        width: 48px;
        height: 48px;
        margin-left: 6px; /* Reducir espacio en móvil */
    }
    
    .record-button-inline .material-symbols-rounded {
        font-size: 20px; /* Ícono ligeramente más pequeño en móvil */
    }
    
    .pause-button-inline {
        flex-shrink: 0; /* El botón de pausa mantiene su tamaño fijo */
        margin-left: 8px !important; /* Espacio del input en móvil */
        width: 40px;
        height: 40px;
    }
}

/* Estilo base para el indicador visual de las secciones */
.content-area .card > h2::before {
    display: none; /* Ocultar los círculos de color */
}



/* --- Dashboard de Bienvenida --- */
.dashboard-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--margin-large); /* Hereda de .card, pero podemos ajustar si es necesario */
    padding: var(--padding-large); /* Hereda de .card */
    flex-wrap: wrap; /* Para que se adapte en pantallas pequeñas */
    gap: var(--margin-large); /* Espacio entre saludo y stats si se apilan */
    border-left: 4px solid var(--accent-color); /* Borde distintivo como en .meeting-details-card */
}

.user-greeting {
    flex-grow: 1; /* Ocupa el espacio disponible */
}

.user-greeting h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.user-greeting h2::before {
    display: none; /* No queremos el circulito aquí */
}

.user-greeting .subtitle {
    color: var(--subheading-color);
    font-size: var(--font-size-sm);
    margin-top: 0;
}

.dashboard-stats {
    display: flex;
    gap: var(--margin-base);
    flex-shrink: 0; /* Para que no se encojan demasiado las stat-cards */
    flex-wrap: wrap; /* Permitir que las stat-cards se envuelvan si no hay espacio */
}

.stat-card {
    background-color: var(--secondary-color); /* Un color de fondo ligeramente diferente para destacar */
    border-radius: var(--border-radius);
    padding: var(--padding-base);
    min-width: 120px; /* Ancho mínimo para cada tarjeta de estadística */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color-subtle);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2rem; /* Tamaño grande para el número */
    font-weight: 600;
    color: var(--accent-color); /* Usar el color de acento para el número */
    line-height: 1.1;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--subheading-color);
    margin-top: 5px;
}

/* Estilos para el Toggle de Tema */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--margin-base);
}

.theme-toggle button#theme-switch,
.theme-toggle button#theme-switch-mobile {
    background-color: var(--secondary-color);
    color: var(--subheading-color);
    border: 1px solid var(--border-color-subtle);
    width: 40px; /* Botón ligeramente más grande */
    height: 40px;
    padding: 0; /* Ya es icon-only */
    box-shadow: none; /* Quitar sombra del botón de tema */
}

.theme-toggle button#theme-switch:hover,
.theme-toggle button#theme-switch-mobile:hover {
    border-color: var(--accent-color);
    background-color: var(--secondary-hover-color); /* Mantener cambio de fondo sutil */
}

.theme-toggle .light-icon,
.theme-toggle .dark-icon {
    font-size: 1.4rem; /* Iconos del tema un poco más grandes */
    transition: transform 0.3s ease;
}

/* Lógica de mostrar/ocultar iconos del tema */
:root.light-theme .light-icon {
    display: none;
}
:root.light-theme .dark-icon {
    display: block;
}

:root .dark-icon { /* Por defecto (tema oscuro) */
    display: none;
}
:root .light-icon { /* Por defecto (tema oscuro) */
    display: block;
}

/* Ajustes para el toggle en el menú móvil */
.mobile-header-actions {
    padding: var(--padding-base);
    display: flex;
    flex-direction: column; /* Apilar user info y toggle */
    align-items: center;
    gap: var(--margin-base);
    border-top: 1px solid var(--border-color-subtle);
}

.mobile-theme-toggle {
    margin-top: var(--margin-base); 
}

.mobile-user-info .logout-button {
    width: auto; /* Que no ocupe todo el ancho en el nuevo layout */
    padding: 0.6rem 1.2rem;
}

/* --- Botón de compartir en vista de reunión --- */
.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--margin-base);
}

/* Estilos que deben eliminarse completamente */
.button-link-style, 
.button-link-style:hover, 
.button-link-style:active, 
.button-link-style .material-symbols-rounded,
.material-btn, 
.material-btn:hover, 
.modal button, 
.modal .button, 
.modal .button:hover,
.modal .secondary-button, 
.modal .secondary-button:hover, 
.modal .utility-button {
    /* Reglas vacías para eliminar */
}

/* Estilos para el resumen formateado */
.summary-box, .coaching-box {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    padding: 0;
}

.summary-box h3, .coaching-box h3 {
    font-size: 1rem;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
    border-bottom: 1px solid #242424;
    padding-bottom: 0.3rem;
}

.summary-box h3:first-child, .coaching-box h3:first-child {
    margin-top: 0;
}

.summary-box ul, .coaching-box ul {
    margin: 0.5rem 0 1rem;
    padding-left: 1.2rem;
}

.summary-box li, .coaching-box li {
    margin-bottom: 0.4rem;
    position: relative;
}

/* Placeholder para texto vacío */
.placeholder-text {
    color: var(--placeholder-color);
    font-style: italic;
    padding: 0;
}

/* Contenedor de texto */
.text-content-box {
    background-color: #1a1a1a;
    border-radius: var(--border-radius);
    padding: 1.2rem;
    white-space: pre-wrap; 
    word-wrap: break-word; 
    max-height: 450px; 
    overflow-y: auto;
}

/* Eliminar los estilos anteriores que estaban sobrecargando la presentación */
.action-list, .decisions-list {
    padding-left: 0 !important;
    margin-left: 0 !important;
    list-style-type: none;
}

/* Simplificar el estilo de las listas */
.action-list li::before, .decisions-list li::before,
.summary-box ul li::before, .coaching-box ul li::before {
    content: none;
}

.summary-section, .coaching-section {
    margin-bottom: 1.5rem;
}

/* Separar claramente las secciones */
.summary-section h2, .coaching-section h2 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Hacer el diseño más compacto */
.card {
    padding: 1.2rem;
}

/* Estilos para contenido formateado - Estilo Gemini minimalista */
.formatted-content {
    margin: 0;
    padding: 0;
    line-height: 1.6; /* Aumentado para más aire como Gemini */
    font-size: 16px; /* Aumentado de 15px */
    color: var(--text-color);
    font-weight: 400;
}

/* Títulos principales en el contenido - Estilo Gemini */
.formatted-content h3 {
    font-size: 20px; /* Aumentado significativamente de 16px */
    font-weight: 600; /* Más bold como Gemini */
    color: var(--text-color);
    margin: 1.5rem 0 0.8rem 0; /* Más espaciado como Gemini */
    line-height: 1.3;
}

.formatted-content h3:first-child {
    margin-top: 0;
}

/* Subtítulos */
.formatted-content h4 {
    font-size: 17px; /* Aumentado de 15px */
    font-weight: 600; /* Más bold */
    color: var(--text-color);
    margin: 1.2rem 0 0.6rem 0; /* Más espaciado */
    line-height: 1.3;
}

/* Párrafos */
.formatted-content p {
    margin: 0.6rem 0; /* Aumentado de 0.2rem para más aire */
    line-height: 1.6; /* Más espacioso */
    font-size: 16px; /* Consistente con el base */
}

/* Listas minimalistas estilo Gemini */
.formatted-content ul {
    margin: 1rem 0; /* Más espaciado como Gemini */
    padding-left: 0;
    list-style: none;
}

.formatted-content ul li {
    margin: 0.6rem 0; /* Más espacio entre items como Gemini */
    padding: 0.4rem 0 0.4rem 1.5rem; /* Más padding */
    position: relative;
    line-height: 1.5; /* Más espacioso */
    color: var(--text-color);
    font-size: 16px; /* Tamaño consistente */
}

.formatted-content ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold; /* Más prominente como Gemini */
    font-size: 20px; /* Bullets más grandes */
    line-height: 1.2;
}

/* Listas numeradas */
.formatted-content ol {
    margin: 1rem 0; /* Más espaciado */
    padding-left: 0;
    counter-reset: item;
    list-style: none;
}

.formatted-content ol li {
    margin: 0.6rem 0; /* Más espacio entre items */
    padding: 0.4rem 0 0.4rem 2rem; /* Más padding para números */
    position: relative;
    counter-increment: item;
    line-height: 1.5; /* Más espacioso */
    color: var(--text-color);
    font-size: 16px;
}

.formatted-content ol li:before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 600; /* Más bold como Gemini */
    font-size: 16px;
}

/* Sub-listas (listas dentro de listas) - Estilo Gemini */
.formatted-content ul ul,
.formatted-content ol ul,
.formatted-content ul ol,
.formatted-content ol ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem; /* Indentación clara para sub-listas */
}

.formatted-content ul ul li,
.formatted-content ol ul li {
    font-size: 15px; /* Ligeramente más pequeño para sub-items */
    margin: 0.3rem 0;
    padding-left: 1.2rem;
}

.formatted-content ul ul li:before,
.formatted-content ol ul li:before {
    font-size: 16px; /* Bullets más pequeños para sub-listas */
}

/* Énfasis y texto destacado */
.formatted-content strong {
    font-weight: 600; /* Más bold como Gemini */
    color: var(--text-color);
}

.formatted-content em {
    font-style: italic;
    color: var(--subheading-color);
}

/* Detalles de items (responsable, fecha) - BLOQUE DEBAJO DEL ITEM */
.item-details {
    margin-top: 0.4rem; /* Más espacio */
    padding: 0.5rem 1rem; /* Más padding como Gemini */
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color-subtle);
    border-radius: 20px;
    font-size: 13px; /* Ligeramente más grande */
    color: var(--subheading-color);
    display: block;
    width: fit-content;
}

/* Responsive: en móviles mantener legibilidad */
@media (max-width: 768px) {
    .formatted-content {
        font-size: 15px; /* Ligeramente más pequeño en móvil */
        line-height: 1.5;
    }
    
    .formatted-content h3 {
        font-size: 18px; /* Reducir en móvil pero mantener prominencia */
        margin: 1.2rem 0 0.6rem 0;
    }
    
    .formatted-content h4 {
        font-size: 16px;
        margin: 1rem 0 0.4rem 0;
    }
    
    .formatted-content ul li,
    .formatted-content ol li {
        padding: 0.3rem 0 0.3rem 1.2rem;
        line-height: 1.4;
        margin: 0.4rem 0;
        font-size: 15px;
    }
    
    .formatted-content ol li {
        padding-left: 1.8rem;
    }
    
    .formatted-content ul li:before {
        font-size: 18px; /* Bullets un poco más pequeños en móvil */
    }
    
    .item-details {
        font-size: 12px;
        padding: 0.4rem 0.8rem;
    }
}

/* Estilos para secciones colapsables (acordeón) */
.collapsible-section {
    border: 1px solid var(--border-color-subtle);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    background-color: var(--secondary-color);
}

.collapsible-header {
    padding: 1rem 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--secondary-color);
    transition: background-color 0.2s ease;
    user-select: none;
}

.collapsible-header:hover {
    background-color: var(--secondary-hover-color);
}

.collapsible-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    padding-left: 0;
}

.collapsible-header h2:before {
    display: none; /* Eliminar las barras de color */
}

.collapsible-toggle {
    font-size: 20px;
    color: var(--subheading-color);
    transition: transform 0.2s ease, color 0.2s ease;
    line-height: 1;
}

.collapsible-section.expanded .collapsible-toggle {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
    background-color: var(--primary-color); /* Usar variable de tema en lugar de fijo */
    opacity: 0;
}

.collapsible-section.expanded .collapsible-content {
    max-height: 500000px; /* Valor muy alto para acomodar contenido largo */
    height: auto; /* Altura automática */
    padding: 1rem 1.2rem;
    border-top: 1px solid var(--border-color-subtle);
    overflow: visible; /* Asegurar que todo el contenido sea visible */
    opacity: 1;
}

/* Eliminar scroll de text-content-box cuando está en acordeón */
.collapsible-content .text-content-box {
    max-height: none !important; /* Sin restricción de altura */
    overflow: visible !important; /* Sin scroll */
    border: none;
    padding: 0;
    background: transparent;
}

/* Mejoras generales para text-content-box */
.text-content-box {
    border: 1px solid var(--border-color-subtle);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.text-content-box:hover {
    border-color: var(--accent-color);
}

/* Animaciones suaves para el contenido formateado */
.formatted-content {
    animation: fadeInContent 0.3s ease-out;
}

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

/* Eliminar estilos anteriores problemáticos */
.card h2:before {
    display: none; /* Eliminar todas las barras laterales de color */
}

.summary-section .card h2:before,
.action-items-section .card h2:before,
.decisions-section .card h2:before,
.coaching-section .card h2:before {
    display: none; /* Eliminar barras de color específicas */
}

/* Hover effects minimalistas */
.formatted-content ul li:hover,
.formatted-content ol li:hover {
    color: var(--accent-color);
    transition: color 0.2s ease;
}

.formatted-content ul li:hover:before,
.formatted-content ol li:hover:before {
    color: var(--accent-color);
    transform: scale(1.1);
    transition: all 0.2s ease;
}

/* Espaciado mejorado entre secciones - SOLO para secciones verticales, NO para grid */
.content-area .card + .card {
    margin-top: 1rem;
}

/* Resetear margin para tarjetas de reuniones en grid */
.meeting-suggestion-list .meeting-suggestion-item {
    margin-top: 0 !important;
}

/* === ESTILOS PARA BADGES DE TIPO DE REUNIÓN === */
.meeting-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    gap: 1rem;
}

.meeting-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.meeting-type-badge .material-symbols-rounded {
    font-size: 1rem;
    line-height: 1;
}

/* Badge para reuniones propias */
.badge-owner {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover-color));
    color: white;
    box-shadow: 0 2px 6px rgba(93, 156, 236, 0.3);
}

/* Badge para reuniones importadas */
.badge-imported {
    background: linear-gradient(135deg, var(--success-color), #66BB6A);
    color: white;
    box-shadow: 0 2px 6px rgba(129, 199, 132, 0.3);
}

/* Badge para reuniones como participante */
.badge-participant {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
    color: white;
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
}

/* Hover effect para badges */
.meeting-type-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === ESTILOS PARA BOTONES DE IMPORTAR === */
.import-button {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.import-button:hover {
    background: linear-gradient(135deg, #F57C00, #FF9800);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.import-button:active {
    transform: translateY(0);
}

.import-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.import-button .material-symbols-rounded {
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.import-button:hover .material-symbols-rounded {
    transform: scale(1.1);
}

/* Botón importado (después de la importación) */
.imported-button {
    background: linear-gradient(135deg, var(--success-color), #66BB6A);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    box-shadow: 0 2px 6px rgba(129, 199, 132, 0.3);
}

/* === INFORMACIÓN ADICIONAL DE REUNIONES === */
.meeting-suggestion-owner {
    display: block;
    font-size: 0.8rem;
    color: var(--subheading-color);
    font-style: italic;
    margin-bottom: 0.3rem;
}

/* === ANIMACIONES PARA IMPORTACIÓN === */
@keyframes pulse-success {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.05); 
        opacity: 0.9; 
    }
}

.imported-button .material-symbols-rounded {
    animation: pulse-success 0.6s ease-in-out;
}

/* === AJUSTES RESPONSIVE === */
@media (max-width: 768px) {
    .meeting-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .meeting-type-badge {
        align-self: flex-start;
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .meeting-type-badge .material-symbols-rounded {
        font-size: 0.9rem;
    }
    
    .meeting-suggestion-actions {
        gap: 0.5rem;
    }
    
    .import-button {
        width: 36px;
        height: 36px;
        padding: 0.4rem;
    }
    
    .import-button .material-symbols-rounded {
        font-size: 1.1rem;
    }
}

/* === MEJORAS GENERALES PARA TARJETAS === */
.meeting-suggestion-item {
    position: relative;
    overflow: hidden;
}

.meeting-suggestion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.meeting-suggestion-item:hover::before {
    left: 100%;
}

/* Indicador visual para reuniones no propias */
.meeting-suggestion-item[data-access-type="imported"],
.meeting-suggestion-item[data-access-type="participant"] {
    border-left: 3px solid var(--accent-color);
}

.meeting-suggestion-item[data-access-type="imported"] {
    border-left-color: var(--success-color);
}

.meeting-suggestion-item[data-access-type="participant"] {
    border-left-color: #FF9800;
}

/* Botón de guardar reunión - estilo normal */
#save-meeting-button {
    /* Restaurar estilos normales de botón */
    border-radius: var(--border-radius-button);
    padding: 0.7rem 1.4rem;
    background-color: var(--accent-color);
    color: white;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
}

/* Ajustes sutiles para el selector de archivos y elementos de formulario */
.form-group select {
    /* Puede necesitar estilos adicionales para parecer redondeado */
    appearance: none;
    padding-right: 2.8rem; /* Más espacio para flecha custom */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23888888' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em 1.2em;
    cursor: pointer;
}

/* === MICRO-ANIMACIONES SOFISTICADAS === */

/* Loading states más elegantes */
.skeleton-loader {
    background: linear-gradient(90deg, var(--secondary-color) 25%, var(--secondary-hover-color) 50%, var(--secondary-color) 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: var(--border-radius);
    height: 1.2rem;
    margin: 0.5rem 0;
}

@keyframes loading-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Entrada suave de elementos */
.fade-in-up {
    animation: fadeInUp 0.6s var(--transition-smooth);
}

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

/* Animación suave para nuevos elementos */
.animate-in {
    animation: slideInFromRight 0.5s var(--transition-smooth);
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === GRADIENTES SUTILES PARA PROFUNDIDAD === */

/* Header con gradiente sutil */
.main-header {
    background: linear-gradient(180deg, var(--primary-color) 0%, rgba(42, 42, 42, 0.05) 100%);
    padding: var(--padding-base) 0;
    border-bottom: 1px solid var(--secondary-color);
}

/* Cards con gradiente muy sutil */
.card {
    background: linear-gradient(145deg, var(--secondary-color), rgba(56, 56, 56, 0.1));
    border-radius: var(--border-radius);
    padding: var(--space-xl); /* Usando el nuevo sistema de spacing */
    margin-bottom: var(--margin-large);
    border: 1px solid var(--border-color-subtle);
    transition: all var(--transition-smooth);
    /* Aceleración hardware para elementos animados */
    will-change: transform;
    transform: translateZ(0);
}

.card:hover {
    border-color: var(--accent-color);
    background: linear-gradient(145deg, var(--secondary-hover-color), rgba(56, 56, 56, 0.15));
    transform: translateY(-2px) translateZ(0); /* Optimizar repaints */
    box-shadow: var(--shadow-lg);
}

/* === ESTADOS DE FOCUS ULTRA-REFINADOS === */

/* Focus ring personalizado más elegante */
*:focus-visible {
    outline: 2px solid transparent;
    box-shadow: 
        0 0 0 2px var(--accent-color),
        0 0 0 4px rgba(93, 156, 236, 0.2);
    transition: box-shadow var(--transition-smooth);
}

/* Focus para elementos interactivos */
.button:focus-visible {
    box-shadow: 
        0 0 0 2px var(--accent-color),
        0 0 0 4px rgba(93, 156, 236, 0.15),
        0 4px 12px rgba(93, 156, 236, 0.1);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--secondary-color);
    box-shadow: var(--shadow-focus);
    transform: translateY(-1px);
}

/* === BADGES Y NOTIFICACIONES ELEGANTES === */

/* Badges sutiles pero informativos */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-md);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover-color));
    color: white;
    box-shadow: 0 1px 3px rgba(93, 156, 236, 0.3);
    animation: fadeInUp 0.3s var(--transition-smooth);
}

.badge.success {
    background: linear-gradient(135deg, var(--success-color), #66BB6A);
}

.badge.error {
    background: linear-gradient(135deg, var(--error-color), #EF5350);
}

/* Indicadores de estado pulsantes */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success-color);
    animation: gentle-pulse 2s infinite;
    display: inline-block;
    margin-right: var(--space-sm);
}

@keyframes gentle-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.status-indicator.recording {
    background-color: var(--error-color);
    animation: gentle-pulse 1s infinite;
}

.status-indicator.processing {
    background: conic-gradient(var(--accent-color), var(--accent-hover-color), var(--accent-color));
    animation: spin 1s linear infinite;
}

/* === ESTADOS VACÍOS MÁS ELEGANTES === */

/* Empty states con ilustraciones sutiles */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-2xl);
    color: var(--subheading-color);
    animation: fadeInUp 0.6s var(--transition-smooth);
}

.empty-state::before {
    content: '📝';
    font-size: 3rem;
    display: block;
    margin-bottom: var(--space-lg);
    opacity: 0.5;
    filter: grayscale(20%);
    animation: gentle-float 3s ease-in-out infinite;
}

.empty-state.no-meetings::before {
    content: '🎙️';
}

.empty-state.no-clients::before {
    content: '👥';
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
    color: var(--text-color);
    font-weight: 500;
}

.empty-state p {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto;
    opacity: 0.8;
}

@keyframes gentle-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* === MEJORAS DE EXPERIENCIA TÁCTIL === */

/* Haptic feedback visual */
@media (hover: none) {
    .button:active,
    .card:active,
    .meeting-suggestion-item:active {
        transform: scale(0.98);
        transition: transform 0.1s cubic-bezier(0.2, 0, 0.38, 0.9);
    }
    
    /* Ripple effect sutil */
    .button {
        position: relative;
        overflow: hidden;
    }
    
    .button::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
        pointer-events: none;
    }
    
    .button:active::after {
        width: 300px;
        height: 300px;
    }
}

/* === TRANSICIONES DE TEMA ULTRA-SUAVES === */

/* Transición suave entre temas */
*,
*::before,
*::after {
    transition: 
        background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Preserve user's choice con localStorage */
@media (prefers-color-scheme: dark) {
    :root:not(.light-theme) {
        color-scheme: dark;
    }
}

@media (prefers-color-scheme: light) {
    :root.light-theme {
        color-scheme: light;
    }
}

/* === MEJORAS EN BOTONES Y ELEMENTOS INTERACTIVOS === */

.button {
    /* Aceleración hardware para elementos animados */
    will-change: transform;
    transform: translateZ(0);
    position: relative;
    background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.button:hover {
    transform: translateY(-1px) translateZ(0);
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.1),
        0 2px 4px rgba(0,0,0,0.06);
}

/* Optimización para meeting items */
.meeting-suggestion-item {
    will-change: transform;
    transform: translateZ(0);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.meeting-suggestion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: left 0.5s;
}

.meeting-suggestion-item:hover::before {
    left: 100%;
}

.meeting-suggestion-item:hover {
    transform: translateY(-3px) translateZ(0);
    box-shadow: var(--shadow-lg);
}

/* === REFINAMIENTOS DE FORMULARIOS === */

.form-group {
    margin-bottom: var(--space-xl);
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    font-size: var(--font-size-sm);
    color: var(--subheading-color);
    letter-spacing: 0.01em;
    transition: color var(--transition-smooth);
}

.form-group:focus-within label {
    color: var(--accent-color);
}

/* Placeholder animado */
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    transform: translateY(-1px);
    color: var(--accent-color);
}

/* === MEJORAS EN LOADER Y ESTADOS DE CARGA === */

.loader-overlay {
    backdrop-filter: blur(4px);
    background-color: rgba(26, 26, 26, 0.9);
}

.loader {
    width: 120px;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, 
        var(--accent-color) 0%, 
        var(--accent-hover-color) 50%, 
        var(--accent-color) 100%);
    background-size: 200% 100%;
    animation: loading-shine 1.5s ease-in-out infinite;
    position: relative;
}

@keyframes loading-shine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loader::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(90deg, transparent, rgba(93, 156, 236, 0.1), transparent);
    border-radius: 8px;
    animation: loading-glow 1.5s ease-in-out infinite;
}

@keyframes loading-glow {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* === ESTILOS MODERNOS PARA PARTICIPANTES === */

/* Header con acciones - Diseño profesional */
.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-color-subtle);
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.action-buttons {
    display: flex;
    gap: var(--space-sm);
}

/* Avatares de participantes - Estilo premium */
.participants-avatars {
    display: flex;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    margin-top: 10px;
}

.participant-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    margin-left: -14px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 
        0 4px 14px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.participant-avatar:first-child {
    margin-left: 0;
}

.participant-avatar:hover {
    transform: translateY(-1px) scale(1.02);
    z-index: 20 !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 6px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.participant-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.participant-avatar:hover img {
    transform: scale(1.08);
}

.participant-avatar.placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.participant-avatar.placeholder .avatar-initials {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.participants-count {
    background: linear-gradient(135deg, var(--secondary-hover-color) 0%, var(--secondary-color) 100%);
    color: var(--text-color);
    border: 3px solid var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: -14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 
        0 4px 14px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.participants-count:hover {
    transform: translateY(-6px) scale(1.2);
    z-index: 20;
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.25),
        0 6px 16px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover-color) 100%);
    color: white;
    border-color: var(--accent-color);
}

/* Modal de participantes - Diseño minimalista */
.participants-modal-content {
    max-width: 600px;
    width: 90vw;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--secondary-color);
    border: 1px solid var(--border-color-subtle);
    border-radius: var(--border-radius-large);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color-subtle);
    background: var(--secondary-color);
}

.modal-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
}

.modal-header .material-symbols-rounded {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    background: var(--secondary-color);
}

/* Secciones del modal - Diseño simple */
.add-participants-section,
.current-participants-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color-subtle);
}

.add-participants-section h3,
.current-participants-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-description {
    color: var(--subheading-color);
    font-size: 0.875rem;
    margin: 0 0 1rem;
    line-height: 1.5;
}

/* Input de emails - Diseño simple */
.email-input-section {
    margin-bottom: 1rem;
}

.email-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.email-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color-subtle);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: var(--secondary-color);
    color: var(--text-color);
    font-family: var(--font-family-base);
}

.email-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(93, 156, 236, 0.1);
}

.email-input::placeholder {
    color: var(--placeholder-color);
}

/* Tags de emails - Diseño simple */
.email-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 2rem;
    padding: 0.5rem;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color-subtle);
}

.email-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
    animation: slideInFromRight 0.3s ease;
}

.email-tag .remove-email-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.2s ease;
}

.email-tag .remove-email-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Botones del modal - Diseño simple */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    font-family: var(--font-family-base);
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border: 1px solid var(--accent-color);
}

.btn-primary:hover {
    background: var(--accent-hover-color);
    border-color: var(--accent-hover-color);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--border-color-subtle);
}

.btn-secondary:hover {
    background: var(--secondary-hover-color);
    border-color: var(--accent-color);
}

.btn .material-symbols-rounded {
    font-size: 1rem;
}

/* Lista de participantes - Diseño simple */
.participants-list {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 1px solid var(--border-color-subtle);
}

.participant-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color-subtle);
    transition: all 0.2s ease;
}

.participant-item:last-child {
    margin-bottom: 0;
}

.participant-item:hover {
    border-color: var(--accent-color);
    background: var(--secondary-color);
}

.participant-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.participant-email {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.875rem;
}

.participant-status {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    display: inline-block;
    width: fit-content;
}

.participant-status.status-pending {
    background: rgba(251, 191, 36, 0.2);
    color: #f59e0b;
}

.participant-status.status-notified {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.participant-status.status-viewed {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.participant-actions {
    display: flex;
    gap: 0.5rem;
}

.participant-action-btn {
    padding: 0.5rem;
    border: none;
    background: var(--secondary-color);
    color: var(--subheading-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color-subtle);
}

.participant-action-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.participant-action-btn .material-symbols-rounded {
    font-size: 0.9rem;
}

/* Estados de carga - Tema oscuro */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--subheading-color);
    font-size: 0.875rem;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color-subtle);
    border-top: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Mensajes de estado - Tema oscuro */
.status-message {
    padding: 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    background: var(--secondary-color);
    border: 1px solid var(--border-color-subtle);
}

.status-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
    border-color: rgba(34, 197, 94, 0.3);
}

.status-message.error {
    background: rgba(229, 88, 101, 0.1);
    color: var(--error-color);
    border-color: rgba(229, 88, 101, 0.3);
}

.status-message.warning {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
    border-color: rgba(251, 191, 36, 0.3);
}

.status-message .material-symbols-rounded {
    font-size: 1.125rem;
}

/* Responsive - Diseño móvil optimizado */
@media (max-width: 768px) {
    .view-header {
        
        align-items: stretch;
        gap: var(--space-lg);
        margin-bottom: var(--space-2xl);
        padding-bottom: var(--space-lg);
    }
    
    .header-actions {
        justify-content: center;
        align-items: center;
    }
    
    .meeting-details-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .participants-avatars {
        justify-content: flex-start;
        
    }
    
    .participant-avatar {
        width: 42px;
        height: 42px;
        margin-left: -10px;
        border-width: 2px;
    }
    
    .participants-count {
        width: 42px;
        height: 42px;
        margin-left: -10px;
        font-size: 12px;
        border-width: 2px;
    }
    
    .participants-modal-content {
        width: 96vw;
        max-height: 92vh;
        margin: 2vh auto;
    }
    
    .modal-header {
        padding: var(--space-xl) var(--space-lg) var(--space-lg);
    }
    
    .modal-body {
        padding: var(--space-lg);
    }
    
    .add-participants-section,
    .current-participants-section {
        padding: var(--space-lg);
        margin-bottom: var(--space-xl);
    }
    
    .email-input-group {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .participant-item {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
        padding: var(--space-lg);
    }
    
    .participant-info {
        text-align: left;
    }
    
    .participant-actions {
        justify-content: flex-end;
        align-self: flex-end;
    }
    
    .btn {
        min-height: 44px;
        padding: var(--space-md) var(--space-lg);
    }
}

/* Animaciones */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Overrides específicos para modal en móvil - DEBE IR AL FINAL */
@media (max-width: 768px) {
    /* Sobrescribir cualquier estilo conflictivo del modal */
    .modal {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    
    .modal-content {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        transform: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    /* Forzar que el modal específico use estos estilos */
    #client-modal {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
    }
}

