/* ==============================================================================
   ALMAI OS - 100% EXACT BRAND DESIGN SYSTEM MATCHING HTTPS://ALMAI.ID/
   Font: Montserrat | Base: #050505 | Accent: #33E818 | Capsule Glass Styling
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #050505;
    --bg-surface: rgba(0, 0, 0, 0.75);
    --bg-card: rgba(10, 10, 10, 0.65);
    --bg-card-hover: rgba(20, 20, 20, 0.85);
    
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glass-subtle: rgba(255, 255, 255, 0.06);
    --border-accent: #33E818;
    --border-accent-glow: rgba(51, 232, 24, 0.4);
    
    --accent: #33E818;
    --accent-light: #4ade80;
    --accent-emerald: #10b981;
    --accent-yellow: #facc15;
    --accent-red: #ef4444;
    --accent-cyan: #00FFA3;
    
    --text-white: #ffffff;
    --text-gray-200: #e2e8f0;
    --text-gray-400: #9ca3af;
    --text-gray-500: #6b7280;
    
    --font-primary: 'Montserrat', sans-serif !important;
    --font-secondary: 'Public Sans', sans-serif;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    position: relative;
}

/* CEO-only authentication */
.ceo-login-page {
    display: grid;
    place-items: center;
    padding: 30px;
    overflow: auto;
}

.ceo-login-shell {
    position: relative;
    z-index: 2;
    width: min(980px, 100%);
}

.ceo-login-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 18px 4px;
}

.ceo-login-brand img { width: 38px; height: 38px; object-fit: contain; }
.ceo-login-brand strong { display: block; font-size: 20px; font-weight: 900; letter-spacing: -0.6px; }
.ceo-login-brand strong span { color: var(--accent); }
.ceo-login-brand small { display: block; color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: 1.5px; }

.ceo-login-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    min-height: 560px;
    overflow: hidden;
    background: rgba(9, 12, 10, 0.94);
    border: 1px solid var(--border-glass);
    border-radius: 26px;
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.58), 0 0 50px rgba(51, 232, 24, 0.05);
    backdrop-filter: blur(20px);
}

.ceo-login-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 42px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(51, 232, 24, 0.14), transparent 56%), #070a08;
    border-right: 1px solid var(--border-glass);
}

.ceo-login-intro::after {
    content: '';
    position: absolute;
    right: -120px;
    bottom: -130px;
    width: 300px;
    height: 300px;
    background: rgba(51, 232, 24, 0.12);
    border-radius: 50%;
    filter: blur(24px);
}

.ceo-login-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 11px;
    color: #adfda2;
    background: rgba(51, 232, 24, 0.07);
    border: 1px solid rgba(51, 232, 24, 0.24);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.ceo-login-eyebrow i {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
}

.ceo-login-intro h1 {
    max-width: 360px;
    margin: 0 0 16px;
    font-size: clamp(34px, 4vw, 49px);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -2.3px;
}

.ceo-login-intro > div > p {
    max-width: 340px;
    color: var(--text-gray-400);
    font-size: 12px;
    line-height: 1.7;
}

.ceo-login-security {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ceo-login-security span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    color: #071006;
    background: var(--accent);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
}

.ceo-login-security p { color: #adb8af; font-size: 10px; line-height: 1.55; }

.ceo-login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 54px;
}

.ceo-login-crown {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    color: #071006;
    background: var(--accent);
    border-radius: 14px;
    font-size: 23px;
    box-shadow: 0 0 28px rgba(51, 232, 24, 0.18);
}

.ceo-login-kicker { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; }
.ceo-login-form-panel h2 { margin: 7px 0 7px; font-size: 27px; font-weight: 850; letter-spacing: -1px; }
.ceo-login-form-panel > p { margin-bottom: 26px; color: var(--text-gray-400); font-size: 12px; }
.ceo-login-form-panel label { display: block; margin: 0 0 8px; color: #cbd5cc; font-size: 11px; font-weight: 700; }

.ceo-login-input {
    position: relative;
    display: flex;
    align-items: center;
    height: 51px;
    margin-bottom: 18px;
}

.ceo-login-input > span {
    position: absolute;
    left: 15px;
    color: #657068;
    font-size: 12px;
    pointer-events: none;
}

.ceo-login-input input {
    width: 100%;
    height: 100%;
    padding: 0 92px 0 43px;
    color: #fff;
    background: #070907;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 13px;
    outline: none;
    font-size: 12px;
    transition: var(--transition);
}

.ceo-login-input input:focus { border-color: rgba(51, 232, 24, 0.7); box-shadow: 0 0 0 4px rgba(51, 232, 24, 0.08); }
.ceo-login-input input::placeholder { color: #505951; }

.ceo-password-toggle {
    position: absolute;
    right: 8px;
    padding: 8px;
    color: var(--text-gray-400);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
}

.ceo-password-toggle:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.ceo-login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 52px;
    margin-top: 4px;
    color: #071006;
    background: var(--accent);
    border: 0;
    border-radius: 13px;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
    transition: var(--transition);
}

.ceo-login-submit:hover { background: #50f337; transform: translateY(-1px); box-shadow: 0 14px 30px rgba(51, 232, 24, 0.16); }
.ceo-login-submit b { font-size: 17px; }
.ceo-login-note { margin-top: 18px; color: var(--text-gray-500); font-size: 9px; text-align: center; }

.ceo-login-error {
    margin-bottom: 18px;
    padding: 11px 13px;
    color: #fecdd3;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 10px;
    font-size: 10px;
    line-height: 1.5;
}

.ceo-logout-form { margin-left: 4px; }
.ceo-logout-button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--text-gray-400);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}
.ceo-logout-button:hover { color: #fff; background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.35); }

@media (max-width: 760px) {
    .ceo-login-page { padding: 18px 14px; place-items: start center; }
    .ceo-login-card { grid-template-columns: 1fr; min-height: auto; }
    .ceo-login-intro { min-height: 310px; padding: 30px 28px; border-right: 0; border-bottom: 1px solid var(--border-glass); }
    .ceo-login-intro h1 { font-size: 34px; letter-spacing: -1.7px; }
    .ceo-login-form-panel { padding: 34px 28px 38px; }
}

@media (max-width: 430px) {
    .ceo-login-intro { display: none; }
    .ceo-login-form-panel { padding: 32px 22px 34px; }
}

/* Background Grid 100% Identical to almai.id */
.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* Glow Orb matching almai.id hero */
.bg-glow {
    position: fixed;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: rgba(51, 232, 24, 0.16);
    filter: blur(140px);
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
}

/* Custom Scrollbar matching almai.id */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #262626;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #33e818;
}

/* ==============================================================================
   SIDEBAR & CAPSULE NAVIGATION
   ============================================================================== */

.sidebar {
    width: 270px;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-glass);
}

