/* ========================================
   UTOx402 Dashboard — LIGHT MODE (BINANCE YELLOW)
======================================== */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
html { height: 100%; }
body {
    font-family: Monospace;
    background: #f8f9fa;
    color: #222;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.main-content { flex: 1; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* TYPOGRAPHY */
h1, h2, h3, h4 { font-family: 'Orbitron', monospace; color: #F0B90B; }
h1 { font-size: 1.5rem; font-weight: 900; margin: 0; line-height: 1.1; }
h2 { font-size: 2.2rem; text-align: center; margin: 3rem 0 2rem; }

/* DASHBOARD TITLE + WELCOME */
.dashboard-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}
.dashboard-title p {
    font-size: 1.2rem;
    color: #555;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* HEADER */
.header { 
    padding: 1.2rem 0; 
    position: sticky; 
    top: 0; 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid #e0e0e0; 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    color: #F0B90B; 
    text-decoration: none; 
    font-weight: 800; 
    font-size: 1.5rem; 
}
.logo img { 
    width: 38px; 
    height: 38px; 
    border-radius: 8px; 
    border: 2px solid #F0B90B; 
}
.nav-desktop { display: flex; gap: 2rem; align-items: center; }
.nav-desktop a { 
    color: #333; 
    text-decoration: none; 
    font-weight: 500; 
    transition: color 0.3s; 
}
.nav-desktop a:hover { color: #F0B90B; }

/* HAMBURGER - MOBILE ONLY */
.hamburger { 
    display: none; 
    flex-direction: column; 
    gap: 5px; 
    background: none; 
    border: none; 
    cursor: pointer; 
    padding: 8px; 
    z-index: 1001; 
}
.hamburger span { 
    width: 28px; 
    height: 3px; 
    background: #F0B90B; 
    border-radius: 3px; 
    transition: all 0.3s ease; 
    box-shadow: 0 0 8px rgba(240, 185, 11, 0.4); 
    transform-origin: center; 
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scale(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* MOBILE OVERLAY */
.mobile-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(12px);
    transform: translateX(100%); 
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
    z-index: 999; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 2rem;
    opacity: 0; 
    visibility: hidden;
}
.mobile-overlay.active { transform: translateX(0); opacity: 1; visibility: visible; }
.mobile-nav { 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
    text-align: center; 
    width: 100%; 
    max-width: 300px; 
}
.mobile-nav a { 
    color: #333; 
    font-size: 1.3rem; 
    text-decoration: none; 
    padding: 1rem; 
    border-bottom: 1px solid #ddd; 
    transition: color 0.3s; 
}
.mobile-nav a:hover { color: #F0B90B; }
.btn-mobile { 
    background: linear-gradient(135deg, #F3D34A, #F0B90B); 
    color: #000; 
    padding: 1rem; 
    border-radius: 8px; 
    font-weight: 600; 
    text-align: center; 
    text-decoration: none; 
    display: block; 
    margin-top: 1rem; 
    transition: all 0.3s; 
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.3);
}
.btn-mobile:hover { 
    background: linear-gradient(135deg, #F0B90B, #e6a800); 
    transform: translateY(-2px); 
    box-shadow: 0 6px 16px rgba(240, 185, 11, 0.4);
}

/* ICON BUTTONS */
.btn-icon {
    background: linear-gradient(135deg, #F3D34A, #F0B90B);
    color: #000; 
    width: 44px; 
    height: 44px; 
    border-radius: 12px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.1rem;
    cursor: pointer; 
    transition: all 0.3s; 
    border: none;
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.3);
}
.btn-icon:hover { 
    background: linear-gradient(135deg, #F0B90B, #e6a800); 
    transform: translateY(-2px); 
    box-shadow: 0 6px 16px rgba(240, 185, 11, 0.4); 
}

/* WALLET DISPLAY */
.wallet-display {
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    background: rgba(240, 185, 11, 0.1);
    color: #F0B90B; 
    font-family: 'Orbitron', monospace; 
    font-weight: 600; 
    font-size: 0.9rem;
    padding: 0.6rem 1rem; 
    border-radius: 12px; 
    border: 1px solid rgba(240, 185, 11, 0.3);
    cursor: pointer; 
    transition: all 0.3s; 
    white-space: nowrap;
}
.wallet-display:hover { 
    background: rgba(240, 185, 11, 0.2); 
    border-color: #F0B90B; 
    box-shadow: 0 0 0 2px rgba(240, 185, 11, 0.15);
}

/* DASHBOARD TOP */
.dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 3rem 0 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}
.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* WALLET CONNECTED - 3 KOLOM */
.wallet-connected {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
}

/* INVOICES CONTROLS */
.invoices-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0 1.5rem;
    align-items: center;
    justify-content: space-between;
}
.search-box {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 400px;
}
.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #F0B90B;
    font-size: 1rem;
}
.search-box input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    color: #222;
    font-family: Monospace;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}
.search-box input:focus {
    border-color: #F0B90B;
    box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.2);
    background: #fff;
}
.search-box input::placeholder { color: #888; }

#status-filter {
    background: #fff;
    color: #222;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    font-family: Monospace;
    font-size: 1rem;
    min-width: 160px;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}
#status-filter:focus {
    border-color: #F0B90B;
    box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.2);
}
#status-filter option { background: #fff; color: #222; }

