/* ============================================================
   assets/css/customer.css — Stylesheet Pelanggan (Formal & Clean)
   ============================================================ */

/* ── Customer Page Wrapper ── */
.customer-page {
    min-height: 100vh;
    background: #f8fafc;
    padding: 80px 0 60px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #0f172a;
}
.customer-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}
.customer-wrap-sm {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Page Header ── */
.customer-header {
    margin-bottom: 32px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
}
.customer-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}
.customer-header p {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

/* ── Welcome Banner (Formal) ── */
.welcome-banner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}
.welcome-text h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.welcome-text p {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}
.welcome-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.welcome-actions .btn {
    font-size: 0.9rem;
    padding: 12px 24px;
    white-space: nowrap;
    font-weight: 700;
    border-radius: 10px;
}
.btn-primary-formal {
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #0f172a;
    transition: 0.2s;
}
.btn-primary-formal:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}
.btn-outline-formal {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    transition: 0.2s;
}
.btn-outline-formal:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

/* ── Stats Cards (Bento Style) ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
@media (min-width: 640px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
.stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: 0.2s;
}
.stat-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}
.stat-card .stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.stat-card .stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

/* ── Section Card (Data Table/List) ── */
.section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    margin-bottom: 32px;
    overflow: hidden;
}
.section-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
}
.section-card-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}
.section-card-header a {
    font-size: 0.9rem;
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}
.section-card-header a:hover { text-decoration: underline; }
.section-card-body { padding: 0; }

/* ── Order List Item (Clean & Formal) ── */
.order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    gap: 16px;
    transition: background 0.2s;
    flex-wrap: wrap;
}
.order-item:last-child { border-bottom: none; }
.order-item:hover { background: #f8fafc; }
.order-item-left { flex: 1; min-width: 0; }
.order-code {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}
.order-meta {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}
.order-item-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.order-total {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
}

/* ── Status Badges (Formal Colors) ── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}
.badge-diterima, 
.badge-diproses, 
.badge-dicuci, 
.badge-dikeringkan, 
.badge-finishing, 
.badge-siap_diambil, 
.badge-diantar_kurir { background: #f8fafc; color: #0f172a; border: 1px solid #e2e8f0; }
.badge-selesai       { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.badge-batal         { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* ── Dashboard & My Orders Helpers ── */
.order-card-wrap {
    background: white; border-radius: 16px; padding: 24px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); border: 1px solid #e2e8f0;
}
.order-card-header {
    display: flex; justify-content: space-between; align-items: center; flex-wrap:wrap; gap:12px;
    border-bottom: 1px solid #f1f5f9; padding-bottom: 16px; margin-bottom: 20px;
}
.order-card-body {
    display: flex; justify-content: space-between; align-items: center; flex-wrap:wrap; gap:20px;
    margin-bottom: 24px;
}
.order-card-actions {
    display: flex; gap: 10px; flex-wrap: wrap;
}
.action-card-inner {
    display: flex; align-items: center; gap: 20px;
}
.action-card-inner-sm {
    display: flex; flex-direction: column; align-items: center;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: #64748b;
}
.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}
.empty-state h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}
.empty-state p { font-size: 0.95rem; font-weight: 500; }

/* ── View Detail Link ── */
.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-view:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ── Profile Layout: Side-by-Side (Desktop) ── */
.profile-layout-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}
.profile-page-header {
    margin-bottom: 28px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
}
.profile-page-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}
.profile-page-header p {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}
/* Mobile: tampilkan header atas, sembunyikan header desktop */
.profile-header-desktop { display: none; }

/* ── Profile Two-Column Layout ── */
.profile-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

/* ── Profile Forms (Formal) ── */
.profile-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    overflow: hidden;
    margin-bottom: 24px;
}
.profile-card-header {
    padding: 24px 28px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}