.brand-logo-img {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.brand-title-group {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 19px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
}

.brand-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nav-menu {
    list-style: none;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow-y: auto;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: var(--text-gray-400);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 9999px; /* Capsule pill shape like almai.id */
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-item a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.nav-item.active a {
    color: #000;
    background: var(--accent);
    font-weight: 800;
    box-shadow: 0 0 20px var(--border-accent-glow);
    border-color: var(--accent);
}

.nav-item.active a i {
    color: #000;
}

.nav-item a i {
    font-size: 15px;
    width: 18px;
    text-align: center;
    color: var(--accent);
}

.sidebar-footer {
    padding: 18px 20px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-gray-500);
    font-weight: 600;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    display: inline-block;
    margin-right: 6px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(51, 232, 24, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(51, 232, 24, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(51, 232, 24, 0); }
}

/* ==============================================================================
   MAIN WRAPPER & HEADER
   ============================================================================== */

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    position: relative;
    z-index: 10;
}

.top-header {
    padding: 14px 36px;
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(5, 5, 5, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    margin-bottom: 6px;
}

.header-title h2 {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.8px;
    text-transform: uppercase;
    color: #fff;
}

.gradient-text {
    background: linear-gradient(to right, #33E818, #4ade80, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 18px 6px 10px;
    border-radius: 9999px;
    border: 1px solid var(--border-glass);
}

.avatar-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    object-fit: cover;
    background: #111;
}

/* ==============================================================================
   CEO COMMAND BAR (ALMAI CAPSULE SEARCH STYLE)
   ============================================================================== */

.command-box-wrapper {
    width: 100%;
}

.command-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid var(--border-glass);
    border-radius: 9999px; /* Capsule shape like almai.id navbar */
    padding: 6px 10px 6px 20px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
    transition: var(--transition);
}

.command-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 25px var(--border-accent-glow);
}

.command-icon {
    font-size: 16px;
    color: var(--accent);
    margin-right: 12px;
}

.command-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.command-input::placeholder {
    color: var(--text-gray-500);
}

.btn-command-send {
    background: var(--accent);
    color: #000;
    border: none;
    font-weight: 800;
    font-size: 13px;
    padding: 10px 24px;
    border-radius: 9999px; /* Pill button matching almai.id Login button */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-command-send:hover {
    background: #ffffff;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

.command-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.pill-label {
    font-size: 11px;
    color: var(--text-gray-500);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.cmd-pill {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-glass);
    color: var(--text-gray-400);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 9999px;
    cursor: pointer;
    transition: var(--transition);
}

.cmd-pill:hover {
    background: rgba(51, 232, 24, 0.12);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

/* ==============================================================================
   CARDS, KPI METRICS & TABLES
   ============================================================================== */

.content-container {
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px; /* Modern rounded corners like almai.id */
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(51, 232, 24, 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(51, 232, 24, 0.12);
    transform: translateY(-2px);
}

/* ==============================================================================
   ALMAI-NEW DATA VIEW
   ============================================================================== */

#tab-website {
    width: 100%;
}

.website-sync-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
    padding: 12px 16px;
    color: #b9f6c5;
    background: linear-gradient(90deg, rgba(22, 101, 52, 0.2), rgba(10, 31, 18, 0.72));
    border: 1px solid rgba(51, 232, 24, 0.18);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.website-sync-banner.has-warning {
    color: #fde68a;
    background: rgba(120, 53, 15, 0.18);
    border-color: rgba(250, 204, 21, 0.24);
}

.website-sync-indicator {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(51, 232, 24, 0.1), 0 0 14px rgba(51, 232, 24, 0.65);
}

.website-sync-banner.has-warning .website-sync-indicator {
    background: var(--accent-yellow);
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.1);
}

.website-data-card {
    min-height: calc(100vh - 245px);
    padding: 0;
    overflow: hidden;
    background: rgba(8, 10, 9, 0.88);
    border-color: rgba(51, 232, 24, 0.22);
}

.website-data-card:hover {
    transform: none;
}

.website-data-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 24px 26px 20px;
    border-bottom: 1px solid var(--border-glass-subtle);
}

.website-data-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.website-data-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    color: var(--accent);
    background: rgba(51, 232, 24, 0.1);
    border: 1px solid rgba(51, 232, 24, 0.25);
    border-radius: 13px;
    box-shadow: inset 0 0 18px rgba(51, 232, 24, 0.04);
}

.website-data-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.website-data-heading h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.35px;
}

.website-data-heading p {
    color: var(--text-gray-400);
    font-size: 11.5px;
    line-height: 1.55;
}

.website-dataset-control {
    width: min(240px, 100%);
    flex: 0 0 240px;
}

.website-dataset-control label {
    display: block;
    margin: 0 0 7px 2px;
    color: var(--text-gray-400);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.website-select-wrap {
    position: relative;
}

.website-select-wrap select {
    width: 100%;
    height: 40px;
    padding: 0 38px 0 13px;
    appearance: none;
    color: var(--text-gray-200);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    outline: none;
    font-size: 11.5px;
    font-weight: 600;
    transition: var(--transition);
}

.website-select-wrap select:focus {
    border-color: rgba(51, 232, 24, 0.65);
    box-shadow: 0 0 0 3px rgba(51, 232, 24, 0.09);
}

.website-select-wrap select option {
    color: #fff;
    background: #101210;
}

.website-select-wrap i {
    position: absolute;
    top: 50%;
    right: 14px;
    color: var(--accent);
    font-size: 9px;
    pointer-events: none;
    transform: translateY(-50%);
}

.website-data-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 54px;
    padding: 11px 26px;
    background: rgba(255, 255, 255, 0.018);
    border-bottom: 1px solid var(--border-glass-subtle);
}

#website-data-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray-500);
    font-size: 10.5px;
}

#website-data-info strong {
    color: var(--text-gray-200);
    font-size: 11.5px;
}

#website-data-info strong::after {
    content: '';
    display: inline-block;
    width: 3px;
    height: 3px;
    margin-left: 10px;
    vertical-align: middle;
    background: var(--text-gray-500);
    border-radius: 50%;
}

.website-sync-warning {
    color: var(--accent-yellow);
}

.website-readonly-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 6px 10px;
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.website-table-wrap {
    width: 100%;
    min-height: 430px;
    max-height: calc(100vh - 445px);
    overflow: auto;
    scrollbar-gutter: stable;
}

.website-table-wrap .data-table {
    width: 100%;
    min-width: 860px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text-gray-200);
    font-family: var(--font-secondary);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.website-table-wrap .data-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 16px;
    color: #8fa498;
    background: #0b0e0c;
    border-bottom: 1px solid rgba(51, 232, 24, 0.16);
    font-family: var(--font-primary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.65px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.website-table-wrap .data-table td {
    max-width: 340px;
    padding: 11px 16px;
    overflow: hidden;
    color: #ced5d0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    line-height: 1.45;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.website-table-wrap .data-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.012);
}

.website-table-wrap .data-table tbody tr:hover td {
    color: #fff;
    background: rgba(51, 232, 24, 0.045);
}

.website-table-wrap .data-table td:first-child,
.website-table-wrap .data-table th:first-child {
    padding-left: 26px;
}

.website-table-wrap .data-table td:last-child,
.website-table-wrap .data-table th:last-child {
    padding-right: 26px;
}

.website-table-loading,
.website-table-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 430px;
    color: var(--text-gray-400);
    font-size: 11px;
}

.website-table-loading span {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    animation: website-loading 1s ease-in-out infinite;
}

.website-table-loading span:nth-child(2) { animation-delay: 0.12s; }
.website-table-loading span:nth-child(3) { animation-delay: 0.24s; }

@keyframes website-loading {
    0%, 100% { opacity: 0.25; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
}

.website-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 64px;
    padding: 11px 26px;
    background: rgba(0, 0, 0, 0.28);
    border-top: 1px solid var(--border-glass-subtle);
}

.website-page-info {
    color: var(--text-gray-500);
    font-family: var(--font-secondary);
    font-size: 10.5px;
}