/* INVOICES TABLE */
#invoices-container { 
    margin-top: 1rem; 
    overflow-x: auto; 
    border-radius: 12px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
#invoices-container table { 
    width: 100%; 
    min-width: 900px; 
    border-collapse: collapse; 
    background: #fff; 
    border: 1px solid #eee; 
}
#invoices-container th, #invoices-container td { 
    padding: 1.2rem 1rem; 
    text-align: left; 
    border-bottom: 1px solid #eee; 
    color: #333; 
}
#invoices-container th { 
    background: linear-gradient(135deg, #F3D34A, #F0B90B); 
    font-weight: 600; 
    color: #000; 
    position: sticky; 
    top: 0; 
    z-index: 10; 
}
#invoices-container tbody tr:hover { background: #fffbe6; }
#invoices-container a { 
    color: #F0B90B; 
    text-decoration: none; 
    font-family: monospace; 
    font-size: 0.9rem; 
}
#invoices-container a:hover { text-decoration: underline; }

.status-badge { 
    padding: 0.4rem 0.8rem; 
    border-radius: 20px; 
    font-size: 0.85rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    border: 1px solid; 
}
.status-badge.pending { 
    background: rgba(255, 193, 7, 0.15); 
    color: #d48f00; 
    border-color: #ffc107; 
}
.status-badge.paid { 
    background: rgba(40, 167, 69, 0.15); 
    color: #1e7e34; 
    border-color: #28a745; 
}
.status-badge.expired { 
    background: rgba(220, 53, 69, 0.15); 
    color: #c82333; 
    border-color: #dc3545; 
}

.empty-state { 
    text-align: center; 
    padding: 4rem 2rem; 
    background: #fff; 
    border-radius: 12px; 
    border: 1px solid #eee; 
    color: #666; 
    margin-top: 2rem; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.empty-state i { 
    font-size: 4rem; 
    color: #ddd; 
    margin-bottom: 1.5rem; 
    display: block; 
}
.empty-state h3 { 
    color: #F0B90B; 
    font-size: 1.8rem; 
    margin-bottom: 1rem; 
}
.empty-state p { 
    margin-bottom: 2rem; 
    font-size: 1.1rem; 
}

/* MODAL */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.5); 
    align-items: center; 
    justify-content: center; 
    padding: 2rem; 
}
.modal.show { display: flex; }
.modal-content { 
    background: #fff; 
    padding: 2.5rem; 
    border-radius: 12px; 
    text-align: center; 
    max-width: 450px; 
    width: 100%; 
    border: 1px solid #eee; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.modal-actions { 
    display: flex; 
    justify-content: center; 
    gap: 1rem; 
    margin-top: 1.5rem; 
}
.btn-danger, .btn-secondary { 
    padding: 0.7rem 1.5rem; 
    border-radius: 8px; 
    font-weight: 600; 
    border: none; 
    cursor: pointer; 
    transition: all 0.3s; 
}
.btn-danger { 
    background: #ff4d4d; 
    color: #fff; 
}
.btn-danger:hover { 
    background: #ff3333; 
    transform: translateY(-2px); 
}
.btn-secondary { 
    background: #f1f1f1; 
    color: #333; 
    border: 1px solid #ddd; 
}
.btn-secondary:hover { 
    background: #F0B90B; 
    color: #000; 
    border-color: #F0B90B; 
}

/* FOOTER */
.footer { 
    margin-top: auto; 
    text-align: center; 
    padding: 3rem 0; 
    border-top: 1px solid #eee; 
    color: #666; 
    font-size: 0.9rem; 
}
.footer a { 
    color: #F0B90B; 
    text-decoration: none; 
}
.footer a:hover { text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hamburger { display: flex !important; }
    .nav-desktop { display: none !important; }
    h1 { font-size: 1.5rem; }
    .dashboard-top { flex-direction: column; text-align: center; align-items: center; }
    .dashboard-title { align-items: center; text-align: center; }
    .dashboard-title p { font-size: 1.1rem; }
    .dashboard-actions { width: 100%; justify-content: center; }
    .wallet-connected { gap: 1.5rem; }
    .wallet-display { width: 100%; max-width: 300px; justify-self: center; }
    .btn-icon { width: 52px; height: 52px; font-size: 1.2rem; }
    .invoices-controls { flex-direction: column; align-items: stretch; }
    .search-box, #status-filter { width: 100%; max-width: none; }
    #invoices-container table { min-width: 700px; }
    #invoices-container th, #invoices-container td { padding: 0.8rem 0.6rem; font-size: 0.9rem; }
}
@media (max-width: 480px) {
    .btn-icon { width: 48px; height: 48px; font-size: 1.1rem; }
    #invoices-container table { min-width: 600px; }
}