/* Mi Consulta 2.0 - Dashboard Styles */
/* Calm warm sage/cream palette with bee motif */

:root {
    --sage-dark: #6B7F5E;
    --sage-medium: #8FA67A;
    --sage-light: #B5C9A3;
    --sage-pale: #D4E2C5;
    --cream: #FFF8EE;
    --cream-dark: #F5EDDE;
    --gold: #D4A843;
    --gold-light: #F0D68A;
    --text-dark: #2C3E2D;
    --text-medium: #5A6B5A;
    --text-light: #8A9A8A;
    --white: #FFFFFF;
    --danger: #C0392B;
    --shadow: rgba(107, 127, 94, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.dashboard-header {
    background: linear-gradient(135deg, var(--sage-dark) 0%, var(--sage-medium) 100%);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bee-icon {
    font-size: 1.8rem;
}

.logo-area h1 {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.prototype-warning-banner {
    background-color: var(--gold);
    color: var(--text-dark);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-link.active {
    background-color: var(--gold);
    color: var(--text-dark);
    font-weight: 600;
}

/* Prototype Warning */
.prototype-warning {
    background-color: var(--gold-light);
    color: var(--text-dark);
    padding: 0.6rem 1.5rem;
    margin-top: 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Main Content */
.dashboard-content {
    flex: 1;
    padding: 1.5rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.module-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.module-section.active {
    display: block;
}

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

.module-section h2 {
    color: var(--sage-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--sage-light);
    font-size: 1.5rem;
}

.module-placeholder {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid var(--sage-pale);
}

.module-placeholder p {
    color: var(--text-medium);
    margin-bottom: 0.75rem;
}

.module-placeholder p:last-child {
    margin-bottom: 0;
}

/* Footer */
.dashboard-footer {
    background-color: var(--sage-pale);
    color: var(--text-medium);
    text-align: center;
    padding: 1rem;
    margin-top: auto;
    font-size: 0.85rem;
}

.footer-warning {
    margin-top: 0.5rem;
    font-style: italic;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-nav {
        justify-content: center;
    }
    .logo-area h1 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    .logo-area {
        flex-direction: column;
        gap: 0.4rem;
    }
    .main-nav {
        justify-content: center;
        width: 100%;
    }
    .nav-link {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
    }
    .dashboard-content {
        padding: 1rem;
    }
    .module-placeholder {
        padding: 1.5rem;
    }
    .prototype-warning-banner {
        display: block;
        text-align: center;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .main-nav {
        flex-wrap: wrap;
        gap: 0.15rem;
    }
    .nav-link {
        padding: 0.3rem 0.4rem;
        font-size: 0.75rem;
    }
    .logo-area h1 {
        font-size: 1.1rem;
    }
}

/* Print Styles */
@media print {
    .dashboard-header {
        position: static;
    }
    .nav-link {
        color: var(--text-dark);
    }
}


/* Accessibility and reduced-motion preferences */
.nav-link:focus-visible {
    outline: 3px solid var(--gold-light);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