.website-page-actions {
    display: flex;
    gap: 8px;
}

.website-page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 112px;
    height: 36px;
    padding: 0 14px;
    color: var(--text-gray-200);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border-glass);
    border-radius: 9px;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.website-page-button-next {
    color: #071006;
    background: var(--accent);
    border-color: var(--accent);
}

.website-page-button:hover:not(:disabled) {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.website-page-button-next:hover:not(:disabled) {
    background: #54f43c;
}

.website-page-button:disabled {
    opacity: 0.32;
    cursor: not-allowed;
}

@media (max-width: 760px) {
    .website-data-header {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
        padding: 20px;
    }

    .website-dataset-control {
        width: 100%;
        flex-basis: auto;
    }

    .website-data-toolbar,
    .website-pagination {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 20px;
    }

    #website-data-info {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    #website-data-info strong::after {
        display: none;
    }

    .website-page-actions,
    .website-page-button {
        width: 100%;
    }

    .website-table-wrap {
        max-height: 56vh;
    }
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.metric-title {
    font-size: 13px;
    color: var(--text-gray-400);
    font-weight: 600;
}

.metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.metric-icon.yellow { background: rgba(250, 204, 21, 0.15); color: var(--accent-yellow); border: 1px solid rgba(250, 204, 21, 0.3); }
.metric-icon.green { background: rgba(51, 232, 24, 0.15); color: var(--accent); border: 1px solid rgba(51, 232, 24, 0.3); }
.metric-icon.cyan { background: rgba(0, 255, 163, 0.15); color: var(--accent-cyan); border: 1px solid rgba(0, 255, 163, 0.3); }
.metric-icon.blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }

.metric-value {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #fff;
    margin-bottom: 6px;
}

.metric-sub {
    font-size: 12px;
    color: var(--text-gray-500);
    font-weight: 500;
}

.two-col-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 1024px) {
    .two-col-grid {
        grid-template-columns: 1fr;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

/* Table Responsive Wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}
.table-responsive::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(51, 232, 24, 0.25);
    border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Custom Table */
.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.custom-table th {
    text-align: left;
    padding: 13px 16px;
    color: var(--text-gray-400);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-glass);
    text-transform: uppercase;
    font-size: 10.5px;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.custom-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-white);
    vertical-align: middle;
}

.custom-table tbody tr:last-child td {
    border-bottom: none;
}

.custom-table tr:hover td {
    background: rgba(51, 232, 24, 0.04);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.green { background: rgba(51, 232, 24, 0.15); color: var(--accent); border: 1px solid var(--accent); }
.badge.yellow { background: rgba(250, 204, 21, 0.15); color: var(--accent-yellow); border: 1px solid rgba(250, 204, 21, 0.4); }
.badge.red { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); border: 1px solid rgba(239, 68, 68, 0.4); }
.badge.blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }

/* Agent List */
.agent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    transition: var(--transition);
}

.agent-item:hover {
    border-color: var(--accent);
    background: rgba(51, 232, 24, 0.05);
}

.agent-name-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agent-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

/* AI Response Card */
.response-card {
    border: 1px solid var(--accent);
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 0 30px var(--border-accent-glow);
    margin-bottom: 24px;
    animation: fadeIn 0.3s ease-out;
}

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

.response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 16px;
}

.response-agent-tag {
    color: var(--accent);
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.response-close {
    background: transparent;
    border: none;
    color: var(--text-gray-400);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.response-close:hover {
    color: #fff;
}

/* Tab visibility */
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
}

/* ==============================================================================
   EXECUTIVE CALENDAR & AGENDA ENGINE (100% MATCHING ALMAI OS GLASS DESIGN)
   ============================================================================== */

.calendar-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-glass);
}

.calendar-nav-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calendar-month-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    min-width: 200px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cal-nav {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-gray-200);
    padding: 8px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-cal-nav:hover {
    background: rgba(51, 232, 24, 0.15);
    border-color: var(--accent);
    color: #fff;
}

.calendar-filters-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cal-filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-gray-400);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cal-filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.cal-filter-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: 800;
    box-shadow: 0 0 12px var(--border-accent-glow);
}

/* Hide Quick Commands on Executive Calendar */
body[data-active-tab="tab-calendar"] .command-pills,
.tab-calendar-active .command-pills {
    display: none !important;
}

/* ==============================================================================
   EXECUTIVE CALENDAR: FULL 1 SCREEN RESPONSIVE SYSTEM
   ============================================================================== */
body[data-active-tab="tab-calendar"] .main-wrapper,
.tab-calendar-active .main-wrapper {
    height: 100vh;
    overflow: hidden;
}

body[data-active-tab="tab-calendar"] .top-header,
.tab-calendar-active .top-header {
    padding: 14px 32px 10px 32px;
    gap: 10px;
    flex-shrink: 0;
}

body[data-active-tab="tab-calendar"] .content-container,
.tab-calendar-active .content-container {
    padding: 10px 24px 16px 24px;
    height: calc(100vh - 84px);
    min-height: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 0;
}

body[data-active-tab="tab-calendar"] #tab-calendar,
.tab-calendar-active #tab-calendar {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body[data-active-tab="tab-calendar"] #tab-calendar.active,
.tab-calendar-active #tab-calendar.active {
    display: flex;
}

body[data-active-tab="tab-calendar"] .calendar-main-card,
.tab-calendar-active .calendar-main-card {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 14px 20px;
    margin-bottom: 0 !important;
    overflow: hidden;
}

