        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: 'Noto Sans Bengali', sans-serif;
            background: #f0f2f5;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
        }

        /* Phone Container */
        .phone-container {
            width: 100%;
            max-width: 420px;
            height: 100vh;
            max-height: 850px;
            background: #f4f6fb;
            position: relative;
            overflow: hidden;
            box-shadow: 0 0 60px rgba(0,0,0,0.15);
        }

        /* ===== SCREENS ===== */
        .screen {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
            overflow-y: auto;
            overflow-x: hidden;
        }

        .screen.hidden-right {
            transform: translateX(100%);
            opacity: 0;
        }

        .screen.hidden-left {
            transform: translateX(-100%);
            opacity: 0;
        }

        .screen.active {
            transform: translateX(0);
            opacity: 1;
        }

        /* ===== LOGIN SCREEN ===== */
        #loginScreen {
            background: linear-gradient(145deg, #0f0c29, #302b63, #24243e);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 40px 28px;
        }

        .login-logo-area {
            text-align: center;
            margin-bottom: 40px;
            animation: fadeInDown 0.8s ease;
        }

        .login-logo-area .logo-circle {
            width: 90px;
            height: 90px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 18px;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
        }

        .login-logo-area .logo-circle i {
            font-size: 40px;
            color: #fff;
        }

        .login-logo-area h1 {
            color: #fff;
            font-size: 26px;
            font-weight: 700;
            margin-bottom: 6px;
        }

        .login-logo-area p {
            color: rgba(255,255,255,0.55);
            font-size: 14px;
            font-weight: 400;
        }

        .login-form {
            width: 100%;
            animation: fadeInUp 0.8s ease 0.2s both;
        }

        .input-group-custom {
            position: relative;
            margin-bottom: 18px;
        }

        .input-group-custom .input-icon {
            position: absolute;
            left: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(255,255,255,0.4);
            font-size: 18px;
            z-index: 2;
            transition: color 0.3s;
        }

        .input-group-custom input {
            width: 100%;
            padding: 16px 18px 16px 52px;
            background: rgba(255,255,255,0.08);
            border: 1.5px solid rgba(255,255,255,0.1);
            border-radius: 14px;
            color: #fff;
            font-size: 15px;
            font-family: 'Noto Sans Bengali', sans-serif;
            outline: none;
            transition: all 0.3s;
            backdrop-filter: blur(10px);
        }

        .input-group-custom input::placeholder {
            color: rgba(255,255,255,0.35);
        }

        .input-group-custom input:focus {
            border-color: #667eea;
            background: rgba(255,255,255,0.12);
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
        }

        .input-group-custom input:focus ~ .input-icon {
            color: #667eea;
        }

        .password-toggle {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(255,255,255,0.4);
            cursor: pointer;
            font-size: 18px;
            z-index: 2;
            background: none;
            border: none;
            padding: 4px;
        }

        .remember-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 28px;
        }

        .remember-row label {
            color: rgba(255,255,255,0.5);
            font-size: 13px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .remember-row label input[type="checkbox"] {
            accent-color: #667eea;
            width: 16px;
            height: 16px;
        }

        .remember-row a {
            color: #667eea;
            font-size: 13px;
            text-decoration: none;
            font-weight: 500;
        }

        .btn-login {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            border: none;
            border-radius: 14px;
            color: #fff;
            font-size: 17px;
            font-weight: 600;
            font-family: 'Noto Sans Bengali', sans-serif;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
            position: relative;
            overflow: hidden;
        }

        .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
        }

        .btn-login:active {
            transform: scale(0.97);
        }

        .btn-login .spinner {
            display: none;
            width: 22px;
            height: 22px;
            border: 3px solid rgba(255,255,255,0.3);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
        }

        .btn-login.loading .btn-text { display: none; }
        .btn-login.loading .spinner { display: inline-block; }

        .login-footer {
            margin-top: 32px;
            text-align: center;
            color: rgba(255,255,255,0.4);
            font-size: 13px;
            animation: fadeInUp 0.8s ease 0.4s both;
        }

        .login-footer a {
            color: #667eea;
            font-weight: 600;
            text-decoration: none;
        }

        /* App Bar */
        .app-bar {
            background: linear-gradient(135deg, #667eea, #764ba2);
            padding: 16px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
        }

        .app-bar-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .app-bar-logo {
            width: 40px;
            height: 40px;
            background: rgba(255,255,255,0.2);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
        }

        .app-bar-logo i {
            font-size: 22px;
            color: #fff;
        }

        .app-bar-title {
            color: #fff;
            font-size: 19px;
            font-weight: 700;
        }

        .app-bar-right {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .app-bar-btn {
            width: 38px;
            height: 38px;
            background: rgba(255,255,255,0.15);
            border: none;
            border-radius: 12px;
            color: #fff;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            backdrop-filter: blur(10px);
            position: relative;
        }

        .app-bar-btn:active {
            transform: scale(0.9);
        }

        .notif-badge {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 9px;
            height: 9px;
            background: #ff4757;
            border-radius: 50%;
            border: 2px solid #764ba2;
        }

        /* App Content */
        .app-content {
            padding: 20px 16px;
            padding-bottom: 100px;
        }

        /* Welcome Card */
        .welcome-card {
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 20px;
            padding: 22px;
            color: #fff;
            margin-bottom: 24px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 8px 30px rgba(102, 126, 234, 0.25);
        }

        .welcome-card::before {
            content: '';
            position: absolute;
            top: -30px;
            right: -30px;
            width: 120px;
            height: 120px;
            background: rgba(255,255,255,0.08);
            border-radius: 50%;
        }

        .welcome-card::after {
            content: '';
            position: absolute;
            bottom: -40px;
            left: -20px;
            width: 100px;
            height: 100px;
            background: rgba(255,255,255,0.05);
            border-radius: 50%;
        }

        .welcome-card h3 {
            font-size: 14px;
            font-weight: 400;
            opacity: 0.85;
            margin-bottom: 4px;
        }

        .welcome-card h2 {
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 14px;
        }

        .welcome-stats {
            display: flex;
            gap: 16px;
        }

        .welcome-stat {
            background: rgba(255,255,255,0.15);
            padding: 10px 16px;
            border-radius: 12px;
            backdrop-filter: blur(10px);
        }

        .welcome-stat .num {
            font-size: 20px;
            font-weight: 700;
        }

        .welcome-stat .label {
            font-size: 11px;
            opacity: 0.8;
        }

        /* Quick Actions */
        .section-title {
            font-size: 17px;
            font-weight: 700;
            color: #1a1a2e;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section-title i {
            color: #667eea;
        }

        .quick-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
            margin-bottom: 24px;
        }

        .quick-card {
            background: #fff;
            border-radius: 18px;
            padding: 22px 16px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            border: 1.5px solid #f0f0f5;
            position: relative;
            overflow: hidden;
        }

        .quick-card:active {
            transform: scale(0.95);
        }

        .quick-card:hover {
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
            transform: translateY(-3px);
        }

        .quick-card .icon-wrap {
            width: 56px;
            height: 56px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 12px;
            font-size: 26px;
        }

        .quick-card h4 {
            font-size: 15px;
            font-weight: 600;
            color: #1a1a2e;
            margin-bottom: 4px;
        }

        .quick-card p {
            font-size: 12px;
            color: #999;
            margin: 0;
        }

        .qc-staff .icon-wrap { background: #e8f0fe; color: #4285f4; }
        .qc-building .icon-wrap { background: #fce8e6; color: #ea4335; }
        .qc-attendance .icon-wrap { background: #e6f4ea; color: #34a853; }
        .qc-expense .icon-wrap { background: #fef7e0; color: #fbbc04; }

        /* Recent Activity */
        .activity-list {
            background: #fff;
            border-radius: 18px;
            padding: 6px;
            border: 1.5px solid #f0f0f5;
        }

        .activity-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px;
            border-radius: 14px;
            transition: background 0.2s;
        }

        .activity-item:not(:last-child) {
            border-bottom: 1px solid #f5f5f8;
        }

        .activity-item:active {
            background: #f8f9fd;
        }

        .activity-icon {
            width: 44px;
            height: 44px;
            border-radius: 13px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }

        .ai-blue { background: #e8f0fe; color: #4285f4; }
        .ai-green { background: #e6f4ea; color: #34a853; }
        .ai-red { background: #fce8e6; color: #ea4335; }
        .ai-yellow { background: #fef7e0; color: #fbbc04; }

        .activity-info { flex: 1; }
        .activity-info h5 {
            font-size: 14px;
            font-weight: 600;
            color: #1a1a2e;
            margin: 0 0 3px;
        }
        .activity-info p {
            font-size: 12px;
            color: #999;
            margin: 0;
        }

        .activity-time {
            font-size: 11px;
            color: #bbb;
            white-space: nowrap;
        }

        /* ===== BOTTOM NAV ===== */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 420px;
            background: #fff;
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding: 8px 8px 12px;
            border-top: 1px solid #f0f0f5;
            z-index: 999;
            box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
        }

        @supports (padding-bottom: env(safe-area-inset-bottom)) {
            .bottom-nav {
                padding-bottom: calc(12px + env(safe-area-inset-bottom));
            }
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3px;
            cursor: pointer;
            padding: 6px 14px;
            border-radius: 14px;
            transition: all 0.3s;
            border: none;
            background: none;
            position: relative;
        }

        .nav-item i {
            font-size: 22px;
            color: #aab0c6;
            transition: all 0.3s;
        }

        .nav-item span {
            font-size: 11px;
            font-weight: 500;
            color: #aab0c6;
            font-family: 'Noto Sans Bengali', sans-serif;
            transition: all 0.3s;
        }

        .nav-item.active {
            background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
        }

        .nav-item.active i {
            color: #667eea;
            transform: translateY(-2px);
        }

        .nav-item.active span {
            color: #667eea;
            font-weight: 700;
        }

        .nav-item:active {
            transform: scale(0.9);
        }

        .nav-indicator {
            position: absolute;
            top: -1px;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 3px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 0 0 4px 4px;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .nav-item.active .nav-indicator {
            opacity: 1;
        }

        /* List Cards */
        .list-card {
            background: #fff;
            border-radius: 16px;
            padding: 16px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 14px;
            border: 1.5px solid #f0f0f5;
            transition: all 0.2s;
            cursor: pointer;
        }

        .list-card:active {
            transform: scale(0.98);
            background: #f8f9fd;
        }

        .list-avatar {
            width: 48px;
            height: 48px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            flex-shrink: 0;
        }

        .list-info { flex: 1; }
        .list-info h5 {
            font-size: 15px;
            font-weight: 600;
            color: #1a1a2e;
            margin: 0 0 3px;
        }
        .list-info p {
            font-size: 12px;
            color: #999;
            margin: 0;
        }

        .list-badge {
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
        }

        .badge-active {
            background: #e6f4ea;
            color: #34a853;
        }

        .badge-info {
            background: #e6e9f2;
            color: #333ca5;
        }

        .badge-inactive {
            background: #f2e6e8;
            color: #a53333;
        }

        .badge-pending {
            background: #fef7e0;
            color: #f59e0b;
        }

        /* FAB */
        .fab {
            position: fixed;
            bottom: 90px;
            right: 24px;
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            border: none;
            border-radius: 18px;
            color: #fff;
            font-size: 24px;
            cursor: pointer;
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            z-index: 50;
        }

        .fab:active {
            transform: scale(0.9) rotate(90deg);
        }

        /* Animations */
        @keyframes fadeInDown {
            from { opacity: 0; transform: translateY(-30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        @keyframes slideUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .animate-item {
            animation: slideUp 0.5s ease both;
        }

        /* Toast */
        .toast-msg {
            position: absolute;
            bottom: 150px;
            left: 50%;
            transform: translateX(-50%) translateY(20px);
            background: #1a1a2e;
            color: #fff;
            padding: 12px 24px;
            border-radius: 12px;
            font-size: 13px;
            font-weight: 500;
            z-index: 999;
            opacity: 0;
            transition: all 0.3s;
            white-space: nowrap;
        }

        .toast-msg.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        /* Expense / Attendance special */
        .stat-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-bottom: 20px;
        }

        .stat-row-3 {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 12px;
            margin-bottom: 20px;
        }

        .stat-box {
            background: #fff;
            border-radius: 16px;
            padding: 18px;
            text-align: center;
            border: 1.5px solid #f0f0f5;
        }

        .stat-box .stat-num {
            font-size: 24px;
            font-weight: 800;
            color: #1a1a2e;
        }

        .stat-box .stat-label {
            font-size: 12px;
            color: #999;
            margin-top: 2px;
        }

        /* Scrollbar */
        ::-webkit-scrollbar { width: 0; }

        .form-card {
            background: #fff;
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 3px 8px rgba(0,0,0,0.1);
            max-width: 500px;
            margin: auto;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            margin-bottom: 15px;
        }

        .form-group label {
            font-weight: 500;
            margin-bottom: 5px;
            color: #333;
        }

        .form-group input,
        .form-group select {
            padding: 10px 12px;
            border: 1px solid #ccc;
            border-radius: 8px;
            font-size: 15px;
            outline: none;
            transition: border 0.2s;
        }

        .form-group input:focus,
        .form-group select:focus {
            border-color: #4285f4;
        }

        .btn-submit {
            width: 100%;
            padding: 12px;
            background-color: #4285f4;
            color: #fff;
            font-weight: 600;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.2s;
        }

        .btn-submit:hover {
            background-color: #3367d6;
        }

        .img-thumbnail{
            width: 50px; 
            height: 50px; 
            background-color: #e8f0fe;
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #4285f4;
            font-size: 1.5rem;
        }

        .border {
            border: 1.5px solid #f0f0f5 !important;
        }

        .text-xs{
            font-size: 10px;
        }