* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: system-ui, -apple-system, 'Segoe UI', 'Pyidaungsu', sans-serif; background-color: #0b1121; color: #e2e8f0; min-height: 100vh; position: relative; overflow-x: hidden; }

/* Background Glowing Orbs for Glassmorphism feel */
.glow-orb { position: fixed; border-radius: 50%; filter: blur(100px); z-index: -1; opacity: 0.4; }
.orb-blue { top: -10%; left: -10%; width: 500px; height: 500px; background: #0088ff; }
.orb-red { bottom: -10%; right: -10%; width: 400px; height: 400px; background: #ff0055; }

.app-container { max-width: 1400px; margin: 0 auto; padding: 1.5rem; position: relative; z-index: 1; }

/* Glass Panels */
.glass-panel { background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); border-radius: 1rem; }
.glass-input { background: rgba(0, 0, 0, 0.2) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; color: #fff !important; padding: 0.6rem 1rem; border-radius: 0.5rem; outline: none; transition: all 0.3s ease; }
.glass-input:focus { border-color: #00f3ff !important; box-shadow: 0 0 10px rgba(0, 243, 255, 0.2); }

/* Dropdown Options Styling */
select.glass-input option { background-color: #0b1121; color: #e2e8f0; padding: 0.5rem; }
select.glass-input:focus > option:checked { background: #0088ff !important; color: #fff; }

/* Header */
.header { padding: 1.5rem; margin-bottom: 1.5rem; text-align: center; background: linear-gradient(135deg, rgba(0, 136, 255, 0.1), rgba(255, 0, 85, 0.05)); }
.header h1 { font-size: 1.5rem; margin-bottom: 0.25rem; color: #fff; text-shadow: 0 0 10px rgba(0, 243, 255, 0.5); }
.subtitle { font-size: 0.875rem; color: #94a3b8; }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; padding: 0.75rem; }
.tab-btn { padding: 0.6rem 1.2rem; border: 1px solid transparent; background: transparent; border-radius: 0.5rem; cursor: pointer; font-weight: 500; color: #cbd5e1; transition: all 0.3s; }
.tab-btn:hover { background: rgba(255, 255, 255, 0.05); }
.tab-btn.active { background: rgba(0, 243, 255, 0.1); border: 1px solid #00f3ff; color: #00f3ff; text-shadow: 0 0 8px rgba(0, 243, 255, 0.5); box-shadow: 0 0 15px rgba(0, 243, 255, 0.2); }

/* Tab Content */
.tab-content { display: none; }
.tab-content.active { display: block; }
.card { padding: 1.5rem; margin-bottom: 1.5rem; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 1rem; }

/* Buttons */
.btn { padding: 0.6rem 1.2rem; border-radius: 0.5rem; cursor: pointer; font-weight: 500; transition: all 0.3s ease; text-align: center; }
.btn-neon-blue { background: transparent; border: 1px solid #00f3ff; color: #00f3ff; box-shadow: 0 0 10px rgba(0, 243, 255, 0.2); }
.btn-neon-blue:hover { background: #00f3ff; color: #000; box-shadow: 0 0 20px rgba(0, 243, 255, 0.6); }
.btn-neon-red { background: transparent; border: 1px solid #ff0055; color: #ff0055; box-shadow: 0 0 10px rgba(255, 0, 85, 0.2); }
.btn-neon-red:hover { background: #ff0055; color: #fff; box-shadow: 0 0 20px rgba(255, 0, 85, 0.6); }
.btn-neon-yellow { background: transparent; border: 1px solid #eab308; color: #eab308; box-shadow: 0 0 10px rgba(234, 179, 8, 0.2); }
.btn-neon-yellow:hover { background: #eab308; color: #000; box-shadow: 0 0 20px rgba(234, 179, 8, 0.6); }
.btn-secondary { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.2); }
.btn-danger { background: rgba(239, 68, 68, 0.1); border: 1px solid #ef4444; color: #ef4444; }
.btn-danger:hover { background: #ef4444; color: #fff; box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); }
.btn-small { padding: 0.4rem 0.8rem; font-size: 0.85rem; }

.action-btn-group { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.action-btn-group button { flex: 1; min-width: 80px; }

/* Filter Row & Forms */
.filter-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-group { flex: 1; min-width: 180px; }
.filter-group label, .form-group label { display: block; font-size: 0.85rem; color: #cbd5e1; margin-bottom: 0.4rem; }
.filter-group input, .filter-group select, .form-group input, .form-group select { width: 100%; }
.month-filter-box { display: flex; align-items: center; gap: 0.8rem; background: rgba(0,0,0,0.2); padding: 0.5rem 1rem; border-radius: 0.5rem; border: 1px solid rgba(255,255,255,0.05); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
textarea.glass-input { resize: vertical; min-height: 80px; width: 100%; }

/* Grid & Settings */
.accounts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.add-setting { display: flex; gap: 0.5rem; }
.settings-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.settings-list { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Modal */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); justify-content: center; align-items: center; z-index: 1000; overflow-y: auto; padding: 1rem; }
.modal-content { width: 100%; max-width: 450px; padding: 1.5rem; border-radius: 1rem; margin: auto; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); }
::-webkit-scrollbar-thumb { background: rgba(0, 243, 255, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #00f3ff; }

@media (max-width: 640px) {
    .tabs { flex-direction: column; }
    .filter-group { min-width: 100%; }
    .month-filter-box { width: 100%; justify-content: space-between; }
}

/* ==================== CUSTOM TOAST NOTIFICATIONS ==================== */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none; /* Clicks pass through */
}

.custom-toast {
    background: rgba(11, 17, 33, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid #00f3ff; /* Default Neon Blue */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transform: translateX(150%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.4s ease;
    pointer-events: auto;
}

.custom-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.custom-toast.error {
    border-left-color: #ff0055; /* Neon Red for Errors */
}
.pagination-container { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.page-btn { padding: 0.5rem 1rem; border-radius: 0.3rem; border: 1px solid rgba(0, 243, 255, 0.3); background: rgba(0,0,0,0.3); color: #fff; cursor: pointer; }
.page-btn.active { background: #00f3ff; color: #000; font-weight: bold; }

/* ==========================================
   📱 MOBILE VIEW SPECIFIC STYLES (Responsive)
   ========================================== */

@media screen and (max-width: 768px) {
    /* ၁။ ဘေးဘောင်များကို ဖုန်းနှင့်အဆင်ပြေအောင် ချုံ့ခြင်း */
    body {
        padding: 10px !important;
        font-size: 14px;
    }

    /* ၂။ Tab ခလုတ်များကို ဖုန်းမှာ Scroll ဆွဲလို့ရအောင် လုပ်ခြင်း */
    .tab-container {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch; /* iPhone တွင် Smooth ဖြစ်စေရန် */
    }
    
    .tab-btn {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* ၃။ Input နှင့် Select Box များကို ဖုန်းတွင် 100% အပြည့်ယူစေခြင်း */
    .filter-container, .form-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    input, select, button {
        width: 100% !important;
        box-sizing: border-box;
        padding: 12px 10px; /* လက်ဖြင့် နှိပ်ရလွယ်စေရန် ပိုကျယ်ပေးခြင်း */
    }

    /* ၄။ ကတ် (Card) များကို ဖုန်းတွင် ၁ ခုတည်းပေါ်စေခြင်း */
    .accounts-grid, .stats-grid {
        display: grid;
        grid-template-columns: 1fr !important; /* ၁ တန်းတည်းသာ ပြမည် */
        gap: 15px;
    }

    /* ၅။ ရောင်းပြီးစာရင်း (Table) များကို ဖုန်းတွင် ကတ် (Card) ပုံစံပြောင်းပြခြင်း */
    table {
        display: block;
        width: 100%;
    }
    thead {
        display: none; /* ဖုန်းတွင် Table Header များကို ဖျောက်ထားမည် */
    }
    tbody {
        display: block;
        width: 100%;
    }
    tr {
        display: block;
        background: rgba(0, 0, 0, 0.3) !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        margin-bottom: 15px;
        padding: 10px;
    }
    td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 5px !important;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
        font-size: 0.9rem;
        text-align: right;
    }
    td::before {
        /* Table Cell တစ်ခုချင်းစီရှေ့မှာ ခေါင်းစဉ်လေးတွေ တပ်ပေးခြင်း */
        content: attr(data-label);
        font-weight: bold;
        color: #94a3b8;
        text-align: left;
        margin-right: 15px;
    }
    td:last-child {
        border-bottom: none;
        justify-content: center;
        gap: 10px;
    }

    /* ၆။ သတိပေးချက် (Toast/Modal) များ ဖုန်းနှင့် ကွက်တိဖြစ်စေရန် */
    .custom-toast {
        width: 90% !important;
        left: 5% !important;
        right: 5% !important;
        bottom: 20px !important;
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 95% !important;
        padding: 15px !important;
    }
}

@media screen and (max-width: 768px) {
    /* Menu ခလုတ်ကို ဖုန်းတွင် ပေါ်စေရန် */
    #mobile-menu-toggle {
        display: block !important;
    }

    /* မူလက Menu အားလုံးကို ဖျောက်ထားမည် */
    .tabs {
        display: none !important; 
        flex-direction: column !important;
        background: rgba(11, 17, 33, 0.98);
        padding: 15px;
        border-radius: 10px;
        border: 1px solid rgba(0, 243, 255, 0.3);
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
        gap: 10px;
        /* Animation လေးနဲ့ ပေါ်လာစေရန် */
        animation: fadeIn 0.3s ease-in-out;
    }

    /* Menu နှိပ်လိုက်သောအခါ ပေါ်လာစေရန် Class */
    .tabs.show-menu {
        display: flex !important;
    }

    /* Menu ခလုတ်တစ်ခုချင်းစီ၏ အရွယ်အစား */
    .tab-btn {
        width: 100% !important;
        text-align: center;
        padding: 12px !important;
        font-size: 1rem !important;
    }
    
    /* Animation Keyframe */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* (သင့်ရဲ့ အခြား Mobile CSS Table ပြင်ထားတဲ့ Code တွေကို ဒီအောက်မှာ ဆက်ထားပါ) */
}

/* ==================== LOADING SCREEN ==================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0b1121; /* App ရဲ့ နောက်ခံအရောင်နှင့် တူအောင်ထားသည် */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999; /* အရှေ့ဆုံးမှာ ပေါ်နေစေရန် */
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 243, 255, 0.2);
    border-top: 4px solid #00f3ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-screen p {
    color: #00f3ff;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    letter-spacing: 0.5px;
}

/* ==================== FOOTER ==================== */
.app-footer {
    text-align: center;
    padding: 2rem 1rem 1rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.app-footer p {
    color: #94a3b8; /* မီးခိုးပြာရောင် */
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.app-footer .neon-text {
    color: #00f3ff; /* Neon Cyan အရောင် */
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.6); /* လင်းနေသော effect */
    letter-spacing: 0.5px;
}