body[data-active-tab="tab-calendar"] .calendar-top-bar,
.tab-calendar-active .calendar-top-bar {
    flex-shrink: 0;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-glass-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.calendar-top-main-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calendar-top-actions {
    display: flex;
    align-items: center;
}

.mobile-cockpit-switcher {
    display: none;
}

body[data-active-tab="tab-calendar"] .calendar-layout-grid,
.tab-calendar-active .calendar-layout-grid {
    flex: 1;
    min-height: 0;
    height: 100%;
    display: flex;
    gap: 16px;
    overflow: hidden;
    position: relative;
}

body[data-active-tab="tab-calendar"] .calendar-grid-card,
.tab-calendar-active .calendar-grid-card {
    flex: 1;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: transparent;
    border: none;
    overflow: hidden;
}

body[data-active-tab="tab-calendar"] .calendar-weekdays-row,
.tab-calendar-active .calendar-weekdays-row {
    flex-shrink: 0;
    margin-bottom: 4px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
}

body[data-active-tab="tab-calendar"] .calendar-weekday-name,
.tab-calendar-active .calendar-weekday-name {
    font-size: 13px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 1px;
    padding: 6px 0;
}

body[data-active-tab="tab-calendar"] .calendar-days-grid,
.tab-calendar-active .calendar-days-grid {
    flex: 1;
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 1fr;
    gap: 8px;
}

body[data-active-tab="tab-calendar"] .cal-day-cell,
.tab-calendar-active .cal-day-cell {
    min-height: 0 !important;
    height: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
}

body[data-active-tab="tab-calendar"] .cal-day-header,
.tab-calendar-active .cal-day-header {
    flex-shrink: 0;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body[data-active-tab="tab-calendar"] .cal-day-num,
.tab-calendar-active .cal-day-num {
    font-size: 15px;
    font-weight: 800;
}

body[data-active-tab="tab-calendar"] .cal-day-events,
.tab-calendar-active .cal-day-events {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    scrollbar-width: thin;
}

body[data-active-tab="tab-calendar"] .cal-event-chip,
.tab-calendar-active .cal-event-chip {
    font-size: 10.5px;
    padding: 2px 5px;
    line-height: 1.25;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==============================================================================
   CALENDAR COLOR SCHEME SYSTEM:
   - Merah: Calender yang lewat belum ada tindakan (Overdue)
   - Silver: Agenda yang sudah ditangani (Completed)
   - Hijau: Agenda rutin (Normal / Routine)
   - Kuning: Agenda urgent (Urgent)
   ============================================================================== */

.calendar-color-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass-subtle);
    border-radius: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-gray-400);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* 1. Merah: Lewat (Belum Ada Tindakan) */
.dot-red {
    background: #ef4444 !important;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.8) !important;
}
.status-chip-red {
    background: rgba(239, 68, 68, 0.22) !important;
    border: 1px solid #ef4444 !important;
    color: #fca5a5 !important;
    font-weight: 700 !important;
}
.card-status-red {
    border-left: 4px solid #ef4444 !important;
    background: rgba(239, 68, 68, 0.04) !important;
}
.badge-red {
    background: rgba(239, 68, 68, 0.2) !important;
    border: 1px solid #ef4444 !important;
    color: #fca5a5 !important;
    font-weight: 700 !important;
}
.cal-day-cell.day-has-overdue {
    border-color: rgba(239, 68, 68, 0.4) !important;
    background: rgba(239, 68, 68, 0.05) !important;
}
.cal-day-cell.day-has-urgent {
    border-color: rgba(234, 179, 8, 0.45) !important;
    background: rgba(234, 179, 8, 0.05) !important;
}
.cal-overdue-indicator {
    color: #ef4444;
    font-size: 10px;
    margin-left: 4px;
    animation: pulseOverdue 1.5s infinite;
}
@keyframes pulseOverdue {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}
.pulse-badge {
    animation: pulseBadge 2s infinite;
}
@keyframes pulseBadge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
}

/* 2. Silver: Sudah Ditangani */
.dot-silver {
    background: #94a3b8 !important;
    box-shadow: 0 0 5px rgba(148, 163, 184, 0.6) !important;
}
.status-chip-silver {
    background: rgba(148, 163, 184, 0.15) !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    color: #cbd5e1 !important;
    text-decoration: line-through;
    opacity: 0.75;
}
.card-status-silver {
    border-left: 4px solid #94a3b8 !important;
    opacity: 0.75;
}
.badge-silver {
    background: rgba(148, 163, 184, 0.15) !important;
    border: 1px solid rgba(148, 163, 184, 0.4) !important;
    color: #cbd5e1 !important;
    font-weight: 600 !important;
}

/* 3. Hijau: Agenda Rutin */
.dot-green {
    background: #33E818 !important;
    box-shadow: 0 0 8px rgba(51, 232, 24, 0.8) !important;
}
.status-chip-green {
    background: rgba(51, 232, 24, 0.15) !important;
    border: 1px solid rgba(51, 232, 24, 0.45) !important;
    color: #86efac !important;
}
.card-status-green {
    border-left: 4px solid #33E818 !important;
}
.badge-green {
    background: rgba(51, 232, 24, 0.15) !important;
    border: 1px solid rgba(51, 232, 24, 0.5) !important;
    color: #86efac !important;
    font-weight: 700 !important;
}

/* 4. Kuning: Agenda Urgent */
.dot-yellow {
    background: #eab308 !important;
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.8) !important;
}
.status-chip-yellow {
    background: rgba(234, 179, 8, 0.22) !important;
    border: 1px solid #eab308 !important;
    color: #fde047 !important;
    font-weight: 700 !important;
}
.card-status-yellow {
    border-left: 4px solid #eab308 !important;
    background: rgba(234, 179, 8, 0.04) !important;
}
.badge-yellow {
    background: rgba(234, 179, 8, 0.2) !important;
    border: 1px solid #eab308 !important;
    color: #fde047 !important;
    font-weight: 700 !important;
}

/* ==============================================================================
   EXECUTIVE AUDIENCE & CLIENT INFORMATION STRIP
   ============================================================================== */
