/* assets/css/customer-account.css */

/* --- LAYOUT UTAMA --- */
.customer-dashboard {
    background-color: var(--bg-body);
    color: var(--text-main);
    padding: 3rem 0;
    min-height: 80vh; /* Agar tidak terlalu pendek */
}

.customer-dashboard h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    border-bottom: none; /* Hapus garis default h2 jika ada */
}

.account-intro {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.account-layout {
    display: grid;
    grid-template-columns: 240px 1fr; /* Sidebar 240px, Sisanya Konten */
    gap: 2rem;
    align-items: start;
}

/* --- SIDEBAR MENU PELANGGAN --- */
.account-menu {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    position: sticky;
    top: 100px; /* Sticky saat scroll */
}

.account-menu a {
    display: flex;
    align-items: center;
    padding: 0.9rem 1rem;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.account-menu a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateX(5px);
}

.account-menu a.active {
    background: linear-gradient(90deg, rgba(0, 176, 255, 0.15) 0%, transparent 100%);
    color: var(--brand-blue);
    border-left: 3px solid var(--brand-blue);
    border-radius: 4px 8px 8px 4px;
}

.account-menu a[href*="logout"] {
    margin-top: 1rem;
    border-top: 1px solid var(--border);
    border-radius: 0;
    padding-top: 1.5rem;
    color: #ff4444;
}
.account-menu a[href*="logout"]:hover {
    background: none;
    color: #ff6666;
}

/* --- KONTEN KANAN (CARD) --- */
.account-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.account-content h3 {
    margin-top: 0;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

/* --- TABEL PESANAN --- */
.order-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
    font-size: 0.95rem;
}

.order-table th {
    text-align: left;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
    background-color: rgba(255,255,255,0.02);
}

.order-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--border);
    color: #e0e0e0;
}

.order-table tr:last-child td { border-bottom: none; }
.order-table tr:hover { background-color: rgba(255,255,255,0.02); }

/* --- STATUS BADGES --- */
.status-badge {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-menunggu-pembayaran { background: rgba(243, 156, 18, 0.15); color: #f39c12; border: 1px solid rgba(243, 156, 18, 0.3); }
.status-diverifikasi { background: rgba(0, 176, 255, 0.15); color: #00b0ff; border: 1px solid rgba(0, 176, 255, 0.3); }
.status-dikerjakan { background: rgba(255, 0, 157, 0.15); color: #ff009d; border: 1px solid rgba(255, 0, 157, 0.3); }
.status-selesai { background: rgba(46, 204, 113, 0.15); color: #2ecc71; border: 1px solid rgba(46, 204, 113, 0.3); }
.status-diambil { background: rgba(149, 165, 166, 0.15); color: #bdc3c7; border: 1px solid rgba(149, 165, 166, 0.3); }

/* --- BUTTONS --- */
.btn-detail {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--brand-blue);
    color: var(--brand-blue);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-detail:hover {
    background: var(--brand-blue);
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 176, 255, 0.3);
}

/* --- DETAIL GRID (Layout Detail) --- */
.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.detail-section h4 {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

/* Upload Box Style */
.upload-box {
    background: rgba(0,0,0,0.2);
    border: 2px dashed var(--border);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 850px) {
    .account-layout { grid-template-columns: 1fr; } /* Stack sidebar ke atas */
    .account-menu { position: static; margin-bottom: 2rem; }
    .detail-grid { grid-template-columns: 1fr; }
    .order-table { display: block; overflow-x: auto; }
}