        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            margin: 0;
            padding: 0;
        }

        /* ADMIN STYLES */
        /* SIGN IN PAGE */
        .signin-container {
            min-height: 100vh;
            background: linear-gradient(145deg, #d4ece2 0%, #b7dcd0 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
            width: 100%;
        }

        .signin-card {
            background: rgba(255, 255, 255, 0.95);
            max-width: 440px;
            width: 100%;
            border-radius: 48px;
            padding: 2.8rem 2.5rem;
            box-shadow: 0 30px 60px -15px rgba(0, 60, 40, 0.4);
            text-align: center;
        }

        .signin-logo {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 2rem;

        }

        .signin-title {
            font-size: 2rem;
            font-weight: bold;
            color: #154e38;
            margin-bottom: 2rem;
        }

        .input-group {
            margin-bottom: 1.8rem;
            text-align: left;
        }

        .input-group label {
            font-size: 0.9rem;
            font-weight: 600;
            color: #1c4f3d;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 6px;
        }

        .input-wrapper {
            display: flex;
            align-items: center;
            background: white;
            border: 1px solid #c3d9cf;
            border-radius: 40px;
            padding: 0 18px;
        }

        .input-wrapper:focus-within {
            border-color: #0f6b4b;
            box-shadow: 0 4px 14px rgba(8, 100, 60, 0.2);
        }

        .input-wrapper i {
            color: #557f6b;
            width: 28px;
        }

        .input-wrapper input {
            width: 100%;
            border: none;
            padding: 16px 6px;
            background: transparent;
            outline: none;
        }

        .signin-btn {
            background: #0f6b4b;
            color: white;
            border: none;
            width: 100%;
            padding: 16px;
            border-radius: 40px;
            font-size: 1.2rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            cursor: pointer;
            margin: 2rem 0 1.2rem;
            box-shadow: 0 8px 18px rgba(6, 80, 48, 0.4);
        }

        .demo-cred {
            background: #e9f3ef;
            border-radius: 40px;
            padding: 1rem;
            font-size: 0.9rem;
            color: #215f46;
            border: 1px dashed #72b096;
        }

        /* ADMIN APP */
        #adminApp {
            display: none;
        }

        .app-container {
            display: flex;
            min-height: 100vh;
            width: 100%;
        }

        /* SIDEBAR */
        .sidebar {
            width: 280px;
            min-width: 280px;
            flex-shrink: 0;
            background: #0b2f2a;
            color: #e0f0ea;
            padding: 2rem 1.2rem;
            display: flex;
            flex-direction: column;
            box-shadow: 6px 0 30px rgba(0, 30, 20, 0.3);
            position: sticky;
            top: 0;
            height: 100vh;
            overflow-y: auto;
        }

        .logo-area {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 2rem;
            border-bottom: 1px solid #275c50;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 20px;
        }

        .logo-area i {
            font-size: 2.5rem;
            color: #65c9a8;
        }

        .logo-area h2 {
            font-weight: 500;
            font-size: 1.7rem;
            color: white;
        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 14px 18px;
            margin: 6px 0;
            border-radius: 40px;
            color: #cce8df;
            cursor: pointer;
            transition: 0.15s;
        }

        .nav-item i {
            width: 26px;
            font-size: 1.3rem;
        }

        .nav-item.active {
            background: #1c584b;
            color: white;
            font-weight: 600;
            box-shadow: 0 8px 16px rgba(0, 40, 30, 0.5);
        }

        .logout-btn:hover {
            background: #1c584b !important;
            color: white !important;
        }

        .sidebar-footer {
            margin-top: auto;
            font-size: 0.8rem;
            color: #7fbcab;
            padding-top: 2rem;
        }

        /* MAIN PANEL */
        .main-panel {
            flex: 1;
            min-width: 0;
            padding: 2rem 2.5rem;
            overflow-y: auto;
            background: #f5faf8;
        }

        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
        }

        .page-title h1 {
            font-size: 2rem;
            font-weight: 600;
            color: #0e4d3c;
        }

        .page-title p {
            color: #467a68;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .admin-profile {
            background: white;
            border-radius: 60px;
            padding: 6px 20px 6px 14px;
            display: flex;
            align-items: center;
            gap: 15px;
            box-shadow: 0 4px 12px rgba(0, 40, 20, 0.1);
            cursor: pointer;
            border: 1px solid #bcd9ce;
        }

        .admin-profile .avatar {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: #0f6b4b;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 1.4rem;
        }

        .admin-profile .name {
            font-weight: 600;
            color: #154e3a;
        }

        .admin-profile .role {
            font-size: 0.75rem;
            color: #46755f;
        }

        /* PAGES */
        .page {
            display: none;
            animation: fade 0.2s;
        }

        .page.active-page {
            display: block;
        }

        @keyframes fade {
            from {
                opacity: 0.3;
            }

            to {
                opacity: 1;
            }
        }

        /* STAT CARDS */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 22px;
            margin-bottom: 32px;
        }

        .stat-card {
            background: white;
            border-radius: 28px;
            padding: 1.6rem 1.2rem;
            box-shadow: 0 8px 18px rgba(0, 40, 30, 0.06);
            display: flex;
            align-items: center;
            gap: 18px;
            border: 1px solid #c4ddd1;
        }

        .stat-icon {
            background: #def3ea;
            width: 56px;
            height: 56px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #0f6b4b;
            font-size: 1.8rem;
        }

        .stat-content h3 {
            font-size: 1.8rem;
            font-weight: 700;
            color: #154e3a;
            line-height: 1.2;
        }

        .stat-content p {
            color: #5b7f70;
            font-size: 0.9rem;
        }

        /* CHARTS GRID - now 2x2 for four charts */
        .charts-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 24px;
            margin-top: 20px;
        }

        .chart-card {
            background: white;
            border-radius: 28px;
            padding: 20px;
            box-shadow: 0 10px 26px rgba(0, 45, 30, 0.06);
            border: 1px solid #cee6dc;
        }

        .chart-card h3 {
            font-size: 1.1rem;
            font-weight: 600;
            color: #135c44;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .chart-container {
            position: relative;
            height: 220px;
            width: 100%;
        }

        .chart-card-unit {
            background: white;
            border-radius: 28px;
            padding: 20px;
            box-shadow: 0 10px 26px rgba(0, 45, 30, 0.06);
            border: 1px solid #cee6dc;
            margin-top: 25px;
        }

        .chart-card-unit h3 {
            font-size: 1.1rem;
            font-weight: 600;
            color: #135c44;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .chart-container-unit {
            position: relative;
            height: 220px;
            width: 100%;
        }


        .filter-row {
            display: flex;
            justify-content: flex-end;
            margin-bottom: 10px;
        }

        .month-select {
            padding: 8px 20px;
            border-radius: 40px;
            border: 1px solid #bcd9ce;
            background: white;
        }

        /* TABLES & FILTERS */
        .table-responsive {
            overflow-x: auto;
            border-radius: 20px;
            background: white;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            text-align: left;
        }

        th {
            background: #d4f0e5;
            color: #064e31;
            padding: 16px 12px;
            font-weight: 600;
            white-space: nowrap;
        }

        td {
            padding: 14px 12px;
            border-bottom: 1px solid #c2ddd1;
            white-space: nowrap;
        }

        .status-badge {
            background: #e2f0ea;
            color: #0f5f3f;
            padding: 4px 14px;
            border-radius: 40px;
            font-size: 0.8rem;
            display: inline-block;
        }

        .filter-section {
            display: flex;
            gap: 20px;
            align-items: center;
            flex-wrap: wrap;
            margin-bottom: 25px;
            background: white;
            padding: 1.2rem 2rem;
            border-radius: 60px;
        }

        .filter-select {
            padding: 12px 24px;
            border-radius: 40px;
            border: 1px solid #bcd9ce;
            background: white;
            min-width: 200px;
        }

        .generate-btn {
            background: #1a7a5a;
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 40px;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            gap: 10px;
            align-items: center;
            width: auto;
        }

        .add-user-btn {
            background: #0f6b4b;
            color: white;
            border: none;
            padding: 14px 32px;
            border-radius: 40px;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            gap: 12px;
            align-items: center;
            width: auto;
        }

        .role-badge {
            background: #e2f0ea;
            color: #0f5f3f;
            padding: 4px 16px;
            border-radius: 40px;
            display: inline-block;
        }

        .action-icons i {
            margin: 0 8px;
            color: #3c7866;
            cursor: pointer;
        }

        /* PROFILE PAGE */
        .profile-page-card {
            background: white;
            border-radius: 32px;
            padding: 2.5rem;
            margin: 0 auto;
            box-shadow: 0 20px 40px rgba(0, 40, 25, 0.1);
            border: 1px solid #c4ddd1;
        }

        .profile-header-large {
            display: flex;
            align-items: center;
            gap: 30px;
            margin-bottom: 2.5rem;
        }

        .profile-avatar-large {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: #0f6b4b;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: white;
        }

        .profile-field {
            background: #f2faf6;
            border-radius: 28px;
            padding: 1.2rem 2rem;
            margin: 1.2rem 0;
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .profile-field i {
            font-size: 1.4rem;
            width: 40px;
            color: #0f6b4b;
        }

        .profile-field .field-content {
            flex: 1;
        }

        .profile-field .field-label {
            font-size: 0.8rem;
            color: #46755f;
        }

        .profile-field .field-value {
            font-weight: 600;
            font-size: 1.2rem;
            color: #0d4a35;
        }

        .edit-btn,
        .change-pwd-btn {
            background: transparent;
            border: 1.5px solid #0f6b4b;
            color: #0f6b4b;
            padding: 10px 22px;
            border-radius: 40px;
            font-weight: 600;
            cursor: pointer;
        }

        .signout-profile-btn {
            background: #c04242;
            color: white;
            border: none;
            padding: 14px;
            border-radius: 40px;
            font-size: 1.1rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-top: 2rem;
            cursor: pointer;
            width: 100%;
        }

        /* MODALS */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 20, 10, 0.6);
            backdrop-filter: blur(4px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 2000;
        }

        .modal-card {
            background: white;
            max-width: 500px;
            width: 90%;
            border-radius: 48px;
            padding: 2.5rem;
            box-shadow: 0 30px 60px rgba(0, 40, 20, 0.6);
        }

        .modal-card h3 {
            font-size: 1.8rem;
            color: #154e38;
            margin-bottom: 2rem;
        }

        .modal-card .input-wrapper {
            margin: 1.5rem 0;
        }

        .modal-actions {
            display: flex;
            gap: 16px;
            margin-top: 2rem;
        }

        .modal-card button {
            flex: 1;
            padding: 14px;
            border-radius: 40px;
            font-weight: 600;
            border: none;
            cursor: pointer;
        }

        .modal-save {
            background: #0f6b4b;
            color: white;
        }

        .modal-cancel {
            background: #e0eae5;
            color: #154e38;
        }

        /* PROFILE ACTION BUTTONS */
        .profile-action-btn {
            background: #1a7a5a;
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
            transition: all 0.2s;
        }

        .profile-action-btn:hover {
            background: #135c44;
            transform: scale(1.1);
        }

        .signout-profile-btn {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, #c04242 0%, #a03636 100%);
            color: white;
            border: none;
            border-radius: 40px;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: all 0.3s;
        }

        .signout-profile-btn:hover {
            background: linear-gradient(135deg, #a03636 0%, #8b2e2e 100%);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(192, 66, 66, 0.3);
        }