/* ========================================
   UTOx402 Dashboard — FULL FINAL
   + Welcome Text + Search + Filter + Responsive
======================================== */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
html { height: 100%; }
body {
    font-family: Monospace;
    background: #0f0f0f;
    color: #e0e0e0;
    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: #17f53d; }
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: #aaa;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* HEADER */
.header { padding: 1.2rem 0; position: sticky; top: 0; background: rgba(15,15,15,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid #333; z-index: 1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; color: #17f53d; text-decoration: none; font-weight: 800; font-size: 1.5rem; }
.logo img { width: 38px; height: 38px; border-radius: 8px; border: 2px solid #17f53d; }
.nav-desktop { display: flex; gap: 2rem; align-items: center; }
.nav-desktop a { color: #e0e0e0; text-decoration: none; font-weight: 500; transition: color 0.3s; }
.nav-desktop a:hover { color: #17f53d; }

/* 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: #17f53d; border-radius: 3px; transition: all 0.3s ease; box-shadow: 0 0 8px rgba(23,245,61,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(0,0,0,0.95); 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: #fff; font-size: 1.3rem; text-decoration: none; padding: 1rem; border-bottom: 1px solid #333; transition: color 0.3s; }
.mobile-nav a:hover { color: #17f53d; }
.btn-mobile { background: #17f53d; 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; }
.btn-mobile:hover { background: #12cc3a; transform: translateY(-2px); }

/* ICON BUTTONS */
.btn-icon {
    background: #17f53d; 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;
}
.btn-icon:hover { background: #12cc3a; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(23,245,61,0.3); }

/* WALLET DISPLAY */
.wallet-display {
    display: flex; align-items: center; gap: 0.5rem; background: rgba(23,245,61,0.1);
    color: #17f53d; font-family: 'Orbitron', monospace; font-weight: 600; font-size: 0.9rem;
    padding: 0.6rem 1rem; border-radius: 12px; border: 1px solid rgba(23,245,61,0.3);
    cursor: pointer; transition: all 0.3s; white-space: nowrap;
}
.wallet-display:hover { background: rgba(23,245,61,0.2); border-color: #17f53d; }

/* 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: #17f53d;
    font-size: 1rem;
}
.search-box input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    color: #e0e0e0;
    font-family: Monospace;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}
.search-box input:focus {
    border-color: #17f53d;
    box-shadow: 0 0 0 2px rgba(23,245,61,0.2);
    background: #222;
}
.search-box input::placeholder { color: #666; }

#status-filter {
    background: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #333;
    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: #17f53d;
    box-shadow: 0 0 0 2px rgba(23,245,61,0.2);
}
#status-filter option { background: #1a1a1a; color: #e0e0e0; }

/* INVOICES TABLE */
#invoices-container { margin-top: 1rem; overflow-x: auto; border-radius: 12px; }
#invoices-container table { width: 100%; min-width: 900px; border-collapse: collapse; background: #1a1a1a; border: 1px solid #333; }
#invoices-container th, #invoices-container td { padding: 1.2rem 1rem; text-align: left; border-bottom: 1px solid #333; color: #e0e0e0; }
#invoices-container th { background: #111; font-weight: 600; color: #17f53d; position: sticky; top: 0; z-index: 10; }
#invoices-container tbody tr:hover { background: #222; }
#invoices-container a { color: #17f53d; 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.2); color: #ffc107; border-color: #ffc107; }
.status-badge.paid { background: rgba(40,167,69,0.2); color: #28a745; border-color: #28a745; }
.status-badge.expired { background: rgba(220,53,69,0.2); color: #dc3545; border-color: #dc3545; }

.empty-state { text-align: center; padding: 4rem 2rem; background: #1a1a1a; border-radius: 12px; border: 1px solid #333; color: #aaa; margin-top: 2rem; }
.empty-state i { font-size: 4rem; color: #333; margin-bottom: 1.5rem; display: block; }
.empty-state h3 { color: #17f53d; 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.8); align-items: center; justify-content: center; padding: 2rem; }
.modal.show { display: flex; }
.modal-content { background: #1a1a1a; padding: 2.5rem; border-radius: 12px; text-align: center; max-width: 450px; width: 100%; border: 1px solid #333; }
.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: #333; color: #e0e0e0; border: 1px solid #555; }
.btn-secondary:hover { background: #444; border-color: #17f53d; color: #17f53d; }

/* FOOTER */
.footer { margin-top: auto; text-align: center; padding: 3rem 0; border-top: 1px solid #333; color: #888; font-size: 0.9rem; }
.footer a { color: #17f53d; 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 { grid-template-columns: 1fr; 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; }
}