.cal-audience-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.cal-audience-card {
    background: rgba(18, 18, 18, 0.75);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.cal-audience-card:hover {
    border-color: rgba(51, 232, 24, 0.3);
    transform: translateY(-1px);
}

.cal-audience-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cal-aud-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-gray-400);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.cal-aud-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.cal-aud-icon.icon-cyan {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.cal-aud-icon.icon-gold {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.cal-aud-icon.icon-green {
    background: rgba(51, 232, 24, 0.15);
    color: var(--accent);
    border: 1px solid rgba(51, 232, 24, 0.3);
}

.cal-aud-value {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.4px;
    line-height: 1.2;
    margin-top: 2px;
}

.cal-aud-sub {
    font-size: 10.5px;
    color: var(--text-gray-400);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==============================================================================
   UNIFIED KALENDER & AI COCKPIT SYSTEM
   ============================================================================== */
.cockpit-layout-grid {
    flex: 1;
    min-height: 0;
    height: 100%;
    display: flex;
    gap: 18px;
    overflow: hidden;
}

.cockpit-cal-col {
    flex: 1.45;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: flex 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s ease;
}

.cockpit-cal-col.is-fullscreen {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

.cockpit-cal-col.is-fullscreen + .cockpit-ai-panel {
    display: none !important;
}

.cockpit-ai-panel {
    flex: 1;
    min-width: 360px;
    max-width: 460px;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 16px 18px;
    overflow: hidden;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
}

.cockpit-panel-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-glass-subtle);
    flex-shrink: 0;
}

.cockpit-tab-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-gray-300);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cockpit-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.cockpit-tab-btn.active {
    background: rgba(51, 232, 24, 0.15);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 12px rgba(51, 232, 24, 0.2);
}

.cockpit-sub-pane {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
}

.cockpit-mini-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.cockpit-kpi-chip {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 6px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cockpit-kpi-chip .chip-label {
    font-size: 9px;
    color: var(--text-gray-400);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.cockpit-kpi-chip .chip-val {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.cockpit-kpi-chip .chip-sub {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-gray-400);
    letter-spacing: 0.2px;
}

.cockpit-briefing-box {
    font-size: 12.5px;
    line-height: 1.6;
}

.cockpit-briefing-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cockpit-briefing-box li {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 12px 14px;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
}

.cockpit-briefing-box li:hover {
    border-color: var(--accent);
    background: rgba(51, 232, 24, 0.06);
    box-shadow: 0 4px 18px rgba(51, 232, 24, 0.18);
    transform: translateY(-2px);
}

.cockpit-briefing-box li.is-completed {
    border-color: rgba(51, 232, 24, 0.35);
    background: rgba(51, 232, 24, 0.02);
}

.nav-header-divider {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #64748b;
    padding: 16px 14px 6px 14px;
    font-weight: 800;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-header-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 1050px) {
    .cockpit-layout-grid {
        flex-direction: column;
        overflow-y: auto;
    }
    .cockpit-ai-panel {
        max-width: 100%;
        min-width: 100%;
        height: auto;
        min-height: 400px;
    }
    body[data-active-tab="tab-calendar"] .main-wrapper,
    .tab-calendar-active .main-wrapper {
        overflow-y: auto;
        height: auto;
    }
    body[data-active-tab="tab-calendar"] .content-container,
    .tab-calendar-active .content-container {
        height: auto;
        overflow: visible;
    }
}

/* 2-Column Calendar Layout (Fallback for other views) */
.calendar-layout-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 24px;
}

@media (max-width: 1200px) {
    .calendar-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* Calendar Month Grid */
.calendar-grid-card {
    padding: 24px;
}

.calendar-weekdays-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 10px;
    text-align: center;
}

.calendar-weekday-name {
    font-size: 13px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 0;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cal-day-cell {
    min-height: 100px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass-subtle);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.cal-day-cell:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.cal-day-cell.other-month {
    opacity: 0.3;
}

.cal-day-cell.today {
    border: 1.5px solid var(--accent);
    background: rgba(51, 232, 24, 0.05);
    box-shadow: 0 0 14px rgba(51, 232, 24, 0.15);
}

.cal-day-cell.selected {
    border-color: #00FFA3;
    background: rgba(0, 255, 163, 0.08);
    box-shadow: 0 0 14px rgba(0, 255, 163, 0.2);
}

.cal-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.cal-day-num {
    font-size: 15px;
    font-weight: 800;
    color: #f8fafc;
}

.cal-day-cell.today .cal-day-num {
    color: var(--accent);
    font-weight: 900;
}

.cal-today-badge {
    font-size: 9px;
    font-weight: 800;
    color: #000;
    background: var(--accent);
    padding: 1px 6px;
    border-radius: 6px;
    text-transform: uppercase;
}

.cal-day-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow: hidden;
}

.cal-desktop-events {
    display: flex;
}

.cal-mobile-dots {
    display: none;
}

.cal-mobile-dots-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.cal-event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.cal-event-dot.cat-executive { background: #33E818; box-shadow: 0 0 6px rgba(51, 232, 24, 0.8); }
.cal-event-dot.cat-sales { background: #3b82f6; box-shadow: 0 0 6px rgba(59, 130, 246, 0.8); }
.cal-event-dot.cat-compliance { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.8); }
.cal-event-dot.cat-webinar { background: #00FFA3; box-shadow: 0 0 6px rgba(0, 255, 163, 0.8); }
.cal-event-dot.cat-finance { background: #facc15; box-shadow: 0 0 6px rgba(250, 204, 21, 0.8); }

.cal-event-dot.completed {
    opacity: 0.35;
    box-shadow: none;
}

.cal-mobile-dots-more {
    font-size: 8px;
    font-weight: 800;
    color: var(--accent-light);
    margin-left: 2px;
}

.cal-event-chip {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid transparent;
}

.cal-event-chip.cat-executive {
    background: rgba(51, 232, 24, 0.15);
    color: #4ade80;
    border-color: rgba(51, 232, 24, 0.3);
}

.cal-event-chip.cat-sales {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.3);
}

.cal-event-chip.cat-compliance {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

.cal-event-chip.cat-webinar {
    background: rgba(0, 255, 163, 0.15);
    color: #00FFA3;
    border-color: rgba(0, 255, 163, 0.3);
}

.cal-event-chip.cat-finance {
    background: rgba(250, 204, 21, 0.15);
    color: #fde047;
    border-color: rgba(250, 204, 21, 0.3);
}

.cal-event-chip.completed {
    opacity: 0.5;
    text-decoration: line-through;
}

.cal-more-chip {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-gray-400);
    text-align: center;
    padding: 1px 0;
}

/* Agenda Details Pane */
.agenda-list-pane {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 640px;
    overflow-y: auto;
    padding-right: 4px;
}

.agenda-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition);
}

.agenda-item-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.agenda-item-card.completed {
    opacity: 0.6;
    border-color: rgba(255, 255, 255, 0.05);
}

.agenda-item-card.priority-urgent {
    border-left: 3px solid var(--accent-red);
}

.agenda-item-card.priority-high {
    border-left: 3px solid var(--accent-yellow);
}

.agenda-item-card.priority-normal {
    border-left: 3px solid var(--accent);
}

.agenda-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.agenda-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.agenda-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}

.agenda-item-card.completed .agenda-title {
    text-decoration: line-through;
    color: var(--text-gray-400);
}

.agenda-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--text-gray-400);
    flex-wrap: wrap;
}

.agenda-meta-row i {
    color: var(--accent);
    margin-right: 4px;
}

.agenda-desc {
    font-size: 12px;
    color: var(--text-gray-400);
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 2px solid var(--border-glass);
}

.agenda-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--border-glass-subtle);
}

.btn-agenda-toggle {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-gray-200);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-agenda-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-agenda-toggle.is-completed {
    background: rgba(51, 232, 24, 0.15);
    color: var(--accent);
    border-color: var(--accent);
}

.btn-agenda-action {
    background: rgba(51, 232, 24, 0.12);
    border: 1px solid rgba(51, 232, 24, 0.4);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-agenda-action:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 14px rgba(51, 232, 24, 0.4);
}

.btn-agenda-action.is-completed {
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.3);
    color: #94a3b8;
}

.btn-agenda-action.is-completed:hover {
    background: rgba(148, 163, 184, 0.2);
    color: #fff;
}

.action-file-dropzone:hover {
    border-color: var(--accent) !important;
    background: rgba(51, 232, 24, 0.08) !important;
}

.action-file-chip:hover {
    border-color: var(--accent) !important;
    background: rgba(51, 232, 24, 0.1) !important;
}

.btn-agenda-del {
    background: transparent;
    border: none;
    color: var(--text-gray-500);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    transition: var(--transition);
}

.btn-agenda-del:hover {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
}

/* Cockpit Overview Mini Calendar Widget */
.overview-cal-widget {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.overview-cal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    transition: var(--transition);
}

.overview-cal-item:hover {
    border-color: var(--accent);
    background: rgba(51, 232, 24, 0.03);
}

.overview-cal-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.overview-cal-timebadge {
    min-width: 56px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 6px 8px;
}

.overview-cal-time {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent);
}

.overview-cal-date {
    font-size: 9px;
    color: var(--text-gray-500);
    font-weight: 600;
}

.overview-cal-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.overview-cal-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.overview-cal-sub {
    font-size: 11px;
    color: var(--text-gray-400);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Modal Overlay & Dialog */
.cal-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

.cal-modal-content {
    background: #0a0a0a;
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(51, 232, 24, 0.2);
    width: 100%;
    max-width: 540px;
    overflow: hidden;
    animation: zoomIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.cal-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cal-modal-header h3 {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cal-modal-close {
    background: transparent;
    border: none;
    color: var(--text-gray-400);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.cal-modal-close:hover {
    color: #fff;
}

.cal-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cal-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cal-form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-gray-200);
}

.cal-form-input, .cal-form-select, .cal-form-textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
    transition: var(--transition);
    outline: none;
    font-family: var(--font-primary);
}

.cal-form-input:focus, .cal-form-select:focus, .cal-form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--border-accent-glow);
    background: rgba(0, 0, 0, 0.7);
}

.cal-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.cal-modal-footer {
    padding: 18px 24px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
}

/* ==============================================================================
   AI VOICE EXECUTIVE ASSISTANT & WITA NOTIFICATION ALARM
   ============================================================================== */
