        :root {
            --primary-color: #3498db;
            --secondary-color: #2980b9;
            --accent-color: #e74c3c;
            --light-gray: #f5f7fa;
            --medium-gray: #e1e5eb;
            --dark-gray: #7f8c8d;
            --text-color: #2c3e50;
            --white: #ffffff;
            --success-color: #2ecc71;
        }

        .dark-mode {
            --primary-color: #2980b9;
            --secondary-color: #3498db;
            --accent-color: #e74c3c;
            --light-gray: #2c3e50;
            --medium-gray: #34495e;
            --dark-gray: #bdc3c7;
            --text-color: #ecf0f1;
            --white: #1a252f;
            --success-color: #27ae60;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Roboto', sans-serif;
            background-color: var(--light-gray);
            color: var(--text-color);
            line-height: 1.5;
            padding: 16px 20px;
            font-size: 15px;
            transition: background-color 0.3s ease, color 0.3s ease;
            padding-bottom: 80px;
            /* Space for FAB */
        }

        .container {
            max-width: 1260px;
            width: 100%;
            margin: 0 auto;
            background-color: var(--white);
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            overflow: hidden;
        }

        h1,
        h2,
        h3 {
            color: var(--text-color);
            font-weight: 500;
        }

        h1 { font-size: 2em; }
        h2 { font-size: 1.45em; }
        h3 { font-size: 1.2em; }

        .app-header {
            text-align: center;
            padding: 24px 20px;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: var(--white);
            margin-bottom: 0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
        }

        .app-header h1 {
            color: var(--white);
            font-size: 2em;
            font-weight: 700;
            letter-spacing: 0.5px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
        }

        .app-header h1 i {
            font-size: 1em;
        }

        .app-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAgMCAzMCAzMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCwwSDMwVjMwSDBWMHoiIGZpbGw9InVybCgjd2F2ZXMpIi8+PGRlZnM+PHBhdHRlcm4gaWQ9IndhdmVzIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAgMCAzMCAzMCI+PHBhdGggZD0iTTAgMTVDMTAgNSAyMCAyNSAzMCAxNVYwSDBWMTV6TSIgZmlsbD0iI2ZmZiIgZmlsbC1vcGFjaXR5PSIwLjEiLz48cGF0aCBkPSJNMCAyMEMxMCAxMCAyMCAzMCAzMCAyMFYxMEgwUjIwek0iIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iMC4xIi8+PHBhdGggZD0iTTAgMjVDMTAgMTUgMjAgMzUgMzAgMjVWMjBIMFIyNXpNIiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMSIvPjxwYXRoIGQ9Ik0wIDMwQzEwIDIwIDIwIDQwIDMwIDMwVjI1SDBWMzB6IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMSIvPjwvZGVmcz48L3N2Zz4=');
            opacity: 0.1;
            z-index: 1;
            pointer-events: none;
        }

        .app-header h1,
        .app-header .app-subtitle {
            position: relative;
            z-index: 2;
        }

        .app-subtitle {
            color: rgba(255, 255, 255, 0.8);
            font-size: 1.1em;
            margin-top: 5px;
            font-weight: 300;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
        }

        .header-remark {
            position: absolute;
            bottom: 10px;
            right: 10px;
            font-size: 0.7em;
            color: rgba(255, 255, 255, 0.5);
            z-index: 3;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
        }

        #authContainer {
            padding: 20px 15px;
            background-color: var(--medium-gray);
            text-align: center;
        }

        #loginRegisterForm {
            max-width: 350px;
            margin: 0 auto;
            text-align: center;
        }

        #loginRegisterForm h3 {
            margin-bottom: 15px;
            color: var(--text-color);
        }

        #authContainer .form-group {
            margin-bottom: 10px;
            width: 100%;
        }

        #authContainer input[type="email"],
        #authContainer input[type="password"] {
            width: 100%;
            padding: 10px;
            margin-bottom: 5px;
            border: 1px solid var(--dark-gray);
            border-radius: 4px;
            font-size: 1em;
            background-color: var(--white);
            color: var(--text-color);
        }

        .auth-buttons {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            margin-top: 10px;
            width: 100%;
        }

        .auth-buttons button {
            flex: 1;
            padding: 10px 15px;
            font-size: 0.95em;
            cursor: pointer;
            margin: 0;
            border: none;
            border-radius: 4px;
            background-color: var(--primary-color);
            color: var(--white);
            transition: background-color 0.3s ease;
        }

        .auth-buttons button:hover {
            background-color: var(--secondary-color);
        }

        #authStatus {
            font-size: 0.9em;
            color: var(--text-color);
            margin-top: 10px;
        }

        #authStatus .user-email-display {
            font-weight: bold;
        }

        #authStatus button {
            padding: 4px 10px;
            margin-left: 10px;
            font-size: 0.85em;
            border: none;
            border-radius: 4px;
            background-color: var(--accent-color);
            color: var(--white);
            cursor: pointer;
        }

        .forgot-password-link {
            display: block;
            margin-top: 12px;
            font-size: 0.9em;
            color: var(--primary-color);
            text-decoration: none;
            cursor: pointer;
        }

        .forgot-password-link:hover {
            text-decoration: underline;
        }


        .text-green {
            color: var(--success-color);
            font-weight: 500;
        }

        .tabs-container {
            /* Container for desktop tabs */
            display: flex;
            align-items: center;
            background-color: var(--medium-gray);
            position: relative;
        }

        .main-nav-desktop {
            /* Desktop tabs */
            display: none;
            /* Hidden by default, shown on larger screens */
            flex-grow: 1;
            padding: 0 20px;
            align-items: center;
        }

        .hamburger-menu {
            /* Left side hamburger, now hidden */
            display: none !important;
        }

        .tabs {
            /* This is the mobile drawer menu */
            flex-direction: column;
            position: fixed !important;
            top: 0 !important;
            bottom: 0 !important;
            left: 0 !important;
            width: 280px;
            max-width: 85vw;
            height: 100vh !important;
            height: 100dvh !important;
            background-color: var(--medium-gray);
            transform: translateX(-100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
            z-index: 1002 !important;
            padding: 10px 0 80px 0;
            box-shadow: 4px 0 20px rgba(0, 0, 0, 0.25);
            overflow-y: auto !important;
            -webkit-overflow-scrolling: touch;
            display: flex !important;
            visibility: hidden;
        }

        .tabs.active {
            /* When mobile drawer is open */
            transform: translateX(0) !important;
            visibility: visible !important;
        }

        .drawer-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 20px;
            border-bottom: 1px solid var(--dark-gray);
            margin-bottom: 6px;
            color: var(--text-color);
        }

        .drawer-header h3 {
            font-size: 15px;
            font-weight: 700;
            color: var(--text-color);
            margin: 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .drawer-close-btn {
            background: transparent;
            border: none;
            color: var(--text-color);
            font-size: 18px;
            cursor: pointer;
            padding: 4px 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0;
            border-radius: 4px;
        }

        .drawer-close-btn:hover {
            background: rgba(0, 0, 0, 0.1);
        }

        .tab {
            padding: 12px 24px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
            border-bottom: 3px solid transparent;
            display: flex;
            align-items: center;
            gap: 8px;
            background-color: transparent;
            border-top: none;
            border-left: none;
            border-right: none;
            color: var(--text-color);
            border-right: 1px solid rgba(255, 255, 255, 0.1);
            /* Separator for desktop tabs */
        }

        .tab:last-child {
            border-right: none;
        }

        .tab:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        .tab.active {
            background-color: var(--white);
            border-bottom: 3px solid var(--primary-color);
            /* Active indicator for desktop */
            color: var(--primary-color);
        }

        @media (max-width: 768px) {

            /* Styles for mobile drawer items */
            .tabs .tab {
                width: 100%;
                border-bottom: 1px solid var(--dark-gray);
                border-right: none;
                border-left: 3px solid transparent;
                justify-content: flex-start;
                padding: 15px 20px;
            }

            .tabs .tab:last-child {
                border-bottom: 1px solid var(--dark-gray);
            }

            .tabs .tab.active {
                /* Active indicator for mobile drawer items */
                border-left: 3px solid var(--primary-color);
                border-bottom: 1px solid var(--medium-gray);
                /* Or transparent */
                background-color: rgba(255, 255, 255, 0.2);
                color: var(--primary-color);
            }
        }

        .tab-content {
            display: none;
            padding: 25px;
        }

        .tab-content.active {
            display: block;
            animation: fadeIn 0.5s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .table-responsive-container {
            width: 100%;
            overflow-x: auto;
            margin: 20px 0;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            border-radius: 8px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin: 0;
            box-shadow: none;
        }

        th,
        td {
            padding: 9px 12px;
            text-align: left;
            border-bottom: 1px solid var(--medium-gray);
            color: var(--text-color);
            font-size: 14px;
        }

        th {
            background-color: var(--primary-color);
            color: var(--white);
            font-weight: 500;
            text-transform: uppercase;
            font-size: 12.5px;
            letter-spacing: 0.5px;
            cursor: pointer;
            position: relative;
            padding: 10px 12px;
        }

        th.sort-asc::after {
            content: " \2191";
            /* Panah ke atas */
            position: absolute;
            right: 8px;
        }

        th.sort-desc::after {
            content: " \2193";
            /* Panah ke bawah */
            position: absolute;
            right: 8px;
        }

        tr:nth-child(even) {
            background-color: var(--light-gray);
        }

        tr:hover {
            background-color: rgba(52, 152, 219, 0.1);
        }

        /* Shift Colors for Monthly Table */
        /* Shift Colors for Monthly Table - Enhanced Visibility */
        /* Shift 1: Hijau */
        #monthlyTable tr.shift-1 {
            background-color: rgba(46, 204, 113, 0.25);
            border-left: 4px solid #2ecc71;
        }

        /* Shift 2: Kuning/Orange (Gold) */
        #monthlyTable tr.shift-2 {
            background-color: rgba(255, 193, 7, 0.25);
            border-left: 4px solid #ffc107;
        }

        /* Shift 3: Merah/Ungu (Accent) */
        #monthlyTable tr.shift-3 {
            background-color: rgba(231, 76, 60, 0.25);
            border-left: 4px solid #e74c3c;
        }

        /* Dark Mode - Colors that pop more */
        .dark-mode #monthlyTable tr.shift-1 {
            background-color: rgba(46, 204, 113, 0.3);
            color: #ecf0f1;
        }

        .dark-mode #monthlyTable tr.shift-2 {
            background-color: rgba(255, 193, 7, 0.3);
            color: #ecf0f1;
        }

        .dark-mode #monthlyTable tr.shift-3 {
            background-color: rgba(231, 76, 60, 0.3);
            color: #ecf0f1;
        }

        #monthlyTable tr.shift-1:hover,
        #monthlyTable tr.shift-2:hover,
        #monthlyTable tr.shift-3:hover {
            filter: brightness(0.9);
        }

        .dark-mode #monthlyTable tr.shift-1:hover,
        .dark-mode #monthlyTable tr.shift-2:hover,
        .dark-mode #monthlyTable tr.shift-3:hover {
            filter: brightness(1.2);
        }

        input,
        select,
        textarea {
            width: 100%;
            padding: 9px 12px;
            border: 1px solid var(--medium-gray);
            border-radius: 4px;
            font-family: 'Roboto', sans-serif;
            font-size: 14.5px;
            transition: border 0.3s ease;
            background-color: var(--white);
            color: var(--text-color);
        }

        input:disabled,
        select:disabled,
        textarea:disabled {
            background-color: var(--medium-gray) !important;
            cursor: not-allowed;
            opacity: 0.7;
        }


        input:focus,
        select:focus,
        textarea:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
        }

        button {
            background-color: var(--primary-color);
            color: var(--white);
            border: none;
            padding: 9px 18px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14.5px;
            font-weight: 500;
            transition: all 0.3s ease;
            margin-right: 8px;
            margin-top: 8px;
        }

        button:disabled {
            background-color: var(--dark-gray) !important;
            cursor: not-allowed;
            opacity: 0.6;
        }


        button:hover:not(:disabled) {
            background-color: var(--secondary-color);
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        button:active:not(:disabled) {
            transform: translateY(0);
        }

        .form-group {
            margin-bottom: 16px;
        }

        .form-group label {
            display: block;
            margin-bottom: 6px;
            font-weight: 500;
            font-size: 14px;
            color: var(--text-color);
        }

        .summary {
            background-color: var(--light-gray);
            padding: 18px 20px;
            border-radius: 6px;
            margin: 16px 0;
            border-left: 4px solid var(--primary-color);
            font-size: 14.5px;
        }

        .summary h3 {
            margin-bottom: 12px;
            font-size: 16.5px;
            color: var(--primary-color);
        }

        .summary p {
            margin: 7px 0;
            display: flex;
            justify-content: space-between;
            font-size: 14.5px;
        }

        .summary span {
            font-weight: 500;
            font-size: 14.5px;
        }

        .date-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .date-header h2 {
            color: var(--primary-color);
        }

        .currency {
            text-align: right;
        }

        .btn-group {
            display: flex;
            gap: 10px;
            margin-top: 20px;
            flex-wrap: wrap;
        }

        .btn-group button {
            margin: 0;
        }

        #dayForm > button {
            display: block;
            width: 100%;
            max-width: 350px;
            margin: 20px auto 0 auto;
            padding: 12px;
            font-size: 1em;
            font-weight: 500;
        }

        .date-header button {
            margin: 0;
        }

        .theme-toggle {
            position: absolute;
            top: 20px;
            right: 20px;
            z-index: 10;
        }

        .theme-toggle button {
            background: rgba(255, 255, 255, 0.25);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.5);
            padding: 8px 15px;
            border-radius: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            margin: 0;
            backdrop-filter: blur(4px);
            transition: background 0.3s ease;
        }

        .theme-toggle button:hover {
            background: rgba(255, 255, 255, 0.4);
        }

        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: var(--accent-color);
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            font-size: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .tab-with-badge {
            position: relative;
        }

        .quick-actions {
            margin: 30px 0;
        }

        .action-buttons {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }

        .action-btn {
            margin: 0;
            flex: 1;
            min-width: 200px;
            padding: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .action-btn:hover:not(:disabled) {
            background-color: var(--secondary-color);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .action-btn:active:not(:disabled) {
            transform: translateY(0);
        }

        .chart-container {
            margin: 30px 0;
            background: var(--white);
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            position: relative;
            height: 300px;
            /* Tinggi default untuk chart */
        }

        @media (max-width: 768px) {
            .chart-container {
                height: 300px;
                /* Pastikan tinggi konsisten di mobile */
                padding: 15px;
            }
        }


        .chart-container canvas {
            width: 100% !important;
            height: 100% !important;
        }

        .card-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            margin: 20px 0;
        }

        .card {
            background: var(--white);
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            display: flex;
            align-items: center;
        }

        .card-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            color: white;
            font-size: 20px;
        }

        .bg-primary {
            background: var(--primary-color);
        }

        .bg-success {
            background: var(--success-color);
        }

        .bg-warning {
            background: #f39c12;
        }

        .bg-danger {
            background: var(--accent-color);
        }

        .bg-purple {
            background: #9b59b6;
        }

        .card-content h3 {
            font-size: 16px;
            margin-bottom: 5px;
            color: var(--dark-gray);
        }

        .card-content p {
            font-size: 18px;
            font-weight: 500;
            color: var(--text-color);
        }

        .menu-overlay {
            /* Overlay for mobile drawer */
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            height: 100dvh !important;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1001 !important;
            /* Below drawer (1002) */
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
            pointer-events: none;
        }

        .tabs.active + .menu-overlay,
        .menu-overlay.active {
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto !important;
        }


        @media (max-width: 768px) {
            body {
                padding: 8px 6px 90px 6px;
                font-size: 14.5px;
            }

            .container {
                width: 100%;
                border-radius: 6px;
                box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
            }

            .main-nav-desktop {
                /* Hide desktop tabs on mobile */
                display: none;
            }

            .tab-content {
                padding: 12px 10px;
            }

            .app-header {
                padding: 18px 14px;
            }

            .app-header h1 {
                font-size: 1.5em;
                gap: 8px;
            }

            .app-subtitle {
                font-size: 0.9em;
            }

            h2 {
                font-size: 1.3em;
            }

            h3 {
                font-size: 1.15em;
            }

            .summary {
                padding: 14px 14px;
                margin: 14px 0;
                font-size: 14px;
            }

            .summary h3 {
                font-size: 15.5px;
                margin-bottom: 10px;
            }

            .summary p {
                margin: 6px 0;
                font-size: 14px;
            }

            .summary span {
                font-size: 14px;
            }

            th,
            td {
                padding: 8px 10px;
                font-size: 13px;
            }

            th {
                font-size: 12px;
                padding: 9px 10px;
            }

            .btn-group {
                width: 100%;
                margin-top: 15px;
                gap: 8px;
            }

            .btn-group button {
                width: 100%;
                margin: 0;
                padding: 10px 16px;
                font-size: 14px;
            }

            .date-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }

            .table-responsive-container {
                display: block;
                /* Memastikan tabel bisa scroll horizontal jika perlu */
                overflow-x: auto;
            }

            .action-buttons {
                flex-direction: column;
            }

            .action-btn {
                width: 100%;
            }

            .theme-toggle {
                position: static;
                margin-bottom: 20px;
                text-align: center;
            }

            .theme-toggle button {
                margin: 0 auto;
            }

            #settings .form-group {
                flex-direction: column;
                align-items: flex-start;
                gap: 5px;
            }

            #settings .form-group label {
                flex-basis: auto;
                width: 100%;
                margin-bottom: 5px;
            }

            #settings .form-group input[type="number"],
            #settings .form-group input[type="text"],
            #settings .form-group select {
                max-width: 100%;
            }

            #settings .form-group textarea {
                max-width: 100%;
            }

            .action-btn.hide-on-mobile {
                display: none;
            }

            .card-container {
                grid-template-columns: 1fr;
                /* Satu kartu per baris di mobile */
                gap: 15px;
            }

            .card {
                padding: 14px;
            }

            .card-content h3 {
                font-size: 14px;
            }

            .card-content p {
                font-size: 17px;
            }

        }

        @media (min-width: 769px) {
            .tabs {
                /* Mobile drawer is hidden on desktop */
                display: none !important;
            }

            .menu-overlay {
                /* Overlay is hidden on desktop */
                display: none !important;
            }

            .main-nav-desktop {
                /* Show desktop tabs */
                display: flex;
            }

            .data-table td {
                /* Mencegah teks wrap di sel tabel data */
                white-space: nowrap;
            }

            #settings h2 {
                font-size: 20px;
                margin-bottom: 20px;
            }

            #settings h3 {
                font-size: 18px;
                margin-top: 30px;
                margin-bottom: 15px;
                color: var(--primary-color);
                border-bottom: 1px solid var(--medium-gray);
                padding-bottom: 5px;
            }

            #settings h4 {
                font-size: 16px;
                margin-top: 20px;
                margin-bottom: 10px;
                color: var(--dark-gray);
            }

            #settings .form-group {
                margin-bottom: 15px;
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: 10px;
            }

            #settings .form-group label {
                flex-basis: 250px;
                /* Lebar tetap untuk label */
                flex-shrink: 0;
                margin-bottom: 0;
                font-weight: 400;
                font-size: 14px;
            }

            #settings .form-group input[type="number"],
            #settings .form-group input[type="text"],
            #settings .form-group select {
                flex-grow: 1;
                max-width: 300px;
                /* Batas lebar input */
                font-size: 14px;
                padding: 8px 10px;
            }

            #settings .form-group textarea {
                flex-grow: 1;
                max-width: 300px;
                font-size: 14px;
                padding: 8px 10px;
                min-height: 60px;
            }

            #settings .form-group p {
                /* Deskripsi kecil di bawah input */
                font-size: 12px;
                margin-top: 3px;
            }

            #settings .btn-group {
                margin-top: 30px;
                justify-content: flex-start;
                /* Tombol simpan & muat di kiri */
            }

            /* Styling khusus untuk baris gaji pokok dan total gaji di summary bulanan desktop */
            #monthly .summary .basic-salary-row,
            #monthly .summary .total-salary-row {
                display: inline-block;
                /* Membuatnya berdampingan */
                width: 48%;
                /* Sekitar setengah lebar */
                margin-right: 2%;
                /* Spasi antar elemen */
                box-sizing: border-box;
            }

            #monthly .summary .total-salary-row {
                margin-right: 0;
                /* Hapus margin kanan untuk elemen terakhir */
            }

        }

        .floating-menu-btn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1003;
            /* Above drawer and overlay */
            background-color: var(--primary-color);
            color: var(--white);
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            display: none;
            /* Only visible on mobile when logged in */
            align-items: center;
            justify-content: center;
            font-size: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }

        .floating-menu-btn:hover:not(:disabled) {
            background-color: var(--secondary-color);
            transform: scale(1.05);
        }

        .floating-menu-btn:active:not(:disabled) {
            transform: scale(0.95);
        }

        /* Loading Spinner Styles */
        .loading-spinner-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 9999;
            display: none;
            justify-content: center;
            align-items: center;
        }

        .loading-spinner {
            border: 8px solid #f3f3f3;
            border-top: 8px solid var(--primary-color);
            border-radius: 50%;
            width: 60px;
            height: 60px;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        /* Notification System Styles */
        .notification-container {
            position: fixed;
            top: 50%;
            /* Posisi di tengah layar vertikal */
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 9999;
            width: 350px;
            max-width: 90%;
            /* Agar tidak terlalu lebar di layar kecil */
        }

        .notification {
            background-color: var(--white);
            color: var(--text-color);
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            display: flex;
            align-items: flex-start;
            /* Icon dan teks sejajar atas */
            overflow: hidden;
            opacity: 0;
            transform: translateY(-20px);
            transition: opacity 0.3s ease, transform 0.3s ease;
            position: relative;
            /* Untuk progress bar */
        }

        .notification.show {
            opacity: 1;
            transform: translateY(0);
        }

        .notification-icon {
            margin-right: 12px;
            font-size: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            /* Ukuran tetap untuk icon */
            height: 24px;
        }

        .notification-content {
            flex: 1;
            /* Konten mengambil sisa ruang */
        }

        .notification-title {
            font-weight: 500;
            margin-bottom: 5px;
            font-size: 16px;
        }

        .notification-message {
            font-size: 14px;
            opacity: 0.9;
        }

        .notification-progress {
            position: absolute;
            bottom: 0;
            left: 0;
            height: 3px;
            /* Tinggi progress bar */
            width: 100%;
            transform-origin: left;
        }

        /* Warna notifikasi berdasarkan tipe */
        .notification-success {
            border-left: 4px solid var(--success-color);
        }

        .notification-success .notification-icon {
            color: var(--success-color);
        }

        .notification-success .notification-progress {
            background-color: var(--success-color);
        }

        .notification-info {
            border-left: 4px solid var(--primary-color);
        }

        .notification-info .notification-icon {
            color: var(--primary-color);
        }

        .notification-info .notification-progress {
            background-color: var(--primary-color);
        }

        .notification-warning {
            border-left: 4px solid #f39c12;
        }

        .notification-warning .notification-icon {
            color: #f39c12;
        }

        .notification-warning .notification-progress {
            background-color: #f39c12;
        }

        .notification-error {
            border-left: 4px solid var(--accent-color);
        }

        .notification-error .notification-icon {
            color: var(--accent-color);
        }

        .notification-error .notification-progress {
            background-color: var(--accent-color);
        }

        .notification-confirm {
            border-left: 4px solid #9b59b6;
        }

        /* Warna ungu untuk konfirmasi */
        .notification-confirm .notification-icon {
            color: #9b59b6;
        }

        .notification-confirm .notification-progress {
            background-color: #9b59b6;
        }

        /* Tombol untuk notifikasi konfirmasi */
        .notification-confirm .notification-actions {
            display: flex;
            margin-top: 10px;
            gap: 10px;
        }

        .notification-confirm .notification-actions button {
            flex: 1;
            /* Tombol mengambil lebar yang sama */
            padding: 8px;
            font-size: 14px;
            margin: 0;
            /* Hapus margin default tombol */
        }

        /* Animasi progress bar */
        @keyframes progress {
            from {
                transform: scaleX(1);
            }

            to {
                transform: scaleX(0);
            }
        }

        .notification-progress.animate {
            animation: progress 5s linear forwards;
            /* Durasi default 5s */
        }

        /* Style notifikasi untuk dark mode */
        .dark-mode .notification {
            background-color: var(--medium-gray);
            /* Warna latar lebih gelap */
        }
