/* --- Reset y Variables Globales --- */
:root {
    --primary-color: #6a1b9a;
    --primary-dark: #4a148c;
    --background-color: #f8f9fa;
    --surface-color: #ffffff;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border-color: #dfe1e5;
    --divider-color: #e0e0e0;
    --google-blue: #1a73e8;
    --google-icon-color: #5f6368;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 56px; /* Ajuste para la navbar fija */
}

.container {
    width: 95%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Estilos para la nueva navbar */
.navbar .user-initials {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

.dropdown-menu {
    border-radius: .5rem;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}


/* --- Contenido Principal y Tarjetas --- */
main {
    flex-grow: 1; /* Asegura que el contenido principal ocupe el espacio disponible */
    padding: 2rem 0;
}

.main-content-container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden; /* Para que los bordes redondeados se apliquen a los hijos */
}

.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    background-color: #f8f9fa;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
}

.card-body {
    padding: 24px;
}

/* --- Pie de Página (Footer) --- */
.site-footer {
    background-color: var(--primary-dark);
    color: #e0e0e0;
    padding: 2rem 0;
    text-align: center;
    margin-top: auto; /* Empuja el footer al final */
}

.site-footer p {
    margin: 0;
    font-size: 14px;
}

/* --- Componentes de Formularios --- */
.form-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-secondary);
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--divider-color);
}

.form-divider span {
    padding: 0 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
}