.cockpit-voice-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 12px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, rgba(51, 232, 24, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
    border: 1px solid rgba(51, 232, 24, 0.25);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.cockpit-voice-bar.is-speaking {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(51, 232, 24, 0.25);
    background: linear-gradient(135deg, rgba(51, 232, 24, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
}

.voice-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-voice-play {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(51, 232, 24, 0.18);
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-voice-play:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 12px var(--border-accent-glow);
    transform: translateY(-1px);
}

.btn-voice-play.speaking {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--accent-red);
    color: #f87171;
}

.btn-voice-play.speaking:hover {
    background: var(--accent-red);
    color: #fff;
}

.voice-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.voice-schedule-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    font-size: 10.5px;
    color: var(--text-gray-300);
    font-weight: 600;
    white-space: nowrap;
}

.voice-schedule-toggle input {
    display: none;
}

.voice-toggle-slider {
    position: relative;
    width: 28px;
    height: 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    transition: var(--transition);
    flex-shrink: 0;
}

.voice-toggle-slider::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    left: 2px;
    top: 2px;
    background: #fff;
    border-radius: 50%;
    transition: var(--transition);
}

.voice-schedule-toggle input:checked + .voice-toggle-slider {
    background: var(--accent);
    border-color: var(--accent);
}

.voice-schedule-toggle input:checked + .voice-toggle-slider::before {
    transform: translateX(12px);
    background: #000;
}

.btn-voice-test {
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    color: var(--text-gray-300);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-voice-test:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(51, 232, 24, 0.12);
}

/* Voice Toast Floating Banner */
.voice-toast-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    max-width: 440px;
    background: rgba(10, 15, 20, 0.95);
    border: 1px solid var(--accent);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(51, 232, 24, 0.25);
    border-radius: 14px;
    padding: 16px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.voice-toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.voice-toast-title {
    font-size: 12.5px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.voice-equalizer {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.voice-eq-bar {
    width: 3px;
    background: var(--accent);
    border-radius: 2px;
    animation: soundWave 0.8s ease-in-out infinite alternate;
}

.voice-eq-bar:nth-child(2) { animation-delay: 0.2s; height: 10px; }
.voice-eq-bar:nth-child(3) { animation-delay: 0.4s; height: 14px; }
.voice-eq-bar:nth-child(4) { animation-delay: 0.1s; height: 8px; }

@keyframes soundWave {
    0% { height: 3px; }
    100% { height: 14px; }
}

.voice-toast-body {
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--text-gray-300);
}

.voice-toast-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--border-glass-subtle);
}

/* ==============================================================================
   RESPONSIVE LAYOUT & MOBILE SYSTEM (ALL SCREEN SIZES & SMARTPHONES)
   ============================================================================== */

