/* ===== RIWAYAT PESANAN STYLES ===== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* ===== HEADER STYLES ===== */
.header {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    color: #2e7d32;
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo p {
    color: #666;
    font-size: 0.9rem;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover, 
.nav-menu a.active {
    color: #2e7d32;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ===== BUTTON STYLES ===== */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-outline {
    background: transparent;
    color: #2e7d32;
    border: 2px solid #2e7d32;
}

.btn-outline:hover {
    background: #2e7d32;
    color: white;
}

.btn-primary {
    background: #2e7d32;
    color: white;
}

.btn-primary:hover {
    background: #1b5e20;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    min-width: 120px;
    text-align: center;
}

/* ===== MAIN CONTENT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    color: #2e7d32;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* ===== ORDER CARDS ===== */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.order-info h3 {
    color: #2e7d32;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.order-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.order-details span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.order-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

/* ===== STATUS BADGES ===== */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-dikonfirmasi {
    background: #d4edda;
    color: #155724;
}

.status-diproses {
    background: #cce7ff;
    color: #004085;
}

.status-dikirim {
    background: #e2e3e5;
    color: #383d41;
}

.status-selesai {
    background: #d1ecf1;
    color: #0c5460;
}

.status-dibatalkan {
    background: #f8d7da;
    color: #721c24;
}

.payment-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.payment-berhasil {
    background: #d4edda;
    color: #155724;
}

.payment-pending {
    background: #fff3cd;
    color: #856404;
}

.payment-gagal {
    background: #f8d7da;
    color: #721c24;
}

/* ===== ORDER BODY ===== */
.order-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}

.order-summary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.total-price {
    color: #2e7d32;
    font-size: 1.5rem;
    font-weight: bold;
}

.order-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #999;
    margin-bottom: 2rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .order-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .order-status {
        align-items: flex-start;
    }

    .order-body {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .order-actions {
        flex-direction: row;
        justify-content: flex-start;
    }

    .page-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }
}