/* =====================================================================
   ASTRAAL HELIX (TM) - Brand Stylesheet
   Emerald Green / Aqua Blue / White / Silver / Charcoal
   ===================================================================== */

:root {
    --astraal-emerald: #00A99D;
    --astraal-emerald-dark: #00857b;
    --astraal-aqua: #00A9E0;
    --astraal-white: #FFFFFF;
    --astraal-silver: #F4F6F8;
    --astraal-border: #E3E8EC;
    --astraal-charcoal: #2E3238;
    --astraal-charcoal-soft: #6B7280;
    --astraal-danger: #E74C3C;
    --astraal-warning: #F5A623;
    --astraal-success: #2ECC71;
    --astraal-info: #00A9E0;
    --astraal-radius: 10px;
    --astraal-shadow: 0 2px 10px rgba(46, 50, 56, 0.06);
}

* { box-sizing: border-box; }

body {
    background: var(--astraal-silver);
    color: var(--astraal-charcoal);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    font-size: 14px;
}

a { color: var(--astraal-emerald-dark); text-decoration: none; }
a:hover { color: var(--astraal-emerald); text-decoration: none; }

/* ---------------------------------------------------------------------
   LOGIN SCREEN
--------------------------------------------------------------------- */
.helix-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #063a36 0%, #00857b 45%, #00A9E0 100%);
}
.helix-login-card {
    width: 400px;
    max-width: 92vw;
    background: var(--astraal-white);
    border-radius: var(--astraal-radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    padding: 40px 36px;
}
.helix-login-brand {
    text-align: center;
    margin-bottom: 28px;
}
.helix-login-brand .helix-logo-mark {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--astraal-emerald), var(--astraal-aqua));
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 26px; font-weight: 700;
    margin-bottom: 10px;
}
.helix-login-brand h1 { font-size: 22px; font-weight: 700; margin: 0; color: var(--astraal-charcoal); }
.helix-login-brand p { font-size: 12.5px; color: var(--astraal-charcoal-soft); margin: 2px 0 0; }
.helix-demo-creds { background: var(--astraal-silver); border: 1px dashed var(--astraal-border); border-radius: 8px; padding: 10px 12px; font-size: 12px; color: var(--astraal-charcoal-soft); margin-top: 18px; }
.helix-demo-creds strong { color: var(--astraal-charcoal); }

/* ---------------------------------------------------------------------
   APP SHELL
--------------------------------------------------------------------- */
.helix-shell { display: flex; min-height: 100vh; }