/* Hamburger Button & Drawer Overlay */
.sidebar-toggle-btn {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
    background: rgba(51, 232, 24, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 95;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Tablets & Small Laptops (<= 1100px) */
@media (max-width: 1100px) {
    .calendar-layout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .calendar-grid-card {
        padding: 20px;
    }

    .cal-day-cell {
        min-height: 80px;
    }
}

/* Tablet Portrait & Large Phones (<= 992px) */
@media (max-width: 992px) {
    .sidebar-toggle-btn {
        display: inline-flex;
    }

    .sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        bottom: 0;
        width: 270px;
        z-index: 100;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
    }

    .sidebar.sidebar-open {
        left: 0;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.95);
    }

    .calendar-top-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .calendar-nav-group {
        justify-content: space-between;
        width: 100%;
    }

    .calendar-month-title {
        font-size: 18px;
        min-width: auto;
    }

    .calendar-filters-group {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100%;
    }

    .calendar-filters-group::-webkit-scrollbar {
        display: none;
    }

    .cal-filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* ==============================================================================
   MOBILE & TABLET RESPONSIVE SYSTEM (<= 768px & <= 480px)
   ============================================================================== */

@media (max-width: 768px) {
    /* ---- Tab Pane General ---- */
    .tab-pane .glass-card {
        padding: 16px 14px !important;
        border-radius: 16px !important;
        overflow: hidden !important;
    }

    /* Section headers wrap neatly on mobile */
    .section-header {
        flex-wrap: wrap !important;
        gap: 10px !important;
        margin-bottom: 14px !important;
        align-items: flex-start !important;
    }

    .section-header h3 {
        font-size: 14px !important;
        line-height: 1.4 !important;
        flex-wrap: wrap !important;
    }

    .section-header .btn-command-send,
    .section-header .badge,
    .section-header > div {
        flex-shrink: 0 !important;
        font-size: 11px !important;
    }

    /* Tables: allow horizontal scroll */
    .custom-table {
        font-size: 12px !important;
    }

    .custom-table th {
        padding: 10px 10px !important;
        font-size: 10px !important;
        white-space: nowrap !important;
    }

    .custom-table td {
        padding: 12px 10px !important;
        font-size: 12px !important;
        vertical-align: middle !important;
    }

    /* Wrap table inside a scrollable container */
    .tab-pane .glass-card > table.custom-table,
    .tab-pane .glass-card > div > table.custom-table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
    }

    /* Badges in tables - compact */
    .badge {
        padding: 3px 8px !important;
        font-size: 10px !important;
        white-space: nowrap !important;
    }

    /* Metrics Grid (Finance) - 2 cols on mobile */
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .metric-value {
        font-size: 20px !important;
    }

    /* Knowledge Base - stack select + button */
    #tab-knowledge .section-header > div {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }

    #kb-category-select {
        width: 100% !important;
        font-size: 13px !important;
    }

    #btn-load-kb {
        width: 100% !important;
        justify-content: center !important;
    }

    #kb-display {
        font-size: 11px !important;
        max-height: 300px !important;
        padding: 12px !important;
    }

    /* Cmd pill button sizing */
    .cmd-pill {
        padding: 5px 10px !important;
        font-size: 11px !important;
    }

    /* Main Layout & Scrolling */
    body[data-active-tab="tab-calendar"] .main-wrapper,
    .tab-calendar-active .main-wrapper {
        height: auto !important;
        min-height: 100vh !important;
        overflow-y: auto !important;
    }

    body[data-active-tab="tab-calendar"] .content-container,
    .tab-calendar-active .content-container,
    .content-container {
        height: auto !important;
        overflow: visible !important;
        padding: 12px 10px 40px 10px !important;
        gap: 10px !important;
    }

    /* Top Header: Ultra-clean executive header */
    .top-header {
        padding: 12px 14px !important;
        gap: 10px !important;
    }

    .header-row {
        gap: 8px !important;
        align-items: center !important;
    }

    .header-badge {
        display: none !important; /* Hide long badge on mobile */
    }

    .header-title h2 {
        font-size: 17px !important;
        letter-spacing: -0.4px !important;
        margin: 0 !important;
    }

    .user-profile {
        padding: 2px !important;
        background: transparent !important;
        border: none !important;
        gap: 0 !important;
    }

    .user-profile-info {
        display: none !important; /* Hide verbose subtitle */
    }

    .user-profile .avatar-img {
        width: 32px !important;
        height: 32px !important;
    }

    /* Omnibar: Streamlined single-row capsule */
    .command-box-wrapper {
        width: 100% !important;
    }

    .command-box {
        padding: 3px 4px 3px 12px !important;
        border-radius: 9999px !important;
    }

    .command-icon {
        font-size: 13px !important;
        margin-right: 8px !important;
    }

    .command-input {
        font-size: 13px !important;
    }

    .btn-command-send {
        padding: 6px 12px !important;
        font-size: 12px !important;
        border-radius: 9999px !important;
        flex-shrink: 0 !important;
    }

    .btn-command-send .btn-text {
        display: none !important; /* Icon-only on mobile */
    }

    /* Audience & Client Information Strip on Mobile */
    .cal-audience-strip {
        gap: 6px !important;
        margin-bottom: 8px !important;
    }

    .cal-audience-card {
        padding: 8px 8px !important;
        border-radius: 12px !important;
    }

    .cal-aud-label {
        font-size: 9.5px !important;
    }

    .cal-aud-icon {
        width: 20px !important;
        height: 20px !important;
        font-size: 9.5px !important;
    }

    .cal-aud-value {
        font-size: 16px !important;
        margin-top: 1px !important;
    }

    .cal-aud-sub {
        font-size: 9px !important;
    }

    /* Mobile Segmented Switcher */
    .mobile-cockpit-switcher {
        display: flex !important;
        background: rgba(18, 18, 18, 0.9) !important;
        border: 1px solid var(--border-glass) !important;
        border-radius: 9999px !important;
        padding: 4px !important;
        gap: 4px !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 30 !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    }

    .m-cockpit-btn {
        flex: 1 !important;
        background: transparent !important;
        border: none !important;
        color: var(--text-gray-400) !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
        padding: 7px 6px !important;
        border-radius: 9999px !important;
        cursor: pointer !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        transition: var(--transition) !important;
        white-space: nowrap !important;
    }

    .m-cockpit-btn.active {
        background: var(--accent) !important;
        color: #000 !important;
        font-weight: 800 !important;
        box-shadow: 0 0 12px rgba(51, 232, 24, 0.35) !important;
    }

    /* Belum Ditangani Turns RED when there are unhandled events */
    .m-cockpit-btn.is-unhandled-red.active {
        background: #ef4444 !important;
        color: #ffffff !important;
        box-shadow: 0 0 16px rgba(239, 68, 68, 0.6) !important;
    }

    .m-cockpit-btn.is-unhandled-red:not(.active) {
        color: #ef4444 !important;
        background: rgba(239, 68, 68, 0.12) !important;
        border: 1px solid rgba(239, 68, 68, 0.45) !important;
    }

    .m-cockpit-btn .unhandled-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: 800;
        padding: 1px 6px;
        border-radius: 9999px;
        margin-left: 4px;
        line-height: 1.2;
    }

    .m-cockpit-btn.is-unhandled-red.active .unhandled-badge {
        background: #ffffff !important;
        color: #ef4444 !important;
    }

    .m-cockpit-btn.is-unhandled-red:not(.active) .unhandled-badge {
        background: #ef4444 !important;
        color: #ffffff !important;
    }

    /* Unified Cockpit Grid Layout on Mobile (Full Screen Calendar Focus) */
    .cockpit-layout-grid {
        display: flex !important;
        flex-direction: column !important;
        min-height: calc(100vh - 170px) !important;
        height: auto !important;
        gap: 12px !important;
        overflow: visible !important;
    }

    .cockpit-cal-col {
        height: auto !important;
        min-height: calc(100vh - 180px) !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        width: 100% !important;
        padding: 14px 12px !important;
        border-radius: 16px !important;
    }

    .cockpit-cal-col.m-hidden {
        display: none !important;
    }

    .cockpit-ai-panel {
        height: auto !important;
        min-height: calc(100vh - 180px) !important;
        max-width: 100% !important;
        min-width: 100% !important;
        flex: 1 !important;
        padding: 14px 12px !important;
        border-radius: 16px !important;
    }

    .cockpit-ai-panel.m-hidden {
        display: none !important;
    }

    .calendar-grid-card {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .calendar-days-grid {
        flex: 1 !important;
        min-height: 400px !important;
        grid-auto-rows: 1fr !important;
    }

    .cal-day-cell {
        min-height: 54px !important;
    }

    /* Calendar Top Bar on Mobile */
    .calendar-top-bar {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding-bottom: 8px !important;
        margin-bottom: 8px !important;
    }

    .calendar-top-main-row {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
    }

    .calendar-nav-group {
        gap: 6px !important;
        display: flex !important;
        align-items: center !important;
    }

    .calendar-month-title {
        font-size: 14px !important;
        font-weight: 800 !important;
    }

    .btn-cal-nav {
        padding: 5px 8px !important;
        font-size: 11px !important;
    }

    .btn-cal-today .today-btn-text {
        display: none !important;
    }

    /* Filter pills scrollable strip */
    .calendar-filters-group {
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        gap: 5px !important;
        padding-bottom: 4px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        width: 100% !important;
    }

    .calendar-filters-group::-webkit-scrollbar {
        display: none !important;
    }

    .cal-filter-btn {
        padding: 4px 10px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    /* Color Legend on Mobile (Under Calendar Grid) */
    /* Color Legend on Mobile (Under Calendar Grid) */
    .calendar-color-legend {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px 14px !important;
        padding: 8px 12px !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        border-radius: 8px !important;
        margin-top: 12px !important;
        flex-shrink: 0 !important;
    }

    .calendar-color-legend .legend-item {
        font-size: 11px !important;
        gap: 6px !important;
        color: #cbd5e1 !important;
    }

    .calendar-color-legend .legend-dot {
        width: 7px !important;
        height: 7px !important;
    }

    /* Weekday Headers */
    .calendar-weekdays-row {
        display: grid !important;
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 6px !important;
        margin-bottom: 6px !important;
    }

    .calendar-weekday-name {
        font-size: 13px !important;
        font-weight: 800 !important;
        color: #94a3b8 !important;
        padding: 4px 0 !important;
        text-align: center !important;
        letter-spacing: 0.5px !important;
    }

    /* CRITICAL FIX: Fixed-height Calendar Grid - Stops infinite vertical stretch while providing spacious cells */
    body[data-active-tab="tab-calendar"] .calendar-days-grid,
    .tab-calendar-active .calendar-days-grid,
    .calendar-days-grid {
        flex: none !important;
        height: auto !important;
        min-height: unset !important;
        display: grid !important;
        grid-template-columns: repeat(7, 1fr) !important;
        grid-auto-rows: 64px !important;
        gap: 6px !important;
    }

    body[data-active-tab="tab-calendar"] .cal-day-cell,
    .tab-calendar-active .cal-day-cell,
    .cal-day-cell {
        height: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;
        padding: 4px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 12px !important;
        gap: 4px !important;
        cursor: pointer !important;
        background: rgba(255, 255, 255, 0.025) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        transition: all 0.2s ease !important;
    }

    body[data-active-tab="tab-calendar"] .cal-day-cell:hover,
    .tab-calendar-active .cal-day-cell:hover,
    .cal-day-cell:hover {
        background: rgba(255, 255, 255, 0.06) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        transform: translateY(-2px) !important;
    }

    .cal-day-header {
        margin-bottom: 0 !important;
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
    }

    .cal-day-num {
        font-size: 17px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        color: #f8fafc !important;
    }

    .cal-today-badge {
        display: none !important;
    }

    .cal-day-cell.today {
        border: 1.5px solid var(--accent) !important;
        background: rgba(51, 232, 24, 0.15) !important;
        box-shadow: 0 0 12px rgba(51, 232, 24, 0.25) !important;
    }

    .cal-day-cell.today .cal-day-num {
        color: var(--accent) !important;
        font-weight: 900 !important;
    }

    .cal-day-cell.selected {
        border: 2px solid var(--accent) !important;
        background: rgba(51, 232, 24, 0.28) !important;
        box-shadow: 0 0 14px rgba(51, 232, 24, 0.4) !important;
    }

    .cal-desktop-events {
        display: none !important;
    }

    .cal-mobile-dots {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        height: 8px !important;
        flex: none !important;
    }

    .cal-mobile-dots-row {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        margin-top: 2px !important;
    }

    .cal-event-dot {
        width: 6px !important;
        height: 6px !important;
        border-radius: 50% !important;
    }

    /* Agenda Detail Cards on Mobile */
    .agenda-item-card {
        padding: 12px !important;
        gap: 8px !important;
        border-radius: 12px !important;
    }

    .agenda-title {
        font-size: 13px !important;
    }

    .agenda-meta-row {
        font-size: 11px !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }

    .agenda-actions-row {
        margin-top: 6px !important;
        padding-top: 6px !important;
    }

    .btn-agenda-toggle {
        padding: 5px 10px !important;
        font-size: 11px !important;
        min-height: 32px !important;
    }

    .btn-agenda-del {
        padding: 5px 8px !important;
        min-height: 32px !important;
    }

    /* Modal Form on Mobile */
    .cal-modal-content {
        width: 94% !important;
        max-height: 90vh !important;
        border-radius: 16px !important;
    }

    .cal-modal-header {
        padding: 14px 16px !important;
    }

    .cal-modal-header h3 {
        font-size: 15px !important;
    }

    .cal-modal-body {
        padding: 14px 16px !important;
        gap: 10px !important;
    }

    .cal-form-row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .cal-form-input, .cal-form-select, .cal-form-textarea {
        font-size: 14px !important; /* Prevents auto-zoom in iOS Safari */
        padding: 9px 12px !important;
    }

    .cal-modal-footer {
        padding: 12px 16px !important;
    }
}

/* Small Screens & Compact Phones (<= 480px) */
@media (max-width: 480px) {
    .calendar-grid-card {
        padding: 0 !important;
    }

    .calendar-weekdays-row {
        gap: 4px !important;
    }

    .calendar-weekday-name {
        font-size: 12px !important;
    }

    body[data-active-tab="tab-calendar"] .calendar-days-grid,
    .tab-calendar-active .calendar-days-grid,
    .calendar-days-grid {
        grid-auto-rows: 56px !important;
        gap: 5px !important;
    }

    body[data-active-tab="tab-calendar"] .cal-day-cell,
    .tab-calendar-active .cal-day-cell,
    .cal-day-cell {
        height: 56px !important;
        min-height: 56px !important;
        max-height: 56px !important;
        border-radius: 10px !important;
    }

    .cal-day-num {
        font-size: 16px !important;
    }

    .cal-event-dot {
        width: 5px !important;
        height: 5px !important;
    }

    .calendar-month-title {
        font-size: 14px !important;
    }

    .btn-cal-nav {
        padding: 4px 7px !important;
        font-size: 10px !important;
    }

    .btn-add-event-compact {
        padding: 5px 8px !important;
        font-size: 10.5px !important;
    }

    .cockpit-mini-kpis {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 5px !important;
    }

    .cockpit-kpi-chip {
        padding: 4px 6px !important;
    }

    .cockpit-kpi-chip .chip-label {
        font-size: 8px !important;
    }

    .cockpit-kpi-chip .chip-val {
        font-size: 11px !important;
    }
}

/* ==============================================================================
   NOTIFIKASI KEUANGAN CEO (lonceng, panel, daftar, modal keputusan)
   ============================================================================== */
.header-actions { display: flex; align-items: center; gap: 10px; }
.fin-bell-wrap { position: relative; }
.fin-bell {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}
.fin-bell:hover, .fin-bell:focus-visible { border-color: var(--accent-yellow); color: var(--accent-yellow); outline: none; }
.fin-bell.has-critical { border-color: rgba(239, 68, 68, 0.6); box-shadow: 0 0 14px rgba(239, 68, 68, 0.35); }
.fin-bell-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    align-items: center;
    justify-content: center;
    background: var(--accent-red);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 9999px;
    border: 2px solid #050505;
}
.fin-notif-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(400px, calc(100vw - 32px));
    max-height: min(560px, 75vh);
    flex-direction: column;
    background: #0a0a0a;
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.8), 0 0 18px rgba(250, 204, 21, 0.12);
    z-index: 900;
    overflow: hidden;
}
.fin-notif-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-glass);
}
.fin-notif-panel .fin-notif-list { padding: 10px; overflow-y: auto; }
.fin-notif-list { display: flex; flex-direction: column; gap: 8px; }
.fin-notif-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    text-align: left;
    font: inherit;
    color: inherit;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-glass);
    border-left: 3px solid var(--fin-color, var(--accent));
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}
.fin-notif-item:hover, .fin-notif-item:focus-visible { background: rgba(255, 255, 255, 0.06); outline: none; }
.fin-notif-item.is-read { opacity: 0.6; border-left-color: #9ca3af; }
.fin-notif-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: var(--fin-color, var(--accent));
    background: rgba(255, 255, 255, 0.05);
    font-size: 13px;
}
.fin-notif-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fin-notif-title { font-size: 12.5px; font-weight: 700; color: #fff; line-height: 1.35; }
.fin-notif-sub { font-size: 11.5px; color: #cbd5e1; line-height: 1.4; overflow-wrap: anywhere; }
.fin-notif-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 10.5px; color: var(--text-gray-400); margin-top: 2px; }
.fin-notif-meta .badge { font-size: 9.5px; padding: 1px 7px; }
.fin-notif-dot { position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-red); }
.fin-notif-empty { padding: 22px 12px; text-align: center; font-size: 12px; color: var(--text-gray-400); }
.fin-notif-sync-error {
    padding: 8px 10px;
    font-size: 11px;
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
}
.fin-modal-card {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-left: 3px solid var(--fin-color, var(--accent));
    border-radius: 12px;
}
.fin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 12.5px;
    font-weight: 800;
    border-radius: 9999px;
    cursor: pointer;
    transition: var(--transition);
}
.fin-btn:disabled { opacity: 0.5; cursor: wait; }
.fin-btn-approve { background: var(--accent); color: #050505; border: 1px solid var(--accent); }
.fin-btn-approve:hover { box-shadow: 0 0 14px rgba(51, 232, 24, 0.45); }
.fin-btn-reject { background: transparent; color: #f87171; border: 1px solid rgba(239, 68, 68, 0.5); }
.fin-btn-reject:hover { background: rgba(239, 68, 68, 0.12); }
.fin-link { font-size: 12px; color: var(--accent); text-decoration: none; font-weight: 700; }
.fin-link:hover { text-decoration: underline; }
.cockpit-finance-box {
    margin-top: 14px;
    padding: 10px;
    background: rgba(250, 204, 21, 0.06);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 8px;
}
.cockpit-finance-box .fin-notif-list { margin-top: 8px; gap: 6px; }
.fin-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 20px);
    max-width: calc(100vw - 32px);
    padding: 10px 18px;
    font-size: 12.5px;
    font-weight: 700;
    color: #050505;
    background: var(--accent-yellow);
    border-radius: 9999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 1200;
}
.fin-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 768px) {
    .header-actions { gap: 6px; }
    .fin-bell { width: 34px; height: 34px; font-size: 14px; }
    .fin-notif-panel { position: fixed; top: 64px; left: 16px; right: 16px; width: auto; }
}
