:root {
            /* Pertamina Official Brand Colors (Recreated from User Reference Image) */
            --pertamina-red: #e91e25;      /* Bright red from card */
            --pertamina-green: #98c93c;    /* Lime yellow-green from card */
            --pertamina-blue: #004c97;     /* Deep royal blue from mobile UI screenshot */
            --pertamina-yellow: #f59f00;   /* Orange-yellow from card */
            
            --bg-primary: #f5f7fa;         /* Soft light background from ref */
            --bg-sidebar: #ffffff;         /* Pure white sidebar background */
            --text-main: #2c3e50;          /* Deep gray text */
            --text-muted: #95a5a6;         /* Medium gray muted text */
            --border-color: #e6ebf1;       /* Light border line separator */
            
            --primary: var(--pertamina-blue);
            --success: var(--pertamina-green);
            --warning: var(--pertamina-yellow);
            --danger: var(--pertamina-red);
            --purple: #9b59b6;
            
            --card-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.02);
            --card-shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
            --card-shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02);
            --transition: all 0.25s ease;
        }

        html {
            scrollbar-gutter: stable;
            scroll-behavior: smooth;
        }

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

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-primary);
            color: var(--text-main);
            display: flex;
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* --- SIDEBAR --- */
        aside {
            width: 290px;
            background-color: var(--bg-sidebar);
            color: var(--text-main);
            display: flex;
            flex-direction: column;
            position: fixed;
            top: 0;
            bottom: 0;
            left: 0;
            z-index: 100;
            padding: 16px 12px 24px 12px;
            overflow-y: auto;
            scrollbar-gutter: stable;
            border-right: 1px solid var(--border-color);
        }

        .logo-container {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid var(--border-color);
        }

        .logo-img {
            max-width: 100%;
            height: auto;
            max-height: 75px;
            object-fit: contain;
        }

        .logo-symbol {
            display: flex;
            flex-direction: column;
            margin-right: 10px;
        }

        .logo-text-pertamina {
            font-family: 'Inter', sans-serif;
            font-weight: 800;
            font-style: italic;
            font-size: 14px;
            color: #0f172a;
            letter-spacing: -0.5px;
        }

        .logo-subtitle {
            font-size: 10px;
            color: var(--text-muted);
            font-weight: 600;
            letter-spacing: 0.5px;
            margin-top: -2px;
        }

        .profile-section {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 12px;
            background: transparent;
            border-radius: 8px;
            margin-bottom: 8px;
            transition: var(--transition);
            opacity: 0.85;
            cursor: pointer;
        }

        .profile-section:hover {
            background-color: #f1f5f9;
            opacity: 1;
        }

        .profile-img-container {
            position: relative;
            display: inline-block;
            width: 38px;
            height: 38px;
        }

        .profile-img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            border: 1.5px solid #ffffff;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .status-dot-active {
            position: absolute;
            bottom: 0px;
            right: 0px;
            width: 8px;
            height: 8px;
            background-color: var(--pertamina-green);
            border: 1.5px solid #ffffff;
            border-radius: 50%;
            box-shadow: 0 1px 2px rgba(0,0,0,0.15);
        }

        .profile-info h4 {
            font-size: 12.5px;
            font-weight: 700;
            color: var(--text-main);
            margin-bottom: 2px;
        }

        .profile-info p {
            font-size: 10px;
            font-weight: 600;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        /* Menu Groups */
        .menu-group {
            margin-bottom: 4px;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .menu-group-label {
            font-size: 10px;
            font-weight: 700;
            color: #a2adba;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            margin: 15px 0 5px 14px;
        }

        /* Label grup pertama tak perlu jarak atas besar */
        nav > .menu-group-label:first-of-type {
            margin-top: 4px;
        }

        nav {
            display: flex;
            flex-direction: column;
            margin-top: 4px;
            flex-grow: 1;
        }

        .nav-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 14px;
            color: #475569;
            text-decoration: none;
            font-size: 13px;
            font-weight: 600;
            border-radius: 9px;
            transition: var(--transition);
            cursor: pointer;
        }

        .nav-item div {
            display: flex;
            align-items: center;
            gap: 11px;
        }

        .nav-item i.menu-icon {
            width: 18px;
            text-align: center;
            font-size: 14px;
            color: #8a97a6;
            transition: var(--transition);
        }

        .nav-item:hover i.menu-icon {
            color: var(--pertamina-blue);
        }



        .nav-item:hover {
            background-color: #f1f5f9;
            color: #0f172a;
        }

        .nav-item.active {
            background-color: var(--pertamina-blue);
            color: #ffffff;
            font-weight: 700;
            box-shadow: 0 6px 16px -5px rgba(0, 76, 151, 0.55);
        }

        .nav-item.active i.menu-icon {
            color: #ffffff;
        }

        /* Special Alert Menu Button Styling (Reverted to standard theme style) */
        .nav-item.alert-menu {
            font-weight: 600;
        }

        .sidebar-footer {
            margin-top: auto;
            padding-top: 16px;
            border-top: 1px solid var(--border-color);
        }

        .sidebar-copyright {
            font-size: 10px;
            color: #94a3b8;
            text-align: center;
            line-height: 1.4;
        }

        /* --- MAIN CONTENT --- */
        main {
            margin-left: 290px;
            flex-grow: 1;
            padding: 32px 40px;
            max-width: calc(100vw - 290px);
        }

        /* --- TOP BAR --- */
        header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 24px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border-color);
        }

        .page-title h1 {
            font-family: 'Outfit', sans-serif;
            font-size: 24px;
            font-weight: 700;
            color: #0f172a;
        }

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

        /* Live status badge styling */
        .live-status-container {
            display: flex;
            align-items: center;
            gap: 6px;
            background-color: rgba(16, 185, 129, 0.08);
            border: 1px solid rgba(16, 185, 129, 0.2);
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 11.5px;
            font-weight: 700;
            color: var(--pertamina-green);
        }

        .pulse-dot-green {
            width: 8px;
            height: 8px;
            background-color: var(--pertamina-green);
            border-radius: 50%;
            box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
            animation: pulse-green 1.5s infinite;
        }

        @keyframes pulse-green {
            0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
            70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
            100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
        }

        .date-picker {
            background-color: #ffffff;
            border: 1px solid var(--border-color);
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-main);
            cursor: pointer;
            box-shadow: var(--card-shadow);
        }

        .notification-btn {
            position: relative;
            background-color: #ffffff;
            border: 1px solid var(--border-color);
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            cursor: pointer;
            color: var(--text-main);
            box-shadow: var(--card-shadow);
        }

        .notification-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            background-color: var(--pertamina-red);
            color: #ffffff;
            font-size: 9px;
            font-weight: 700;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #ffffff;
        }

        /* --- USER DROPDOWN DROPDOWN SYSTEM --- */
        .user-dropdown-container {
            position: relative;
            display: inline-block;
        }

        .user-dropdown-trigger {
            background-color: #ffffff;
            border: 1px solid var(--border-color);
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 12.5px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: var(--card-shadow);
            cursor: pointer;
            transition: var(--transition);
            color: var(--text-main);
        }

        .user-dropdown-trigger:hover {
            background-color: #f8fafc;
            border-color: #cbd5e1;
        }

        .user-dropdown-avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            object-fit: cover;
            border: 1.5px solid var(--pertamina-blue);
        }

        .user-dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 6px;
            background-color: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            width: 160px;
            box-shadow: var(--card-shadow-lg);
            display: none;
            flex-direction: column;
            z-index: 1000;
            padding: 6px 0;
            overflow: hidden;
            animation: dropdownFadeIn 0.15s ease-out;
        }

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

        .user-dropdown-container:hover .user-dropdown-menu {
            display: flex;
        }

        .user-dropdown-item {
            padding: 10px 14px;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            cursor: pointer;
            transition: var(--transition);
        }

        .user-dropdown-item:hover {
            background-color: #f8fafc;
            color: var(--pertamina-blue);
        }

        .user-dropdown-divider {
            height: 1px;
            background-color: #f1f5f9;
            margin: 4px 0;
        }

        /* --- WELCOME BANNER (Glassmorphism & Refinery Background) --- */
        .welcome-banner {
            background: linear-gradient(135deg, #004c97 0%, #0079c1 100%);
            border-radius: 12px;
            padding: 18px 24px;
            color: #ffffff;
            position: relative;
            overflow: hidden;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            box-shadow: var(--card-shadow-lg);
        }

        .welcome-banner-art {
            position: absolute;
            right: -20px;
            bottom: -20px;
            height: 120%;
            width: 35%;
            opacity: 0.18;
            pointer-events: none;
        }

        .banner-content {
            z-index: 10;
            max-width: 65%;
        }

        .banner-tag {
            font-size: 9px;
            text-transform: uppercase;
            font-weight: 700;
            letter-spacing: 1px;
            background-color: rgba(255, 255, 255, 0.18);
            padding: 3px 8px;
            border-radius: 20px;
            display: inline-block;
            margin-bottom: 8px;
        }

        .banner-content h2 {
            font-family: 'Outfit', sans-serif;
            font-size: 17px;
            font-weight: 700;
            margin-bottom: 6px;
            line-height: 1.3;
        }

        .banner-content p {
            font-size: 11.5px;
            color: rgba(255, 255, 255, 0.85);
            line-height: 1.5;
        }

        /* --- SOLID COLOR METRIC CARDS (Cool Bubble Glass Effect) --- */
        .metrics-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 16px;
            margin-bottom: 28px;
        }

        .metric-card {
            border-radius: 12px;
            padding: 14px 18px;
            color: #ffffff;
            box-shadow: var(--card-shadow);
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            position: relative;
            transition: var(--transition);
        }

        .metric-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }

        .metric-card.green { background-color: var(--pertamina-green); }
        .metric-card.blue { background-color: var(--pertamina-blue); }
        .metric-card.red { background-color: var(--pertamina-red); }
        .metric-card.purple { background-color: #7c3aed; }
        .metric-card.yellow { background-color: var(--pertamina-yellow); }

        .metric-label {
            font-size: 11px;
            font-weight: 700;
            opacity: 0.9;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }

        .metric-value {
            font-family: 'Outfit', sans-serif;
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 6px;
        }

        .metric-trend-badge {
            font-size: 10px;
            font-weight: 700;
            background-color: rgba(255, 255, 255, 0.2);
            padding: 2px 6px;
            border-radius: 4px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .metric-sub {
            font-size: 10px;
            opacity: 0.8;
            margin-top: 6px;
        }

        .metric-icon-white {
            font-size: 24px;
            opacity: 0.35;
        }

        /* --- VISUALIZATIONS GRID --- */
        .visuals-grid {
            display: grid;
            grid-template-columns: 1.1fr 1.6fr 1.3fr;
            gap: 20px;
            margin-bottom: 28px;
        }

        .card {
            background-color: #ffffff;
            border-radius: 12px;
            padding: 16px 20px;
            box-shadow: var(--card-shadow);
            border: 1px solid var(--border-color);
            transition: var(--transition);
        }

        .card:hover {
            box-shadow: var(--card-shadow-md);
        }

        .card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 18px;
            padding-bottom: 12px;
            border-bottom: 1px solid #f1f5f9;
        }

        .card-title {
            font-family: 'Outfit', sans-serif;
            font-size: 14px;
            font-weight: 700;
            color: #0f172a;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-view-all {
            font-size: 11px;
            font-weight: 700;
            color: var(--text-muted);
            border: 1px solid var(--border-color);
            padding: 4px 8px;
            border-radius: 6px;
            text-decoration: none;
            background-color: #ffffff;
            transition: var(--transition);
        }

        .btn-view-all:hover {
            background-color: #f8fafc;
            color: var(--pertamina-blue);
            border-color: #cbd5e1;
        }

        .chart-container {
            position: relative;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* --- ASYMMETRICAL DYNAMIC LOWER GRID (cooler, layout asymmetry) --- */
        .lower-grid-asym {
            display: grid;
            grid-template-columns: 1.5fr 1.5fr 1fr;
            gap: 20px;
            margin-bottom: 28px;
        }

        /* Tables styling */
        table {
            width: 100%;
            border-collapse: collapse;
            text-align: left;
            font-size: 13px;
        }

        th, td {
            vertical-align: middle; /* Lock vertical alignment to middle */
        }

        th {
            font-weight: 800;
            color: #475569;
            padding: 12px 14px;
            border-bottom: 2px solid var(--border-color);
            font-size: 10.5px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            background-color: #f8fafc; /* Distinct light header background */
        }

        td {
            padding: 14px 14px;
            border-bottom: 1px solid #f1f5f9;
            color: #334155;
            font-weight: 500;
        }

        tr:hover td {
            background-color: #f8fafc;
        }

        /* Progress Bar style inside tables */
        .progress-container {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
        }

        .progress-bar-bg {
            background-color: #e2e8f0;
            border-radius: 10px;
            height: 6px;
            flex-grow: 1;
            overflow: hidden;
            box-shadow: inset 0 1px 1px rgba(0,0,0,0.05);
        }

        .progress-bar-fill {
            background-color: var(--pertamina-blue);
            height: 100%;
            border-radius: 10px;
            transition: var(--transition);
        }

        .progress-bar-fill.green { background-color: var(--pertamina-green); }
        .progress-bar-fill.orange { background-color: var(--pertamina-yellow); }

        /* Pulsing Red Dot for Live Alerts */
        .pulse-dot-red {
            width: 8px;
            height: 8px;
            background-color: var(--pertamina-red);
            border-radius: 50%;
            display: inline-block;
            box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
            animation: pulse-red 1.5s infinite;
        }

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

        .status-badge {
            padding: 3px 8px;
            border-radius: 20px;
            font-size: 9.5px;
            font-weight: 700;
            display: inline-block;
            text-transform: uppercase;
            letter-spacing: 0.2px;
        }

        .status-badge.new {
            background-color: rgba(239, 68, 68, 0.08);
            color: var(--pertamina-red);
            border: 1px solid rgba(239, 68, 68, 0.15);
        }

        .status-badge.pending {
            background-color: rgba(245, 158, 11, 0.08);
            color: var(--pertamina-yellow);
            border: 1px solid rgba(245, 158, 11, 0.15);
        }

        .status-badge.closed {
            background-color: rgba(16, 185, 129, 0.08);
            color: var(--pertamina-green);
            border: 1px solid rgba(16, 185, 129, 0.15);
        }

        /* Pagination helper layout */
        .table-pagination-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 12px;
            padding-top: 10px;
            border-top: 1px solid #f1f5f9;
            font-size: 11px;
            color: var(--text-muted);
            font-weight: 500;
        }

        .pagination-buttons {
            display: flex;
            gap: 4px;
        }

        .btn-pagination {
            border: 1px solid var(--border-color);
            background-color: #ffffff;
            padding: 3px 8px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 11px;
            font-weight: 600;
            transition: var(--transition);
        }

        .btn-pagination:hover {
            background-color: #f8fafc;
            border-color: #cbd5e1;
        }

        /* --- TAB CONTENT DISPLAY RULES --- */
        .app-view {
            display: none;
        }
        .app-view.active-view {
            display: block;
        }

        /* Forms Elements styling */
        .form-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            margin-bottom: 16px;
        }

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

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

        .form-group input, .form-group select, .form-group textarea {
            padding: 8px 12px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 13px;
            outline: none;
            background-color: #ffffff;
        }

        .form-group input:focus, .form-group select:focus {
            border-color: var(--pertamina-blue);
        }

        .btn-submit {
            background-color: var(--pertamina-blue);
            color: #ffffff;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition);
        }

        .btn-submit:hover {
            background-color: #005d96;
        }

        /* Threshold Config Grid */
        .parameter-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
        }

        .parameter-card {
            background-color: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            padding: 16px;
        }

        .parameter-card h4 {
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 12px;
            border-bottom: 1px solid #e2e8f0;
            padding-bottom: 6px;
            color: var(--pertamina-blue);
        }

        /* Emergency Red Flag styling */
        .redflag-container {
            display: grid;
            grid-template-columns: 1.8fr 1.2fr;
            gap: 20px;
        }
        
        .map-placeholder {
            background-color: #0b0f19;
            background-image: linear-gradient(rgba(30, 41, 59, 0.4) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 41, 59, 0.4) 1px, transparent 1px);
            background-size: 20px 20px;
            border-radius: 12px;
            height: 380px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #64748b;
            font-weight: 600;
            border: 1px solid #1e293b;
            position: relative;
            overflow: hidden;
            box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
        }

        .map-marker {
            position: absolute;
            color: #ef4444;
            font-size: 36px;
            text-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
            animation: bounce 1.5s infinite;
            z-index: 10;
        }

        .radar-pulse-wave {
            position: absolute;
            width: 80px;
            height: 80px;
            border-radius: 50%;
            border: 2px solid rgba(239, 68, 68, 0.6);
            animation: radar-pulse-anim 2s infinite ease-out;
            pointer-events: none;
            display: none;
            z-index: 5;
        }

        @keyframes radar-pulse-anim {
            0% {
                transform: scale(0.3);
                opacity: 1;
            }
            100% {
                transform: scale(2.2);
                opacity: 0;
            }
        }

        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-8px); }
        }

        .map-controls {
            position: absolute;
            right: 12px;
            top: 12px;
            display: flex;
            flex-direction: column;
            gap: 4px;
            z-index: 10;
        }

        .btn-map-tool {
            width: 28px;
            height: 28px;
            background-color: #ffffff;
            border: 1px solid #cbd5e1;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            cursor: pointer;
            box-shadow: var(--card-shadow);
        }
        
        .btn-map-tool:hover {
            background-color: #f8fafc;
        }
        /* Unified Card Action Buttons */
        .btn-card-action {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 6px 12px;
            font-size: 11.5px;
            font-weight: 700;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            background-color: #ffffff;
            color: var(--text-main);
            cursor: pointer;
            transition: var(--transition);
            white-space: nowrap; /* Prevent button text from wrapping */
        }
        
        .btn-card-action:hover {
            background-color: #f8fafc;
            border-color: #cbd5e1;
            color: var(--pertamina-blue);
        }

        .action-btn-group {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: nowrap;
            white-space: nowrap;
        }

        /* --- INITIALS ROUNDED AVATAR SYSTEM (Visual Reference) --- */
        .initials-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 11.5px;
            font-weight: 700;
            color: #ffffff !important;
            flex-shrink: 0;
            text-transform: uppercase;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        .initials-avatar.blue { background-color: #3b82f6; }
        .initials-avatar.red { background-color: #ef4444; }
        .initials-avatar.yellow { background-color: #f59e0b; }
        .initials-avatar.purple { background-color: #8b5cf6; }
        .initials-avatar.green { background-color: #10b981; }
        .initials-avatar.pink { background-color: #ec4899; }
        .initials-avatar.orange { background-color: #f97316; }
        .initials-avatar.teal { background-color: #0d9488; }

        /* --- SOLID BADGES --- */
        .badge-solid-pill {
            display: inline-block;
            padding: 4px 10px;
            font-size: 10.5px;
            font-weight: 700;
            border-radius: 20px;
            color: #ffffff !important;
            text-align: center;
            white-space: nowrap;
            text-transform: none;
            letter-spacing: 0;
            box-shadow: 0 1px 2px rgba(0,0,0,0.05);
        }
        .badge-solid-pill.green { background-color: #10b981; }
        .badge-solid-pill.yellow { background-color: #f59e0b; }
        .badge-solid-pill.blue { background-color: #3b82f6; }
        .badge-solid-pill.red { background-color: #ef4444; }
        .badge-solid-pill.grey { background-color: #64748b; }

        /* --- FLAT SOLID ACTION BUTTONS (Visual Reference) --- */
        .btn-solid-small {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            padding: 4.5px 10px;
            font-size: 11px;
            font-weight: 700;
            border-radius: 6px;
            border: none;
            color: #ffffff !important;
            cursor: pointer;
            transition: opacity 0.15s ease-in-out;
            white-space: nowrap;
            box-shadow: 0 1px 2px rgba(0,0,0,0.08);
        }

        .btn-solid-small:hover {
            opacity: 0.9;
        }

        .btn-solid-small.green { background-color: #10b981; }
        .btn-solid-small.red { background-color: #ef4444; }
        .btn-solid-small.blue { background-color: #3b82f6; }
        .btn-solid-small.orange { background-color: #f97316; }

        /* --- COMPACT TABLE STYLE (High Density) --- */
        .table-compact th {
            padding: 8px 10px !important;
            font-size: 11px !important;
        }

        .table-compact td {
            padding: 8px 10px !important;
            font-size: 11.5px !important;
        }

        .table-compact .initials-avatar {
            width: 28px !important;
            height: 28px !important;
            font-size: 10px !important;
        }

        .table-compact .btn-solid-small {
            padding: 3.5px 7px !important;
            font-size: 10px !important;
            border-radius: 4px !important;
        }

        .table-compact .badge-solid-pill {
            padding: 3px 8px !important;
            font-size: 9.5px !important;
        }

        .btn-card-action.primary {
            background-color: transparent;
            color: var(--pertamina-blue);
            border-color: var(--pertamina-blue);
        }
        
        .btn-card-action.primary:hover {
            background-color: var(--pertamina-blue);
            border-color: var(--pertamina-blue);
            color: #ffffff;
        }

        .btn-card-action.success {
            background-color: transparent;
            color: var(--pertamina-green);
            border-color: var(--pertamina-green);
        }
        
        .btn-card-action.success:hover {
            background-color: var(--pertamina-green);
            border-color: var(--pertamina-green);
            color: #ffffff;
        }

        .btn-card-action.danger {
            background-color: transparent;
            color: var(--pertamina-red);
            border-color: var(--pertamina-red);
        }
        
        .btn-card-action.danger:hover {
            background-color: var(--pertamina-red);
            border-color: var(--pertamina-red);
            color: #ffffff;
        }

        /* --- TACTICAL EMERGENCY CALL ACTION GRID --- */
        .emergency-actions-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-top: 14px;
        }

        .btn-emergency {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 14px;
            font-size: 12px;
            font-weight: 700;
            border-radius: 8px;
            cursor: pointer;
            border: 1.5px solid transparent;
            transition: all 0.2s ease-in-out;
            text-align: center;
            color: #ffffff !important;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
        }

        .btn-emergency.blue {
            background-color: var(--pertamina-blue);
        }
        .btn-emergency.blue:hover {
            background-color: #003e7c;
            box-shadow: 0 4px 8px rgba(0, 76, 151, 0.2);
        }

        .btn-emergency.red {
            background-color: var(--pertamina-red);
        }
        .btn-emergency.red:hover {
            background-color: #c9171d;
            box-shadow: 0 4px 8px rgba(233, 30, 37, 0.2);
        }

        .btn-emergency.green {
            background-color: var(--pertamina-green);
        }
        .btn-emergency.green:hover {
            background-color: #0d8058;
            box-shadow: 0 4px 8px rgba(16, 185, 129, 0.2);
        }

        /* --- HEADER NOTIFICATION BUTTON STATES (SIMPLIFIED) --- */
        .notification-btn.active {
            background-color: #f8fafc;
            border-color: #cbd5e1;
            box-shadow: none; /* Remove expanding shadow */
        }

        .notification-btn.red-flag-btn.active {
            background-color: rgba(233, 30, 37, 0.08); /* Very soft red tint */
            border-color: var(--pertamina-red);
            box-shadow: none;
        }

        .notification-btn.report-btn.active {
            background-color: rgba(245, 159, 0, 0.08); /* Very soft yellow/orange tint */
            border-color: var(--pertamina-yellow);
            box-shadow: none;
        }

        /* --- RESPONSIVE MEDIA QUERIES --- */
        
        /* TABLET (< 1024px) */
        @media (max-width: 1024px) {
            .metrics-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            .visuals-grid {
                grid-template-columns: 1fr 1fr;
            }
            .lower-grid-asym {
                grid-template-columns: 1fr 1fr;
            }
        }

        /* MOBILE (< 768px) */
        @media (max-width: 768px) {
            /* Sidebar hidden off-canvas */
            aside {
                transform: translateX(-100%);
                transition: transform 0.3s ease;
            }
            
            /* Class to toggle sidebar open */
            aside.sidebar-open {
                transform: translateX(0);
            }

            /* Main content expands to full width */
            main {
                margin-left: 0;
                max-width: 100vw;
                padding: 16px;
            }

            /* Grids stack vertically */
            .metrics-grid {
                grid-template-columns: 1fr;
            }
            .visuals-grid {
                grid-template-columns: 1fr;
            }
            .lower-grid-asym {
                grid-template-columns: 1fr;
            }
            
            /* Banner adjustments */
            .welcome-banner {
                flex-direction: column;
                align-items: flex-start;
                padding: 16px;
            }
            
            .banner-content {
                max-width: 100%;
            }
            
            .welcome-banner-art {
                display: none; /* Hide decorative art on mobile */
            }

            /* Header actions */
            .header-actions {
                gap: 8px;
            }
            
            .date-picker span {
                display: none; /* Hide date text, show only icon */
            }
            
            .user-dropdown-trigger span, .user-dropdown-trigger i {
                display: none; /* Show only avatar */
            }
            
            .user-dropdown-trigger {
                padding: 4px;
            }
            
            .user-dropdown-menu {
                right: -10px;
            }

            /* Overlay for sidebar */
            .sidebar-overlay {
                display: none;
                position: fixed;
                top: 0; left: 0; right: 0; bottom: 0;
                background-color: rgba(0, 0, 0, 0.5);
                z-index: 99;
                backdrop-filter: blur(2px);
            }
            
            .sidebar-overlay.active {
                display: block;
            }
            
            /* Mobile Hamburger Button */
            .mobile-menu-toggle {
                display: flex !important;
                background: none;
                border: none;
                font-size: 20px;
                color: var(--text-main);
                cursor: pointer;
                margin-right: 12px;
            }
        }
        
        /* Desktop: hide mobile toggle by default */
        .mobile-menu-toggle {
            display: none;
        }