/* --- File: baseurl/assets/css/merchant.css --- */
/* --- Digunakan untuk halaman-halaman dalam direktori /merchant/ --- */

/* --- 1. Variabel CSS Dasar --- */
:root {
    /* Warna Utama - Disesuaikan dengan header.php */
    --primary-blue: #2563eb; /* Biru utama dari header.php .btn-primary-custom */
    --primary-blue-hover: #1d4ed8; /* Hover biru utama */
    --primary-blue-alt: #3b82f6; /* Biru alternatif, digunakan di beberapa gradient dashboard */
    
    --success-green: #10b981; /* Hijau untuk sukses */
    --warning-orange: #f59e0b; /* Oranye untuk peringatan */
    --danger-red: #ef4444; /* Merah untuk bahaya/error */
    --info-cyan: #0ea5e9; /* Cyan untuk info */
    
    --dark-slate: #1e293b; /* Abu-abu gelap */
    --light-gray: #f1f5f9; /* Abu-abu terang */
    --border-light: #e2e8f0; /* Warna border terang */
    --text-muted: #64748b; /* Warna teks muted */
    
    --border-radius: 12px; /* Border radius default */
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); /* Bayangan card default */
    --transition-speed: 0.2s; /* Kecepatan transisi */
    
    /* === VARIABEL TAMBAHAN UNTUK KONSISTENSI === */
    --primary-color: var(--primary-blue); /* Gunakan warna utama yang sudah ada */
    --secondary-color: #6c757d;
    --success-color: var(--success-green);
    --warning-color: var(--warning-orange);
    --danger-color: var(--danger-red);
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* --- 2. Reset & Global Styles --- */
body {
    background-color: #f6fbf8;
    font-family: 'Inter', sans-serif; /* Pastikan font Inter dimuat di header */
    padding-top: 0px; /* Sesuai dengan navbar fixed-top di header.php */
    color: var(--dark-color);
}

/* === STYLE TAMBAHAN UNTUK LANDING PAGE === */
.landing-container {
    max-width: 550px;
    margin: 0 auto 1.5rem auto;
    width: 100%;
}

.merchant-header img {
    max-height: 80px;
    object-fit: contain;
}

/* Container navbar untuk desktop */
.navbar-container {
    max-width: 550px;
    margin: 0 auto;
    width: 100%;
}

/* Di perangkat mobile, navbar akan 100% lebar */
@media (max-width: 576px) {
    .navbar-container {
        max-width: 100%;
    }
}

/* --- 3. Layout & Grid --- */
.main-content {
  margin: 0 auto;      /* biar di tengah */
  max-width: 95%;      /* supaya tidak full */
}

@media (min-width: 992px) {
    .main-content {
        padding: 1rem 1.5rem;
    }
}

/* --- 4. Typography --- */
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    color: var(--dark-slate);
    font-weight: 600;
}

.text-muted {
    color: var(--text-muted) !important;
}

.small, small {
    font-size: 0.875rem;
}

.fw-medium {
    font-weight: 500;
}

/* === STYLE TAMBAHAN UNTUK TEKS === */
.muted-small {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* --- 5. Cards --- */
.stat-card,
.kpi-card,
.card,
.card-product,
.info-box {
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
}

/* === CARD PRODUK (TAMBAHAN) === */
.card-product {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 6px 18px rgba(30,41,59,0.06);
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s;
}

.card-product:hover {
    transform: translateY(-3px);
}

.card-product img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    display: block;
}

/* === PRODUK TANPA GAMBAR (TAMBAHAN) === */
.no-image {
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    height: 180px; /* Sesuai dengan tinggi gambar produk */
}

