/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0f;
    color: #ffffff;
    scrollbar-width: thin;
    scrollbar-color: #7c3aed #0f172a;
    /* Mobile မှာ အလျားလိုက် Extra Scroll မထွက်အောင် ထိန်းရန် */
    overflow-x: hidden; 
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #7c3aed;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6d28d9;
}

/* Login Background */
.login-bg {
    background: radial-gradient(circle at 30% 10%, rgba(124, 58, 237, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 70% 90%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
                #0a0a0f;
    min-height: 100vh;
}

/* Glass Card */
.glass-card {
    background: rgba(15, 15, 25, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.5rem;
}

/* Responsive Table Wrapper (Table ဘက်မထွက်စေရန်) */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0.75rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap; /* Mobile မှာ စာတန်းတွေ ခေါက်မသွားဘဲ Horizontal Scroll ရအောင် */
}

/* Navigation Links */
.nav-link {
    display: flex;
    align-items: center;
    min-height: 44px; /* Touch target size for mobile */
    padding: 10px 16px;
    border-radius: 8px;
}

.nav-link.active {
    background: rgba(124, 58, 237, 0.15);
    color: #a78bfa;
    border-left: 3px solid #7c3aed;
}

/* Transition */
.transition-all {
    transition: all 0.3s ease;
}

/* Table hover */
tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #7c3aed;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    max-width: 400px;
}

.toast-success {
    background: rgba(16, 185, 129, 0.9);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.toast-error {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.toast-info {
    background: rgba(59, 130, 246, 0.9);
    color: white;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Mobile & Tablet Responsive Adjustments
   ========================================== */
@media (max-width: 768px) {
    /* Layout & Sidebar Fix */
    aside {
        width: 100% !important;
        height: auto !important;
        position: relative !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding: 12px 16px !important;
    }

    main {
        margin-left: 0 !important;
        padding: 16px !important; /* Mobile မှာ Padding ကို နည်းနည်း လျှော့ပေးထားသည် */
    }

    /* Glass Card Mobile Adjustments */
    .glass-card {
        border-radius: 1rem;
        padding: 16px !important;
    }

    /* Toast Notification Mobile Centering */
    .toast {
        right: 16px;
        left: 16px;
        bottom: 16px;
        max-width: calc(100% - 32px);
        text-align: center;
    }

    /* Table text size for smaller screen */
    th, td {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
}