/* =========================================================
   TRUSTONE CUSTOMER AREA
   File: public/css/customer-dashboard.css
   Notes:
   - Typography lebih ringan & premium
   - Bold hanya untuk angka/heading
   - Sidebar lebih calm & rapi
========================================================= */

.customer-page{
    padding: 26px 0;
}

/* Page header */
.customer-page-title{
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 12px;
    color: var(--text);
}

.customer-subtitle{
    color: var(--muted);
    font-weight: 400;
    font-size: 13px;
    margin: 0;
    line-height: 1.55;
}

/* Cards */
.cust-card{
    background: #fff;
    border: 1px solid rgba(2,6,23,.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.cust-card-body{
    padding: 20px;
}

.cust-card-header{
    padding: 16px 18px;
    border-bottom: 1px solid rgba(2,6,23,.06);
    background: rgba(2,6,23,.015);
}

/* Sidebar */
.customer-sidebar{
    position: sticky;
    top: 110px;
    border: 1px solid rgba(2,6,23,.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    background: #fff;
    overflow: hidden;
}

.customer-sidebar-top{
    padding: 18px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
}

.customer-sidebar-profile{
    display:flex;
    gap: 12px;
    align-items:center;
}

.customer-avatar{
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight: 700;
    font-size: 18px;
    background: rgba(255,255,255,.16);
    color: #fff;
    flex: 0 0 auto;
}

.customer-sidebar-name{
    font-weight: 600;
    letter-spacing: -.02em;
    margin: 0;
    line-height: 1.2;
}

.customer-sidebar-email{
    font-size: 12px;
    opacity: .9;
    margin: 2px 0 0;
    font-weight: 400;
}

.customer-sidebar-nav{
    padding: 14px;
    display:flex;
    flex-direction:column;
    gap: 6px;
}

.customer-sidebar-nav a{
    display:flex;
    align-items:center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 500;
    font-size: 14px;
    color: #0f172a;
    transition: var(--transition);
}

.customer-sidebar-nav a:hover{
    background: rgba(2,6,23,.035);
}

.customer-sidebar-nav a.active{
    background: rgba(255,210,0,.25);
    border: 1px solid rgba(255,155,0,.20);
    color: #0f172a;
}

/* Badge */
.customer-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(37,99,235,.10);
    color: var(--brand);
}

/* Logout button */
.customer-nav-btn{
    width: 100%;
    border: 0;
    background: transparent;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 500;
    font-size: 14px;
    color: #0f172a;
    display:flex;
    align-items:center;
    gap: 10px;
    transition: var(--transition);
}

.customer-nav-btn:hover{
    background: rgba(239,68,68,.08);
    color: #b91c1c;
}

/* Dashboard hero */
.cust-hero{
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color:#fff;
    border-radius: var(--radius-lg);
    padding: 18px 18px;
    box-shadow: 0 14px 35px rgba(29,78,216,.25);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 16px;
}

.cust-hero-title{
    margin: 0;
    font-weight: 600;
    letter-spacing: -.02em;
    font-size: 18px;
    line-height: 1.2;
}

.cust-hero-meta{
    margin-top: 6px;
    font-weight: 400;
    opacity: .92;
    font-size: 13px;
    line-height: 1.5;
}

.cust-hero-badge{
    display:inline-flex;
    align-items:center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}

/* Stats */
.cust-stats{
    display:grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

@media (max-width: 992px){
    .cust-stats{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cust-stat{
    background:#fff;
    border: 1px solid rgba(2,6,23,.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 16px;
}

.cust-stat-label{
    color: var(--muted);
    font-weight: 500;
    font-size: 12px;
    margin: 0 0 6px;
}

.cust-stat-value{
    margin: 0;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -.02em;
    color: var(--text);
}

.cust-stat-pill{
    display:inline-flex;
    align-items:center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
    background: rgba(37,99,235,.08);
    color: var(--brand);
}

/* Section title */
.cust-section{
    margin-top: 18px;
}
.cust-section-title{
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -.02em;
    margin: 0 0 12px;
}

/* Orders card */
.cust-order-card{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap: 16px;
    padding: 16px 18px;
    background:#fff;
    border-radius: 18px;
    border: 1px solid rgba(2,6,23,.06);
    box-shadow: 0 10px 28px rgba(2,6,23,.06);
    transition: .18s ease;
}

.cust-order-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(2,6,23,.12);
}

.cust-order-number{
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 4px;
}
.cust-order-date{
    color: var(--muted);
    font-weight: 400;
    font-size: 12px;
    margin: 0;
}

.cust-order-right{
    display:flex;
    align-items:center;
    gap: 12px;
    white-space: nowrap;
}

.cust-status{
    display:inline-flex;
    align-items:center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(2,6,23,.06);
    color: #334155;
}

.cust-status.pending{ background: rgba(245,158,11,.12); color:#b45309; }
.cust-status.processing{ background: rgba(37,99,235,.12); color:#1d4ed8; }
.cust-status.shipped{ background: rgba(34,197,94,.12); color:#15803d; }
.cust-status.completed{ background: rgba(34,197,94,.16); color:#166534; }
.cust-status.cancelled{ background: rgba(239,68,68,.14); color:#b91c1c; }

/* Layout container */
.cust-container{
    max-width: 1180px;
}