/* Stat Cards (Dashboard Summary) - Jika masih digunakan */
.stat-card {
    color: #fff;
    padding: 1.25rem;
}
.stat-primary {
    background: linear-gradient(135deg, var(--primary-blue-alt), #2563eb);
}
.stat-accent {
    background: linear-gradient(135deg, #06b6d4, #0ea5a4);
}
.stat-plain {
    background: #fff;
    color: #111827;
    padding: 1rem;
}

/* KPI Cards (Dashboard & Wallet) */
.kpi-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

.kpi-card {
    flex: 1 1 calc(25% - 1rem);
    min-width: 200px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.5rem;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.kpi-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.kpi-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.kpi-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.kpi-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
    margin-top: auto; /* Dorong ke bawah card */
}

.kpi-meta .up {
    color: var(--success-green);
}

.kpi-meta .down {
    color: var(--danger-red);
}

/* Tooltip Style - Tambahkan style ini untuk info saldo */
.tooltip-icon {
    color: var(--text-muted);
    cursor: help;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}
/* Tooltip Text (Custom CSS Tooltip) */
.tooltip-text {
    position: relative;
    display: inline-block;
}

.tooltip-text .tooltiptext {
    visibility: hidden;
    width: 250px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 0.5rem;
    position: absolute;
    z-index: 1000;
    bottom: 125%; /* Tooltip di atas elemen */
    left: 50%;
    margin-left: -125px; /* Gunakan setengah dari lebar untuk center */
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    font-weight: normal;
    white-space: normal; /* Izinkan wrap teks */
}

/* Panah tooltip */
.tooltip-text .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%; /* Panah di bawah tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip-text:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Responsive Tooltip */
@media (max-width: 576px) {
    .tooltip-text .tooltiptext {
        width: 200px;
        margin-left: -100px;
    }
}


.kpi-spark {
    flex: 0 0 36px !important;
    height: 36px !important;
    max-height: 36px !important;
    width: 100% !important;
    display: block;
}

/* Responsive KPI Cards */
@media (max-width: 1199px) {
    .kpi-card {
        flex: 1 1 calc(33.333% - 1rem);
    }
}
@media (max-width: 991px) {
    .kpi-card {
        flex: 1 1 calc(50% - 1rem);
    }
}
@media (max-width: 575px) {
    .kpi-card {
        flex: 1 1 100%;
    }
    .kpi-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .kpi-icon {
        align-self: flex-end;
    }
}

/* --- 6. Buttons --- */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    border: 1px solid transparent; /* Tambahkan border default transparan */
}

/* Tombol Utama - Disesuaikan dengan header.php */
.btn-primary,
.btn-primary-custom { /* Kelas dari header.php */
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.btn-primary:hover,
.btn-primary-custom:hover {
    background-color: var(--primary-blue-hover);
    border-color: var(--primary-blue-hover);
    transform: translateY(-1px);
    color: white;
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: rgba(37, 99, 235, 0.1); /* var(--primary-blue) dengan opacity */
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-success {
    background-color: var(--success-green);
    border-color: var(--success-green);
    color: white;
}

.btn-success:hover {
    background-color: #059669; /* var(--success-green) lebih gelap */
    border-color: #059669;
    color: white;
}

.btn-outline-success {
    color: var(--success-green);
    border-color: var(--success-green);
    background-color: transparent;
}

.btn-outline-success:hover {
    background-color: rgba(16, 185, 129, 0.1); /* var(--success-green) dengan opacity */
    border-color: var(--success-green);
    color: var(--success-green);
}

.btn-warning {
    background-color: var(--warning-orange);
    border-color: var(--warning-orange);
    color: white;
}

.btn-warning:hover {
    background-color: #d97706; /* var(--warning-orange) lebih gelap */
    border-color: #d97706;
    color: white;
}

.btn-danger {
    background-color: var(--danger-red);
    border-color: var(--danger-red);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626; /* var(--danger-red) lebih gelap */
    border-color: #dc2626;
    color: white;
}

.btn-outline-danger {
    color: var(--danger-red);
    border-color: var(--danger-red);
    background-color: transparent;
}

.btn-outline-danger:hover {
    background-color: rgba(239, 68, 68, 0.1); /* var(--danger-red) dengan opacity */
    border-color: var(--danger-red);
    color: var(--danger-red);
}

/* === STYLE TAMBAHAN UNTUK TOMBOL === */
.btn-round {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.quick-actions .btn {
    min-width: 120px;
    margin-bottom: 0.5rem;
}

@media (max-width: 767px) {
    .quick-actions {
        width: 100%;
    }
    .quick-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* --- 7. Navigation & Sidebar --- */
/* Sidebar Umum */
.sidebar {
    min-height: calc(100vh - 72px); /* Kurangi tinggi navbar */
    border-right: 1px solid var(--border-light);
    background-color: #ffffff;
    padding: 1rem 0;
    position: sticky;
    top: 72px; /* Sesuai dengan tinggi navbar */
    overflow-y: auto; /* Tambahkan scroll jika konten sidebar panjang */
    overscroll-behavior: contain; /* Mencegah overscroll yang memengaruhi halaman utama */
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    z-index: 1000;
}

/* Link Dashboard di Header Sidebar */
.sidebar-dashboard-link {
    color: #006d77; /* Warna teks dari sidebar asli */
    text-decoration: none;
    display: block;
    transition: background-color var(--transition-speed) ease;
    border-radius: 0.5rem;
    margin: 0 0.75rem 0.75rem 0.75rem; /* Tambahkan margin untuk estetika */
    padding: 1rem !important; /* Override padding inline */
}
.sidebar-dashboard-link:hover {
    background-color: var(--light-gray);
    text-decoration: none;
    color: #006d77; /* Pastikan warna teks tidak berubah */
}

/* Logo dan Placeholder Logo */
.sidebar-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid var(--border-light);
    transition: border-color var(--transition-speed) ease;
}
.sidebar-logo:hover {
    border-color: var(--primary-blue);
}
.sidebar-logo-placeholder {
    width: 60px;
    height: 60px;
    /* Warna background dan teks sudah didefinisikan di HTML */
}

/* === DEFAULT LOGO (TAMBAHAN) === */
.default-logo {
    background-color: #e9ecef;
    color: #495057;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    width: 60px;
    height: 60px;
}

/* Badge Status Toko */
.sidebar-status-badge {
    /* Style dasar badge sudah dari Bootstrap dan variabel CSS */
    /* Anda bisa menyesuaikan padding atau font-size jika perlu */
    font-size: 0.75rem;
}

/* Card Menu di Sidebar */
.sidebar-card {
    border: none;
    background-color: #ffffff;
    transition: all var(--transition-speed) ease;
    margin: 0 0.75rem 0.75rem 0.75rem; /* Tambahkan margin horizontal dan bawah */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* Bayangan halus default */
    border-radius: 0.5rem;
    overflow: hidden;
}
.sidebar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Bayangan lebih dalam saat hover */
}

/* Link di dalam Card Menu */
.sidebar-card-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.75rem !important; /* Override padding inline */
    color: inherit;
    text-decoration: none;
    border-radius: calc(var(--border-radius) - 2px); /* Sedikit lebih kecil dari card */
    transition: background-color var(--transition-speed) ease;
}
.sidebar-card-link:hover {
    background-color: rgba(0,0,0,0.02);
    text-decoration: none;
    color: inherit;
}
/* Gunakan atribut data-color untuk menentukan warna teks */
.sidebar-card-link[data-color="teal-400"] { color: #00afb9; }
.sidebar-card-link[data-color="cyan-700"] { color: #006d77; }
.sidebar-card-link[data-color="green-700"] { color: #155724; }
.sidebar-card-link[data-color="teal-500"] { color: #20c997; }
.sidebar-card-link[data-color="purple-600"] { color: #6610f2; }
.sidebar-card-link[data-color="olive-500"] { color: #6a994e; }
.sidebar-card-link[data-color="slate-900"] { color: #000000; }

/* Notifikasi Pending untuk Kelola Users */
.sidebar-pending-notification {
    position: relative;
}
.sidebar-pending-badge {
    position: absolute;
    top: 15px;
    right: 5px;
    background: var(--danger-red);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.4);
    z-index: 10; /* Pastikan badge di atas link */
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
.sidebar-pending-icon {
    color: var(--danger-red);
    /* margin-right: 5px; - Diatur via class .me-1 dari Bootstrap */
    animation: merchant-pulse 2s infinite;
}

@keyframes merchant-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.sidebar::-webkit-scrollbar {
    width: 6px; /* Lebar scrollbar vertikal */
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05); /* Track abu-abu transparan */
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2); /* Thumb abu-abu tua transparan */
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.05);
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3); /* Thumb lebih gelap saat hover */
}

/* --- Merchant sidebar & mobile bottom nav styles (move to merchant.css) --- */

/* Mobile bottom nav */
.mobile-bottom-nav {
    background-color: #ffffff;
    border-top: 1px solid #e9ecef;
    z-index: 1030;
    padding: 0;
    padding-bottom: 4rem; /* Sesuaikan jika tinggi navbar berubah */
}

/* Wrapper untuk scrolling horizontal */
.mobile-bottom-nav-wrapper {
    width: 100%;
    overflow-x: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
}
.mobile-bottom-nav-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Container item menu */
.mobile-bottom-nav-items {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding: 0.5rem 0.25rem;
    min-width: max-content; /* Penting agar konten tidak wrap */
}

/* Style untuk setiap link/item menu */
.mobile-bottom-nav .nav-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.7rem;
    transition: color 0.2s ease;
    flex-shrink: 0;
    padding: 0.5rem;
    text-align: center;
    min-width: 60px;
}

.mobile-bottom-nav .nav-link:hover,
.mobile-bottom-nav .nav-link.active {
    color: #0d6efd;
}

.mobile-bottom-nav .nav-link i {
    font-size: 1rem;
    display: block;
    margin: 0 auto 0.25rem;
}

/* Badge notifikasi di mobile bottom nav */
.mobile-bottom-nav .nav-link .badge {
    position: absolute;
    top: 0;
    left: 100%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    padding: 0.25em 0.4em;
}

/* Hide sidebar on mobile and give extra bottom padding to main content */
@media (max-width: 991.98px) {
    .sidebar {
        display: none;
    }
    .main-content {
        padding-bottom: 5rem; /* Sesuaikan dengan tinggi navbar */
    }
}

/* --- 8. Tables --- */
.table {
    font-size: 0.9rem;
    margin-bottom: 0; /* Karena berada dalam card */
}

.table th {
    font-weight: 600;
    color: #374151;
    border-top: none;
    border-bottom: 1px solid var(--border-light);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-sm th,
.table-sm td {
    padding: 0.6rem;
}

.table-responsive {
    border-radius: var(--border-radius);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-light th {
    background-color: #f8fafc;
}

/* --- 9. Badges --- */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 600;
    border-radius: 0.375rem; /* ~6px */
    font-size: 0.75rem;
}

/* Badges Status Kustom */
.badge-status {
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-pending {
    background-color: #fff3cd;
    color: #856404;
}

.badge-completed,
.badge-approved {
    background-color: #d4edda;
    color: #155724;
}

.badge-cancelled,
.badge-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-processing {
    background-color: #cce7ff;
    color: #0d6efd; /* Bootstrap primary blue */
}

/* Badges dari Bootstrap dengan Opacity (seperti di wallet) */
.badge.bg-success.bg-opacity-10 {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: var(--success-green) !important;
}
.badge.bg-danger.bg-opacity-10 {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: var(--danger-red) !important;
}

/* === STATUS BADGES (TAMBAHAN) === */
.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-paid {
    background-color: #d4edda;
    color: #155724;
}

.status-processing {
    background-color: #cce5ff;
    color: #004085;
}

.status-shipped {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

/* --- 10. Forms & Inputs --- */
.form-control,
.form-select {
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-light);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25); /* var(--primary-blue) */
    outline: 0;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: #334155;
}

.input-group-text {
    background-color: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

/* === STYLE TAMBAHAN UNTUK FORM === */
.form-control {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #ced4da;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* --- 11. Alerts --- */
.alert {
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-link {
    font-weight: 600;
}

.d-flex.align-items-center .alert {
    margin-bottom: 0;
    /* padding: 0.75rem 1rem; */ /* Opsional: sesuaikan padding jika perlu */
}

/* --- 12. Pagination --- */
/* Pagination Wrapper */
.pagination-wrapper {
    width: 100%;
    text-align: center;
    padding: 1.5rem 0;
}

/* Pagination List */
.pagination-wrapper .pagination {
    display: inline-flex;
    gap: 0.2rem; /* Gunakan gap kecil karena margin sudah diatur di page-link */
    align-items: center;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
    justify-content: center; /* Untuk memastikan pagination berada di tengah */
}

/* Pagination Link */
.pagination-wrapper .page-link {
    padding: 0.5rem 0.85rem;
    min-width: 40px;
    text-align: center;
    border-radius: 8px;
    margin: 0 3px; /* Memberikan jarak horizontal antar tombol */
    border: none; /* Menghilangkan border default */
    color: #6c757d; /* Warna teks default */
    background: #fff; /* Latar belakang default */
    box-shadow: 0 1px 2px rgba(15,23,42,0.02); /* Bayangan halus */
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 600;
}

/* Hover state untuk link yang bisa diklik */
.pagination-wrapper .page-link:hover {
    background-color: rgba(37, 99, 235, 0.1); /* var(--primary-blue) transparan */
    color: var(--primary-blue);
}

/* Disabled state */
.pagination-wrapper .page-item.disabled .page-link {
    opacity: 0.6;
    pointer-events: none;
}

/* Active state */
.pagination-wrapper .page-item.active .page-link {
    background-color: var(--primary-blue); /* Latar belakang tombol aktif */
    border-color: var(--primary-blue); /* Border tombol aktif */
    color: #fff; /* Warna teks tombol aktif */
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12); /* Bayangan untuk tombol aktif */
}

/* Responsive untuk layar kecil */
@media (max-width: 480px) {
    .pagination-wrapper .page-link {
        padding: 0.4rem 0.7rem;
        min-width: 36px;
        font-size: 0.85rem; /* Optional: kecilkan font */
    }
}

/* --- 13. Charts --- */
.chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
    min-height: 220px;
}

#salesChart {
    width: 100% !important;
    height: 300px !important;
}

/* --- 14. Miscellaneous --- */
.rounded-circle {
    border-radius: 50% !important;
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.d-flex.flex-wrap.gap-2 {
    gap: 0.5rem;
}

.text-end {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

/* === INFO BOX (TAMBAHAN) === */
.info-box {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 6px 18px rgba(30,41,59,0.06);
    margin-bottom: 1.5rem;
}

/* === SECTION TITLE (TAMBAHAN) === */
.section-title {
    position: relative;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #212529;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

/* === VIEW CONTAINER (TAMBAHAN) === */
.view-container {
    display: none;
}

.view-container.active {
    display: block;
}

/* --- Style Khusus untuk merchant_products.php --- */
/* Hover Row untuk Tabel Produk */
.product-table-row {
    transition: background-color 0.2s ease;
}
.product-table-row:hover {
    background-color: rgba(13, 110, 253, 0.03); /* Biru Bootstrap dengan opacity rendah */
    transform: scale(1.005); /* Sedikit efek zoom saat hover */
}

/* Gambar Produk dalam Tabel */
.product-table-image {
    /* Style dasar sudah dari kelas .rounded dan atribut width/height */
    /* Anda bisa menambahkan border atau shadow jika perlu */
    border: 1px solid var(--border-light); /* Tambahkan border halus jika diinginkan */
    transition: transform 0.2s ease; /* Efek transisi saat hover */
}

/* Info Kuota Produk */
.quota-info {
    background: #f8f9fa; /* Warna latar belakang terang */
    border-left: 4px solid var(--primary-blue); /* Border kiri biru utama */
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* Bayangan halus opsional */
}
.quota-info .progress {
    height: 6px;
    margin: 8px 0;
    border-radius: 3px; /* Progress bar rounded */
    background-color: #e9ecef; /* Latar belakang progress bar */
}
.quota-info .progress-bar {
    /* Warna progress bar sudah diatur oleh kelas Bootstrap bg-primary/bg-danger */
    border-radius: 3px;
}
.quota-info .badge {
    font-size: 0.9rem;
    padding: 0.5em 0.8em;
    /* Warna badge sudah diatur oleh kelas Bootstrap bg-success/bg-danger */
}

/* Tombol Aksi Kecil (jika digunakan di tempat lain) */
.btn-action-sm {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
    border: 1px solid transparent; /* Tambahkan border default */
}
.btn-action-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Contoh tombol khusus, sesuaikan dengan kebutuhan */
.btn-approve-sm {
    background-color: var(--success-green);
    border-color: var(--success-green);
    color: white;
}
.btn-approve-sm:hover {
    background-color: #059669; /* var(--success-green) lebih gelap */
    border-color: #059669;
    color: white;
}

/* --- Style Khusus untuk merchant_edit_product.php & merchant_add_product.php --- */

/* Gambar yang sudah ada dalam form edit/add */
.product-edit-existing-image {
    width: 100%;
    /* height: auto; dan max-height akan membuat gambar responsif dan mencegah overflow */
    height: auto;
    max-height: 150px; /* Batasi tinggi maksimum */
    object-fit: cover; /* Gambar terpotong untuk memenuhi area, tetap proporsional */
    border-bottom: 1px solid var(--border-light);
    /* Tambahkan border radius jika diinginkan untuk konsistensi dengan card */
    border-radius: calc(var(--border-radius) - 2px) calc(var(--border-radius) - 2px) 0 0;
}

/* --- 15. Breadcrumb --- */
.breadcrumb {
    background-color: transparent;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    text-decoration: none;
    color: var(--primary-blue);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* --- 16. Modal (Jika Digunakan) --- */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-light);
    padding: 1rem 1.5rem;
}

/* --- 17. Utilities Tambahan --- */
.amount-positive {
    color: var(--success-green);
    font-weight: 600;
}

.amount-negative {
    color: var(--danger-red);
    font-weight: 600;
}

.cursor-pointer {
    cursor: pointer;
}

/* === OFFCANVAS (TAMBAHAN) === */
.offcanvas {
    width: 100% !important;
    max-width: 400px;
}

@media (min-width: 768px) {
    .offcanvas {
        width: 400px !important;
    }
}

/* === BADGE STATUS (TAMBAHAN) === */
.badge-status {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 500;
    border-radius: 0.35rem;
}