/* home/assets/css/dashboard.css */

* { margin: 0; padding: 0; box-sizing: border-box; border-radius: 0 !important; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fafafa; color: #4a4a4a; line-height: 1.5;
    display: flex; min-height: 100vh; -webkit-font-smoothing: antialiased;
}

/* =========================================
   SIDEBAR & MOBILE MENU
   ========================================= */
.sidebar {
    width: 260px; background-color: #ffffff; border-right: 1px solid #e0e0e0;
    display: flex; flex-direction: column; position: fixed; height: 100vh; z-index: 100;
    transition: transform 0.3s ease;
}
.sidebar-header { 
    padding: 24px; border-bottom: 1px solid #e0e0e0; 
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 1.1rem; font-weight: 700; color: #222222; letter-spacing: 1px; text-decoration: none; }

/* Close Button (Hidden on desktop) */
.close-menu-btn {
    display: none;
    background: none; border: none; font-size: 1.6rem;
    color: #222; cursor: pointer; padding: 0 8px;
}

.sidebar-nav { flex: 1; padding: 24px 0; display: flex; flex-direction: column; gap: 4px; }
.nav-item {
    padding: 14px 24px; font-size: 0.95rem; font-weight: 600; color: #666666;
    text-decoration: none; cursor: pointer; transition: all 0.2s;
}
.nav-item:hover, .nav-item.active { background-color: #f5f5f5; color: #222222; }

.sidebar-quick-links { padding: 0 24px 24px 24px; margin-bottom: 10px; }
.sidebar-quick-links span {
    display: block; font-size: 0.75rem; color: #999; text-transform: uppercase;
    font-weight: 700; letter-spacing: 1px; margin-bottom: 12px; margin-top: 10px;
}
.sidebar-quick-links a {
    display: block; padding: 12px 0; font-size: 1rem; font-weight: 600;
    color: #333; text-decoration: none; cursor: pointer; transition: color 0.2s;
}
.sidebar-quick-links a:hover { color: #000; }

.sidebar-footer { padding: 24px; margin-top: auto; }
.btn-logout { width: 100%; padding: 12px; background-color: transparent; border: 1px solid #d0d0d0; color: #333333; font-weight: 600; cursor: pointer; }
.btn-logout:hover { background-color: #f0f0f0; }

/* =========================================
   MAIN CONTENT & WALLET
   ========================================= */
.main-content { margin-left: 260px; flex: 1; padding: 40px; max-width: 1200px; }
.page-section { display: none; animation: fadeIn 0.3s ease; }
.page-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.section-title { font-size: 1.4rem; color: #222222; margin-bottom: 20px; font-weight: 700; letter-spacing: -0.5px; }

.wallet-card { background-color: #ffffff; border: 1px solid #e0e0e0; padding: 32px; margin-bottom: 24px; }
.wallet-label { font-size: 0.8rem; color: #888888; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.balance-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.balance-amount { font-size: 2.2rem; font-weight: 700; color: #222222; letter-spacing: -1px; }
.eye-btn { background: none; border: none; cursor: pointer; color: #888888; display: flex; align-items: center; justify-content: center; padding: 4px; }
.eye-btn:hover { color: #222222; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; border: 1px solid transparent; }
.btn-primary { background-color: #333333; color: #ffffff; }
.btn-primary:hover { background-color: #111111; }
.btn-primary:disabled { background-color: #666666; cursor: not-allowed; }

/* Horizontal Quick Actions */
.quick-actions { display: flex; flex-direction: row; gap: 12px; margin-bottom: 32px; }
.btn-quick {
    flex: 1; padding: 14px 12px; background-color: #ffffff; border: 1px solid #e0e0e0;
    font-size: 0.95rem; font-weight: 600; color: #333333; cursor: pointer;
    text-align: center; transition: all 0.2s; white-space: nowrap;
}
.btn-quick:hover { border-color: #333333; background-color: #fafafa; }

/* TABLES */
.table-container { background-color: #ffffff; border: 1px solid #e0e0e0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { background-color: #fafafa; padding: 16px; font-size: 0.75rem; text-transform: uppercase; color: #666666; font-weight: 600; border-bottom: 1px solid #e0e0e0; }
td { padding: 16px; font-size: 0.85rem; color: #333333; border-bottom: 1px solid #f0f0f0; }
.badge { display: inline-block; padding: 4px 8px; font-size: 0.75rem; font-weight: 600; background-color: #f0f0f0; color: #333333; }
.badge.success { background-color: #e6fffa; color: #008080; }
.badge.pending { background-color: #fffaf0; color: #b8860b; }

/* FORMS & MODALS */
.form-control {
    width: 100%; padding: 14px 16px; font-size: 0.95rem; color: #222222;
    background-color: #ffffff; border: 1px solid #333333; outline: none;
    -webkit-appearance: none; appearance: none; box-shadow: none !important;
}
.form-control:focus { border-color: #111111; }

.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); z-index: 1000;
    align-items: center; justify-content: center; backdrop-filter: blur(2px);
}
.modal-overlay.active { display: flex; }
.modal-box {
    background-color: #ffffff; width: 450px; max-width: 90%; padding: 32px;
    border: 1px solid #e0e0e0; animation: modalFade 0.2s ease;
}
@keyframes modalFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; border-bottom: 1px solid #e0e0e0; padding-bottom: 16px; }
.modal-header h2 { font-size: 1.2rem; font-weight: 700; color: #222222; }
.close-modal { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #666; }

/* TOASTS */
.toast {
    position: fixed; top: 20px; right: 20px; padding: 16px 24px;
    font-size: 0.85rem; font-weight: 600; z-index: 2000;
    border: 1px solid transparent; display: none; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.toast.show { display: block; }
.toast.success { background-color: #e6fffa; color: #008080; border-color: #b2f5ea; }
.toast.error { background-color: #fff0f0; color: #cc0000; border-color: #ffcccc; }

/* =========================================
   RESPONSIVE & MOBILE MENU (Drawer)
   ========================================= */
.mobile-header { display: none; background-color: #ffffff; border-bottom: 1px solid #e0e0e0; padding: 16px 24px; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 90;}

/* Mobile Backdrop (click to close) */
.mobile-backdrop {
    display: none;
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); z-index: 99;
}
.mobile-backdrop.active { display: block; }

@media (max-width: 900px) {
    body { flex-direction: column; }
    .mobile-header { display: flex; }
    
    .sidebar {
        transform: translateX(-100%); 
        width: 280px;
    }
    
    .sidebar.active { 
        transform: translateX(0); 
        box-shadow: 2px 0 10px rgba(0,0,0,0.1); 
    }
    
    /* Show close button on mobile */
    .close-menu-btn { display: block; }

    .main-content { margin-left: 0; padding: 24px; }
    .balance-amount { font-size: 1.8rem; }
}