/* brand.css — Areg AI brand overrides
   Colors sourced from areg.ai: green #1ACF8E, solar orange #F7941D,
   near-black #0C0C0B. Light theme. Built by Mutex Software for Areg AI.
   Loaded by index.html AFTER the platform stylesheet so these win. */

/* ── Design tokens ─────────────────────────────────────────────────────── */
:root {
    /* Light surfaces */
    --bg:          #f4f6f9;
    --bg-card:     #ffffff;
    --bg-input:    #f9fafb;
    --bg-sidebar:  #ffffff;
    --border:      #e2e8f0;

    /* Text — near-black from areg.ai */
    --text:        #0c0c0b;
    --text-muted:  #6b7280;

    /* Primary accent — areg.ai bright teal-green */
    --accent:      #1acf8e;
    --accent-dark: #007e50;
    --accent-rgb:  26, 207, 142;

    /* Secondary — areg.ai solar orange */
    --accent2:     #f7941d;
    --accent2-dark:#e07a0d;

    /* Status */
    --success:     #1acf8e;
    --danger:      #ef4444;
    --warning:     #f7941d;

    /* Shape */
    --radius:      10px;
    --radius-sm:   6px;
}

/* Keep light even if platform switches to dark mode */
:root.light-theme,
:root {
    --bg:          #f4f6f9;
    --bg-card:     #ffffff;
    --bg-input:    #f9fafb;
    --bg-sidebar:  #ffffff;
    --border:      #e2e8f0;
    --text:        #0c0c0b;
    --text-muted:  #6b7280;
    --accent:      #1acf8e;
    --accent-dark: #007e50;
    --accent2:     #f7941d;
}

/* Hide theme toggle — Areg AI uses its own palette */
#theme-toggle { display: none !important; }

/* ── Logo mark ──────────────────────────────────────────────────────────── */
.aregai-logo {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    line-height: 1;
    text-decoration: none;
}

.aregai-logo .logo-areg {
    color: var(--text);
}

.aregai-logo .logo-dot {
    color: var(--accent);
    font-weight: 900;
}

.aregai-logo .logo-ai {
    color: var(--accent);
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */
#sidebar {
    border-right: 1px solid var(--border);
    background: var(--bg-sidebar);
    box-shadow: 2px 0 8px rgba(0,0,0,0.04);
}

/* Green + orange top bar on the sidebar */
#sidebar::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #1acf8e 0%, #f7941d 100%);
}

/* Same bar across the whole page top */
body::before {
    content: '';
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1acf8e 0%, #f7941d 100%);
    z-index: 9999;
    pointer-events: none;
}

/* Active nav link */
.nav-item.active .nav-link {
    color: var(--accent-dark);
    background: rgba(26, 207, 142, 0.1);
    border-left: 3px solid var(--accent);
    padding-left: calc(1rem - 3px);
}

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}
.btn-primary:hover {
    background: var(--accent-dark);
}

/* ── Usage bar ──────────────────────────────────────────────────────────── */
.usage-bar-fill {
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 100%);
}

/* ── Auth card (login/register) ────────────────────────────────────────── */
.auth-card {
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* ── Areg AI dashboard stat cards ──────────────────────────────────────── */
.areg-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.areg-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.areg-stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    font-weight: 600;
}

/* ── Solar module action cards ──────────────────────────────────────────── */
.areg-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.areg-module-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    cursor: pointer;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s;
    text-decoration: none;
    display: block;
}

.areg-module-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 6px 24px rgba(16,185,129,0.12);
    transform: translateY(-2px);
    text-decoration: none;
}

.areg-module-icon {
    font-size: 1.8rem;
    margin-bottom: 14px;
    display: block;
}

.areg-module-title {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.areg-module-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Status badge ───────────────────────────────────────────────────────── */
.areg-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.areg-badge-green  { background: rgba(26,207,142,0.12); color: #007e50; }
.areg-badge-amber  { background: rgba(247,148,29,0.12); color: #e07a0d; }
.areg-badge-muted  { background: rgba(107,114,128,0.12); color: #6b7280; }

/* ── Section title ──────────────────────────────────────────────────────── */
.areg-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 28px 0 14px;
}

/* ── Welcome banner ─────────────────────────────────────────────────────── */
.areg-welcome {
    background: linear-gradient(135deg, #eafaf4 0%, #fff8f0 100%);
    border: 1px solid #c6f0e0;
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.areg-welcome-text h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.areg-welcome-text p {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.55;
}

.areg-welcome-badge {
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-dark);
    border: 1px solid rgba(26,207,142,0.4);
    border-radius: 20px;
    padding: 6px 16px;
}

@media (max-width: 640px) {
    .areg-welcome { flex-direction: column; align-items: flex-start; }
}
