* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
            user-select: none; /* Mencegah seleksi teks */
            -webkit-user-select: none; /* Untuk Safari */
            -moz-user-select: none; /* Untuk Firefox */
            -ms-user-select: none; /* Untuk Edge */
        }

        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            background-attachment: fixed;
            color: #2c3e50;
            overflow-y: auto;
            padding-bottom: 80px;
            min-height: 100vh;
            outline: none;
      -webkit-tap-highlight-color: transparent;
        }

        .container {
            max-width: 100%;
            padding: 20px;
            transition: transform 0.3s ease;
        }

        /* Header */
        .header {
            background: rgba(255, 255, 255, 0.95);
            padding: 15px 20px;
            border-radius: 15px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            position: sticky;
            top: 10px;
            z-index: 100;
        }

        .header .menu-btn {
            font-size: 24px;
            color: #34495e;
            cursor: pointer;
            padding: 5px;
            transition: color 0.3s ease, transform 0.3s ease;
        }

        .header .menu-btn:hover {
            color: #3498db;
        }

        .header .menu-btn.active {
            transform: rotate(180deg);
        }

        .header h1 {
            font-size: 22px;
            font-weight: 600;
            color: #34495e;
        }

        .header .user {
            width: 35px;
            height: 35px;
            background: #3498db;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 500;
            font-size: 18px;
        }

        /* Sidebar */
        .sidebar {
            position: fixed;
            top: 0;
            left: -250px;
            width: 250px;
            height: 100%;
            background: linear-gradient(180deg, #34495e 0%, #2c3e50 100%);
            padding: 20px;
            transition: left 0.3s ease;
            z-index: 200;
            box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
        }

        .sidebar.active {
            left: 0;
        }

        .sidebar .profile {
            text-align: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .sidebar .profile i {
            font-size: 80px;
            color: #3498db;
            margin-bottom: 10px;
        }

        .sidebar .profile h3 {
            color: white;
            font-size: 18px;
            font-weight: 600;
        }

        .sidebar .profile p {
            color: #bdc3c7;
            font-size: 14px;
        }

        .sidebar ul {
            list-style: none;
        }

        .sidebar ul li {
            margin-bottom: 8px;
        }

        .sidebar ul li a {
            color: #ecf0f1;
            text-decoration: none;
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 12px 15px;
            border-radius: 10px;
            transition: all 0.3s ease;
        }

        .sidebar ul li a:hover {
            background: rgba(52, 152, 219, 0.2);
            padding-left: 25px;
        }

        .sidebar ul li a.active {
            background: #3498db;
            color: white;
            font-weight: 600;
        }

        .sidebar ul li a i {
            font-size: 20px;
            width: 30px;
            text-align: center;
        }

        /* Stats Cards */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-bottom: 25px;
        }

        .stat-card {
            background: white;
            padding: 15px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease, opacity 0.5s ease;
            display: flex;
            align-items: center;
            gap: 10px;
            max-width: 100%;
            overflow: hidden;
            opacity: 0;
            animation: fadeIn 0.5s forwards;
        }

        .stat-card:nth-child(1) { animation-delay: 0.1s; }
        .stat-card:nth-child(2) { animation-delay: 0.2s; }
        .stat-card:nth-child(3) { animation-delay: 0.3s; }
        .stat-card:nth-child(4) { animation-delay: 0.4s; }

        .stat-card:hover {
            transform: translateY(-5px);
        }

        .stat-card .icon-wrapper {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #f5f6fa 0%, #ebedf0 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(0, 0, 0, 0.05);
            flex-shrink: 0;
        }

        .stat-card i {
            font-size: 20px;
            color: #7f8c8d;
        }

        .stat-card .content {
            flex: 1;
            overflow: hidden;
        }

        .stat-card .content h3 {
            font-size: 13px;
            color: #7f8c8d;
            font-weight: 500;
            margin-bottom: 4px;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
        }

        .stat-card .content p {
            font-size: 18px;
            font-weight: 600;
            color: #2c3e50;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
        }

        .stat-card .content .nominal {
            font-size: 12px;
            color: #7f8c8d;
            font-weight: 400;
        }

        .stat-card.blue .content p { color: #3498db; }
        .stat-card.green .content p { color: #2ecc71; }
        .stat-card.red .content p { color: #e74c3c; }
        .stat-card.yellow .content p { color: #f1c40f; }

        /* Chart Section */
        .chart-section {
            background: white;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
            margin-bottom: 25px;
            position: relative;
            overflow: hidden;
        }

        .chart-section::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, rgba(52, 152, 219, 0.1), rgba(255, 255, 255, 0));
            transform: rotate(30deg);
            pointer-events: none;
        }

        .chart-section h2 {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 15px;
            color: #34495e;
            position: relative;
            z-index: 1;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .chart-section .refresh-btn {
            cursor: pointer;
            color: #3498db;
            font-size: 16px;
            transition: transform 0.3s ease;
        }

        .chart-section .refresh-btn:hover {
            transform: rotate(360deg);
        }

        .chart-section .refresh-btn.spinning {
            animation: spin 1s linear infinite;
        }

        .chart-container {
            height: 300px;
            position: relative;
            z-index: 1;
            margin-top: 30px; /* Menambah jarak antara legend dan chart */
        }

        canvas {
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.9);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        }

        /* Menu Section */
        .menu-section {
            background: white;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
            margin-bottom: 25px;
        }

        .menu-section h2 {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 15px;
            color: #34495e;
        }

        .menu-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 15px;
        }

        .menu-item {
            background: linear-gradient(135deg, #f5f6fa 0%, #ebedf0 100%);
            padding: 15px;
            border-radius: 12px;
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .menu-item:hover {
            transform: scale(1.05);
            background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
            color: white;
        }

        .menu-item i {
            font-size: 24px;
            margin-bottom: 8px;
        }

        .menu-item p {
            font-size: 14px;
            font-weight: 500;
        }

        /* Bottom Navigation */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.95);
            padding: 10px 20px;
            display: flex;
            justify-content: space-around;
            box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
            border-radius: 20px 20px 0 0;
            z-index: 100;
        }

        .nav-item {
            text-align: center;
            color: #7f8c8d;
            transition: all 0.3s ease;
            padding: 8px;
        }

        .nav-item.active {
            color: #3498db;
            background: rgba(52, 152, 219, 0.1);
            border-radius: 10px;
        }

        .nav-item i {
            font-size: 20px;
            margin-bottom: 4px;
        }

        .nav-item p {
            font-size: 12px;
        }

        /* Animation */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes spin {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(360deg);
            }
        }

        .container > * {
            animation: fadeIn 0.5s ease forwards;
        }

        /* Sidebar Active State */
        body.sidebar-active .container {
            transform: translateX(250px);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .stats-grid {
                grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            }

            .header h1 {
                font-size: 18px;
            }

            .sidebar {
                width: 200px;
            }

            body.sidebar-active .container {
                transform: translateX(200px);
            }

            .stat-card .content h3 {
                font-size: 12px;
            }

            .stat-card .content p {
                font-size: 16px;
            }

            .chart-container {
                height: 250px;
            }
        }