.helix-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #0B2B29;
    color: #cfe8e5;
    display: flex;
    flex-direction: column;
}
.helix-sidebar-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 18px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.helix-sidebar-brand .helix-logo-mark {
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, var(--astraal-emerald), var(--astraal-aqua));
    display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px;
}
.helix-sidebar-brand .helix-name { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.1; }
.helix-sidebar-brand .helix-sub { font-size: 10.5px; color: #85b8b3; letter-spacing: .04em; }

.helix-nav { flex: 1; overflow-y: auto; padding: 14px 10px; }
.helix-nav-section-title { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #5f8d89; padding: 14px 10px 6px; }
.helix-nav a.helix-nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 8px; color: #cfe8e5; font-size: 13.5px;
    margin-bottom: 2px;
}
.helix-nav a.helix-nav-link i { width: 18px; text-align: center; color: #7fc4bd; }
.helix-nav a.helix-nav-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.helix-nav a.helix-nav-link.active { background: var(--astraal-emerald); color: #fff; }
.helix-nav a.helix-nav-link.active i { color: #fff; }
.helix-nav .helix-nav-children { margin-left: 14px; border-left: 1px solid rgba(255,255,255,0.08); padding-left: 6px; }

.helix-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.helix-topbar {
    height: 60px; background: #fff; border-bottom: 1px solid var(--astraal-border);
    display: flex; align-items: center; justify-content: space-between; padding: 0 22px;
    position: sticky; top: 0; z-index: 10;
}
.helix-topbar .helix-page-title { font-size: 17px; font-weight: 700; color: var(--astraal-charcoal); }
.helix-topbar .helix-user-chip { display: flex; align-items: center; gap: 10px; }
.helix-topbar .helix-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--astraal-emerald); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}

.helix-content { padding: 24px; flex: 1; }

/* ---------------------------------------------------------------------
   CARDS / WIDGETS
--------------------------------------------------------------------- */
.helix-card {
    background: #fff; border: 1px solid var(--astraal-border); border-radius: var(--astraal-radius);
    box-shadow: var(--astraal-shadow); padding: 20px; margin-bottom: 20px;
}
.helix-card-title { font-size: 14.5px; font-weight: 700; color: var(--astraal-charcoal); margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }

.helix-kpi { padding: 18px 20px; border-radius: var(--astraal-radius); background: #fff; border: 1px solid var(--astraal-border); box-shadow: var(--astraal-shadow); }
.helix-kpi .helix-kpi-value { font-size: 26px; font-weight: 800; color: var(--astraal-charcoal); }
.helix-kpi .helix-kpi-label { font-size: 12px; color: var(--astraal-charcoal-soft); text-transform: uppercase; letter-spacing: .04em; }
.helix-kpi .helix-kpi-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; color: #fff; }

/* ---------------------------------------------------------------------
   BADGES
--------------------------------------------------------------------- */
.badge-priority-critical { background: var(--astraal-danger); color: #fff; }
.badge-priority-high { background: var(--astraal-warning); color: #fff; }
.badge-priority-medium { background: var(--astraal-aqua); color: #fff; }
.badge-priority-low { background: #9AA5B1; color: #fff; }
.helix-badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.helix-state-pill { padding: 5px 12px; border-radius: 20px; font-size: 11.5px; font-weight: 700; color: #fff; display: inline-block; }

/* ---------------------------------------------------------------------
   TABLES
--------------------------------------------------------------------- */
table.helix-table thead th { background: var(--astraal-silver); font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--astraal-charcoal-soft); border-bottom: 2px solid var(--astraal-border); }
table.helix-table td { vertical-align: middle; font-size: 13.5px; }
table.helix-table tr:hover { background: #FAFCFC; }

/* ---------------------------------------------------------------------
   TIMELINE / ACTIVITY
--------------------------------------------------------------------- */
.helix-timeline { position: relative; padding-left: 26px; }
.helix-timeline:before { content: ''; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 2px; background: var(--astraal-border); }
.helix-timeline-item { position: relative; padding-bottom: 18px; }
.helix-timeline-item:before { content: ''; position: absolute; left: -26px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--astraal-emerald); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--astraal-emerald); }
.helix-timeline-item .helix-tl-meta { font-size: 11.5px; color: var(--astraal-charcoal-soft); }

/* ---------------------------------------------------------------------
   WORKFLOW DESIGNER (visual state chain)
--------------------------------------------------------------------- */
.helix-wf-chain { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 0; }
.helix-wf-state { padding: 10px 16px; border-radius: 8px; color: #fff; font-size: 12.5px; font-weight: 700; box-shadow: var(--astraal-shadow); }
.helix-wf-arrow { color: var(--astraal-charcoal-soft); font-size: 16px; }

/* ---------------------------------------------------------------------
   MISC
--------------------------------------------------------------------- */
.helix-section-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--astraal-emerald-dark); font-weight: 700; margin: 18px 0 10px; border-bottom: 1px solid var(--astraal-border); padding-bottom: 6px; }
.btn-astraal { background: var(--astraal-emerald); border-color: var(--astraal-emerald); color: #fff; font-weight: 600; }
.btn-astraal:hover { background: var(--astraal-emerald-dark); border-color: var(--astraal-emerald-dark); color: #fff; }
.btn-outline-astraal { border-color: var(--astraal-emerald); color: var(--astraal-emerald-dark); font-weight: 600; }
.btn-outline-astraal:hover { background: var(--astraal-emerald); color: #fff; }
.helix-empty-state { text-align: center; padding: 50px 20px; color: var(--astraal-charcoal-soft); }
.helix-empty-state i { font-size: 40px; color: var(--astraal-border); margin-bottom: 12px; }
.helix-config-tile { display: block; background: #fff; border: 1px solid var(--astraal-border); border-radius: var(--astraal-radius); padding: 20px; box-shadow: var(--astraal-shadow); height: 100%; }
.helix-config-tile:hover { border-color: var(--astraal-emerald); transform: translateY(-2px); transition: all .15s ease; }
.helix-config-tile .helix-config-icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(0,169,157,.1); color: var(--astraal-emerald-dark); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 12px; }

@media (max-width: 900px) {
    .helix-sidebar { position: fixed; left: -260px; top: 0; bottom: 0; z-index: 40; transition: left .2s ease; }
    .helix-sidebar.open { left: 0; }
    .helix-main { width: 100%; }
}
