/* Custom Bootstrap Colors Override */
:root {
    --bs-primary: #6366f1;
    --bs-primary-rgb: 99, 102, 241;
    --bs-secondary: #64748b;
    --bs-secondary-rgb: 100, 116, 139;
    --bs-success: #10b981;
    --bs-success-rgb: 16, 185, 129;
    --bs-info: #06b6d4;
    --bs-info-rgb: 6, 182, 212;
    --bs-warning: #f59e0b;
    --bs-warning-rgb: 245, 158, 11;
    --bs-danger: #ef4444;
    --bs-danger-rgb: 239, 68, 68;
    --bs-light: #f8fafc;
    --bs-light-rgb: 248, 250, 252;
    --bs-dark: #1e293b;
    --bs-dark-rgb: 30, 41, 59;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Alternative method: Direct class overrides */
.bg-primary {
    background-color: var(--bs-primary) !important;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover {
    background-color: #5855eb;
    border-color: #5855eb;
}

.btn-warning {
    background-color: var(--bs-warning);
    border-color: var(--bs-warning);
    color: #fff;
}

.btn-warning:hover {
    background-color: #d97706;
    border-color: #d97706;
}

.btn-outline-light:hover {
    background-color: var(--bs-light);
    color: var(--bs-dark);
}

/* Merchant Card Styles */
.merchant-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    background-color: #fff;
}

.merchant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.merchant-cover {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.merchant-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.merchant-card .card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--bs-dark);
}

.merchant-card .card-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.merchant-card .card-footer {
    background-color: transparent;
    border-top: 1px solid #f1f1f1;
    font-size: 0.85rem;
    color: #888;
    padding: 12px 20px;
}

/* Custom badge colors */
.badge-custom {
    background-color: var(--bs-success);
    color: white;
}

/* Navbar brand styling */
.navbar-brand {
    color: white !important;
    font-weight: 700;
}

.navbar-toggler-icon {
    filter: invert(1);
}

.product-card {
    border: 1px solid #eee;
    border-radius: 15px;
    background: #fff;
    transition: all 0.2s ease-in-out;
    height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.product-card:hover {
    border: 1px solid var(--bs-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    color: var(--bs-primary);
}

.product-img img {
    width: auto;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    background: #fff;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 56px; /* tinggi navbar */
    left: 0;
    width: 240px;
    height: calc(100% - 56px);
    background-color: #fff;
    border-right: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    padding-top: 1rem;
    z-index: 1000;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar .nav-link {
    color: #6b7280;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.sidebar .nav-link img {
    flex-shrink: 0;
}

.sidebar .nav-link .sidebar-text {
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-text {
    opacity: 0;
    visibility: hidden;
    width: 0;
}

.sidebar .nav-link:hover {
    background-color: #f1f5f9;
    color: #111827;
}

.sidebar .nav-link.active {
    background-color: #e0e7ff;
    color: #2563eb;
}

/* Content */
.content-wrapper {
    margin-left: 240px;
    padding: 2rem;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed ~ .content-wrapper {
    margin-left: 70px;
}

/* Navbar */
.navbar {
    z-index: 1050;
}