.profile-card-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}
.profile-card-body { padding: 28px; }
.profile-form .form-group { margin-bottom: 20px; }
.profile-form .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.profile-form .form-input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #0f172a;
    outline: none;
    transition: all 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
}
.profile-form .form-input:focus {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}
.profile-submit {
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.profile-submit:hover { background: #1e293b; transform: translateY(-1px); }

/* ── Navbar Dropdown ── */
.nav-dropdown-wrap { position: relative; }
.navbar .logo-wrap { display: flex; align-items: center; }
.nav-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    transition: all 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.nav-user-btn:hover { background: #f8fafc; border-color: #cbd5e1; }
.nav-user-btn .avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}
.nav-user-btn .chevron { transition: transform 0.2s; flex-shrink: 0; color: #64748b; }
.nav-dropdown-wrap.open .chevron { transform: rotate(180deg); }

.nav-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    z-index: 999;
    overflow: hidden;
    display: none;
    animation: dropDown 0.2s ease both;
}
.nav-dropdown.show { display: block; }
@keyframes dropDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.nav-dropdown-user {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}
.nav-dropdown-user .dd-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}
.nav-dropdown-user .dd-email {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}
.nav-dropdown a, .nav-dropdown button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: 0.15s;
    font-family: inherit;
    text-decoration: none;
}
.nav-dropdown a:hover, .nav-dropdown button:hover { background: #f8fafc; color: #0f172a; }
.nav-dropdown .dd-divider { height: 1px; background: #e2e8f0; margin: 4px 0; }
.nav-dropdown .dd-logout { color: #dc2626; }
.nav-dropdown .dd-logout:hover { background: #fef2f2; color: #b91c1c; }

/* ── Responsive ── */
@media (max-width: 768px) {
    /* Profile Layout: stack atas-bawah di mobile */
    .profile-two-col {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .profile-layout-wrap { padding: 0 16px; }

    .welcome-banner { padding: 24px; flex-direction: column; align-items: flex-start; }
    .welcome-actions { width: 100%; }
    .welcome-actions .btn { flex: 1; justify-content: center; text-align: center; }
    .profile-card-body { padding: 20px; }

    .order-item { padding: 16px 20px; flex-direction: column; align-items: flex-start; }
    .order-item-right { width: 100%; justify-content: space-between; }
    .section-card-header { padding: 20px; }
    
    /* My Orders Responsive */
    .order-card-wrap { padding: 16px !important; }
    .order-card-header { flex-direction: row !important; align-items: center !important; justify-content: space-between !important; gap: 12px !important; }
    .order-card-header > div { flex-direction: column !important; align-items: flex-start !important; gap: 4px !important; }
    .order-card-body { flex-direction: column !important; align-items: flex-start !important; gap: 20px !important; }
    .order-card-actions { width: 100%; gap: 8px !important; justify-content: flex-end !important; }
    .order-card-method { width: 100% !important; display: flex !important; align-items: center !important; justify-content: space-between !important; border-top: 1px dashed #e2e8f0 !important; padding-top: 16px !important; margin-top: 4px !important; }
    
    .order-card-body-left { flex: 1; width: 100%; }
    .status-bayar-row { justify-content: space-between; width: 100%; }
    .transfer-alert-box { flex-direction: column !important; align-items: center !important; text-align: center !important; padding: 24px 20px !important; gap: 16px !important; }
    .transfer-alert-box .ta-content { display: flex; flex-direction: column; align-items: center; width: 100%; }
    .ta-icon { margin-bottom: 0; }
    .bca-account-box { flex-direction: column !important; align-items: center !important; text-align: center !important; gap: 12px !important; width: 100%; padding: 20px 12px !important; }
    .bca-account-box > div:last-child > div:first-child { font-size: 1.2rem !important; letter-spacing: 1px !important; }
    .bca-account-box > div:last-child > div:last-child { font-size: 0.75rem !important; word-break: break-word; line-height: 1.4; }
    .btn-unggah-tf { width: 100% !important; justify-content: center !important; }
    
    .mobile-btn-group { flex-direction: column !important; width: 100% !important; }
    .mobile-btn-group > button, .mobile-btn-group > a { width: 100% !important; justify-content: center !important; }
    
    /* Dashboard Action Cards Responsive */
    .action-card-inner { flex-direction: column !important; text-align: center; gap: 16px !important; }

    /* Mobile Navbar User Profile */
    .nav-user-btn span:not(.avatar), .nav-user-btn .chevron { display: none !important; }
    .nav-user-btn { padding: 0; border: none; background: transparent; }
    .nav-user-btn:hover { background: transparent; }
    .nav-user-btn .avatar {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #64748b;
        color: white;
        border: 2px solid white;
        box-shadow: 0 0 0 2px #e2e8f0;
        font-size: 1.1rem;
    }
    
    /* Push nav-right closer to hamburger menu */
    .navbar .nav-right { margin-left: auto; margin-right: 8px; }

    /* Utilities */
    .hide-mob { display: none !important; }
    
    /* Bottom Navigation Specifics for Mobile */
    .bottom-nav { display: block; }
    .customer-footer { padding-bottom: 110px !important; }
}

/* ── Bottom Navigation Bar ── */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    border-top: 1px solid #e2e8f0;
}
.bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 65px;
    padding: 0 10px;
}
.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #94a3b8;
    flex: 1;
    height: 100%;
    gap: 4px;
    transition: color 0.2s;
}
.bottom-nav a i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}
.bottom-nav a span {
    font-size: 0.7rem;
    font-weight: 600;
}
.bottom-nav a.active {
    color: #b91c1c;
}
.bottom-nav a.active i {
    color: #b91c1c;
}

/* ── Card Styles (from layanan.php) ── */
.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.card-img {
    height: 200px;
    background-size: 75%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #ffffff;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}
.card-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
}
.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
}
.card-cat {
    font-size: 0.75rem;
    color: #3b82f6;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.card-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}
.card-footer {
    margin-top: auto;
}
.card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 12px;
}
.card-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background: #0f172a;
    border: 1px solid #0f172a;
    color: white;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}
.card-btn:hover, .card-btn:active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}
