/* === Mínimo Marketing — Dashboard Theme === */

:root {
    --amber: #FBAE28;
    --amber-light: #FFF3D6;
    --amber-dark: #D4910E;
    --dark: #1A1A1A;
    --dark-hover: #2A2A2A;
    --text: #111111;
    --text-muted: #888888;
    --text-light: #AAAAAA;
    --border: #E0E0E0;
    --row-alt: #FAFAFA;
    --bg: #F5F5F5;
    --white: #FFFFFF;
    --status-healthy: #DCFCE7;
    --status-healthy-text: #166534;
    --status-attention: #FEF9C3;
    --status-attention-text: #854D0E;
    --status-danger: #FEE2E2;
    --status-danger-text: #991B1B;
    --status-internal: #F2F2F2;
    --status-internal-text: #666666;
    --radius: 8px;
    --radius-sm: 4px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === Header === */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-bar {
    background: var(--dark);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 32px;
    width: auto;
}

.header-title {
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.02em;
}

.header-nav {
    display: flex;
    gap: 4px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
}

.nav-link:hover {
    color: var(--white);
    background: var(--dark-hover);
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.period-selector select {
    background: var(--dark-hover);
    color: var(--white);
    border: 1px solid #444;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.btn-sync {
    background: var(--amber);
    color: var(--dark);
    border: none;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-sync:hover {
    background: var(--amber-dark);
}

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

.header-amber-line {
    height: 4px;
    background: var(--amber);
}

/* === Main Content === */
.main-content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 24px;
}

/* === Footer === */
.main-footer {
    margin-top: auto;
}

.footer-bar {
    background: var(--dark);
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.footer-text {
    color: var(--text-muted);
    font-size: 11px;
}

.footer-brand {
    color: var(--amber);
    font-size: 11px;
    font-weight: 500;
}

/* === Utilities === */
.text-muted { color: var(--text-muted); }
.text-amber { color: var(--amber); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* === Login Page === */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--dark);
}

.login-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box img {
    height: 48px;
    margin-bottom: 24px;
}

.login-box h1 {
    font-size: 18px;
    margin-bottom: 8px;
}

.login-box p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 24px;
}

.login-box input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 16px;
}

.login-box input[type="password"]:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(251, 174, 40, 0.2);
}

.login-box button {
    width: 100%;
    padding: 10px;
    background: var(--amber);
    color: var(--dark);
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.login-box button:hover {
    background: var(--amber-dark);
}

.login-error {
    background: var(--status-danger);
    color: var(--status-danger-text);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .header-bar {
        flex-wrap: wrap;
        height: auto;
        padding: 12px;
        gap: 8px;
    }

    .header-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .nav-link {
        white-space: nowrap;
        font-size: 12px;
        padding: 6px 12px;
    }

    .header-right {
        gap: 8px;
    }

    .main-content {
        padding: 16px;
    }
}
