/**
 * Balance and Carry - Main Stylesheet
 * Nigerian Vehicle Hire-Purchase Marketplace
 */

/* =====================================================
   CSS VARIABLES & ROOT
   ===================================================== */
:root {
    /* Primary Colors - Trust & Reliability */
    --primary-color: #1a5f7a;
    --primary-dark: #134a5f;
    --primary-light: #2980b9;

    /* Secondary Colors */
    --secondary-color: #27ae60;
    --secondary-dark: #1e8449;
    --secondary-light: #2ecc71;

    /* Accent Colors */
    --accent-color: #f39c12;
    --accent-dark: #d68910;
    --accent-light: #f5b041;

    /* Neutral Colors */
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --text-light: #bdc3c7;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;

    /* Status Colors */
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
}

/* =====================================================
   RESET & BASE STYLES
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
}

.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--danger-color); }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-md);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -var(--spacing-sm);
}

.col {
    flex: 1;
    padding: 0 var(--spacing-sm);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-brand span {
    color: var(--secondary-color);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: var(--spacing-sm) 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
    }

    .navbar-nav.active {
        display: flex;
    }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: white;
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline-light {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* =====================================================
   FORMS
   ===================================================== */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

.form-control.error {
    border-color: var(--danger-color);
}

.form-control::placeholder {
    color: var(--text-light);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

.form-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

.form-error {
    font-size: 0.875rem;
    color: var(--danger-color);
    margin-top: var(--spacing-xs);
}

.form-row {
    display: flex;
    gap: var(--spacing-md);
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
    }
}

/* Checkbox and Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* File Upload */
.file-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    background-color: rgba(26, 95, 122, 0.05);
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: var(--spacing-lg);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.card-text {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.card-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

/* Vehicle Card */
.vehicle-card {
    position: relative;
}

.vehicle-card .badge-type {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.vehicle-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.vehicle-card .price-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.vehicle-card .meta {
    display: flex;
    gap: var(--spacing-md);
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: var(--spacing-sm);
}

.vehicle-card .meta span {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Vehicle Card Link Wrapper */
.vehicle-card > a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.vehicle-card > a:hover {
    color: inherit;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--spacing-xxl) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>') repeat;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: white;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section {
    padding: var(--spacing-xxl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-title h2 {
    margin-bottom: var(--spacing-sm);
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* How It Works */
.step-card {
    text-align: center;
    padding: var(--spacing-xl);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    line-height: 30px;
    margin-bottom: var(--spacing-sm);
}

/* Features */
.feature-card {
    padding: var(--spacing-xl);
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

/* Stats */
.stats-section {
    background-color: var(--primary-color);
    color: white;
}

.stat-item {
    text-align: center;
    padding: var(--spacing-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* =====================================================
   DASHBOARD
   ===================================================== */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--primary-dark);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1050;
    transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Mobile: Hide sidebar by default, show on .active */
@media (max-width: 992px) {
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
        box-shadow: none;
        visibility: visible;
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
        visibility: visible;
    }
}

/* Sidebar active state - ensure it shows */
.sidebar.active {
    transform: translateX(0) !important;
}

.sidebar-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-brand {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
}

.sidebar-brand span {
    color: var(--secondary-light);
}

.sidebar-close {
    display: none;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background-color var(--transition-fast);
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 992px) {
    .sidebar-close {
        display: flex;
    }
}

.sidebar-menu {
    padding: var(--spacing-md) 0;
}

.sidebar-menu-item {
    display: block;
    padding: var(--spacing-md) var(--spacing-lg);
    color: rgba(255,255,255,0.8);
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.sidebar-menu-item:hover,
.sidebar-menu-item.active {
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-left-color: var(--secondary-color);
}

.sidebar-menu-item i {
    margin-right: var(--spacing-sm);
    width: 20px;
}

.sidebar-divider {
    height: 1px;
    background-color: rgba(255,255,255,0.1);
    margin: var(--spacing-md) var(--spacing-lg);
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
}

.dashboard-header {
    background-color: var(--bg-white);
    padding: var(--spacing-md) var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.sidebar-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    margin-right: var(--spacing-md);
}

.sidebar-toggle i {
    font-size: 1.25rem;
}

@media (max-width: 992px) {
    .sidebar-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

.dashboard-title {
    font-size: 1.5rem;
    margin: 0;
}

.dashboard-user {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.dashboard-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.dashboard-main {
    padding: var(--spacing-xl);
}

@media (max-width: 992px) {
    .dashboard-content {
        margin-left: 0;
        width: 100%;
    }
}

/* Sidebar overlay backdrop */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    pointer-events: none;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Dashboard Cards/Stats */
.stat-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.stat-card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card-icon.primary { background-color: var(--primary-color); }
.stat-card-icon.secondary { background-color: var(--secondary-color); }
.stat-card-icon.accent { background-color: var(--accent-color); }
.stat-card-icon.danger { background-color: var(--danger-color); }

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-card-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* =====================================================
   TABLES
   ===================================================== */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table th,
.table td {
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background-color: rgba(26, 95, 122, 0.02);
}

/* =====================================================
   BADGES
   ===================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    text-transform: uppercase;
}

.badge-primary { background-color: var(--primary-color); color: white; }
.badge-secondary { background-color: var(--secondary-color); color: white; }
.badge-success { background-color: var(--success-color); color: white; }
.badge-warning { background-color: var(--warning-color); color: white; }
.badge-danger { background-color: var(--danger-color); color: white; }
.badge-info { background-color: var(--info-color); color: white; }

.badge-outline-primary { background-color: transparent; border: 1px solid var(--primary-color); color: var(--primary-color); }
.badge-outline-success { background-color: transparent; border: 1px solid var(--success-color); color: var(--success-color); }
.badge-outline-warning { background-color: transparent; border: 1px solid var(--warning-color); color: var(--warning-color); }
.badge-outline-danger { background-color: transparent; border: 1px solid var(--danger-color); color: var(--danger-color); }

/* =====================================================
   ALERTS
   ===================================================== */
.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.alert-success {
    background-color: rgba(39, 174, 96, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.alert-warning {
    background-color: rgba(243, 156, 18, 0.1);
    border: 1px solid var(--warning-color);
    color: var(--warning-color);
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
}

.alert-info {
    background-color: rgba(52, 152, 219, 0.1);
    border: 1px solid var(--info-color);
    color: var(--info-color);
}

/* =====================================================
   MODALS
   ===================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-xl);
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.pagination-item:hover,
.pagination-item.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* =====================================================
   FILTERS
   ===================================================== */
.filters-bar {
    background-color: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-items: flex-end;
}

.filters-row .form-group {
    margin-bottom: 0;
    min-width: 150px;
}

@media (max-width: 768px) {
    .filters-row .form-group {
        width: 100%;
    }
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-brand span {
    color: var(--secondary-color);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: white;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.7);
    padding: var(--spacing-xs) 0;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--spacing-sm);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }
.mt-5 { margin-top: var(--spacing-xxl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }
.mb-5 { margin-bottom: var(--spacing-xxl); }

.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }
.p-4 { padding: var(--spacing-xl); }
.p-5 { padding: var(--spacing-xxl); }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: var(--spacing-sm); }
.gap-2 { gap: var(--spacing-md); }
.gap-3 { gap: var(--spacing-lg); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--radius-md); }
.shadow { box-shadow: var(--shadow-md); }

.bg-white { background-color: var(--bg-white); }
.bg-light { background-color: var(--bg-light); }
.bg-primary { background-color: var(--primary-color); }

/* =====================================================
   LOADING STATES
   ===================================================== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-lg {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-light) 25%, var(--border-color) 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* =====================================================
   PAYMENT CALCULATOR
   ===================================================== */
.calculator-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--secondary-color);
}

.calculator-title {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-lg);
}

.calculator-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.calculator-row:last-child {
    border-bottom: none;
    padding-top: var(--spacing-md);
    font-weight: 700;
    font-size: 1.25rem;
}

.calculator-row .label {
    color: var(--text-muted);
}

.calculator-row .value {
    color: var(--text-dark);
}

/* =====================================================
   VEHICLE DETAILS PAGE & IMAGE SLIDER
   ===================================================== */

/* Image Slider Container */
.image-slider-container {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.image-slider-main {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.slider-image-wrapper {
    width: 100%;
    height: 100%;
}

.slider-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-normal);
}

/* Navigation Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.slider-nav:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev { left: 15px; }
.slider-next { right: 15px; }

/* Slide Counter */
.slider-counter {
    text-align: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

.slider-counter span {
    color: var(--primary-color);
}

/* Dot Indicators */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background-color: var(--bg-light);
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background-color: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.slider-dot:hover {
    border-color: var(--primary-color);
}

.slider-dot.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Thumbnails */
.slider-thumbnails {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background-color: var(--bg-white);
    overflow-x: auto;
    border-top: 1px solid var(--border-color);
}

.slider-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.slider-thumb:hover {
    opacity: 0.9;
}

.slider-thumb.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.slider-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .image-slider-main {
        height: 300px;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-prev { left: 10px; }
    .slider-next { right: 10px; }

    .slider-thumb {
        width: 60px;
        height: 45px;
    }
}

/* Legacy Vehicle Gallery (fallback) */
.vehicle-gallery {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: var(--spacing-md);
}

.vehicle-main-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
}

.vehicle-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-thumbnails {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.vehicle-thumbnail {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 95px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.vehicle-thumbnail.active,
.vehicle-thumbnail:hover {
    opacity: 1;
}

.vehicle-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .vehicle-gallery {
        grid-template-columns: 1fr;
    }

    .vehicle-thumbnails {
        flex-direction: row;
    }

    .vehicle-thumbnail {
        height: 60px;
        flex: 1;
    }
}

/* =====================================================
   PROGRESS BAR
   ===================================================== */
.progress {
    height: 8px;
    background-color: var(--bg-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: var(--radius-xl);
    transition: width var(--transition-normal);
}

.progress-bar.success { background-color: var(--success-color); }
.progress-bar.warning { background-color: var(--warning-color); }
.progress-bar.danger { background-color: var(--danger-color); }

/* =====================================================
   DROPDOWN
   ===================================================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 100;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-dark);
    transition: background-color var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--bg-light);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: var(--spacing-sm) 0;
}

/* =====================================================
   EMPTY STATE
   ===================================================== */
.empty-state {
    text-align: center;
    padding: var(--spacing-xxl);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.empty-state h3 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

/* =====================================================
   IMAGE UPLOAD PREVIEW
   ===================================================== */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--spacing-sm);
}

.image-preview-item {
    position: relative;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--danger-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.existing-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--spacing-md);
}

.existing-image-item {
    position: relative;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.existing-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.existing-image-item .badge {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 0.65rem;
}

.existing-image-item .delete-image-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    padding: 0.25rem 0.5rem;
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
    .sidebar,
    .navbar,
    .btn,
    .no-print {
        display: none !important;
    }

    .dashboard-content {
        margin-left: 0;
    }

    body {
        background-color: white;
    }
}

/* =====================================================
   MOBILE APP ENHANCEMENTS (Min Screen Size)
   ===================================================== */

/* Mobile Dashboard Header */
@media (max-width: 576px) {
    /* Dashboard Header Mobile */
    .dashboard-header {
        padding: var(--spacing-sm) var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .dashboard-title {
        font-size: 1.1rem;
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dashboard-user {
        gap: var(--spacing-sm);
    }

    .dashboard-user-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    /* Sidebar Mobile Enhancements */
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0) !important;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
    }

    .sidebar-header {
        padding: var(--spacing-md);
    }

    .sidebar-brand {
        font-size: 1.1rem;
    }

    .sidebar-menu-item {
        padding: var(--spacing-md);
        font-size: 0.95rem;
    }

    .sidebar-menu-item i {
        width: 24px;
        font-size: 1rem;
    }

    /* Dashboard Main Content Mobile */
    .dashboard-main {
        padding: var(--spacing-md);
    }

    /* Stat Cards Mobile - App Style */
    .stat-card {
        padding: var(--spacing-md);
        gap: var(--spacing-md);
        border-radius: var(--radius-md);
    }

    .stat-card-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        border-radius: var(--radius-sm);
        flex-shrink: 0;
    }

    .stat-card-value {
        font-size: 1.25rem;
        line-height: 1.2;
    }

    .stat-card-label {
        font-size: 0.75rem;
    }

    /* Mobile Grid Adjustments */
    .grid-4, .grid-3, .grid-2 {
        gap: var(--spacing-md);
    }

    /* Cards Mobile Style */
    .card {
        border-radius: var(--radius-md);
    }

    .card-body {
        padding: var(--spacing-md);
    }

    /* Quick Actions Mobile */
    .d-flex.gap-2.flex-wrap {
        flex-direction: column;
    }

    .d-flex.gap-2.flex-wrap .btn {
        width: 100%;
        justify-content: center;
    }

    /* Agreements List Mobile */
    .d-flex.gap-3.align-center {
        flex-wrap: wrap;
        gap: var(--spacing-sm) !important;
    }

    .d-flex.gap-3.align-center img {
        width: 50px !important;
        height: 50px !important;
    }

    .d-flex.gap-3.align-center > div:nth-child(2) {
        flex: 1;
        min-width: 120px;
    }

    .d-flex.gap-3.align-center > div:nth-child(3) {
        width: 100%;
        text-align: left !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: var(--spacing-xs);
        padding-top: var(--spacing-xs);
        border-top: 1px dashed var(--border-color);
    }

    /* Empty State Mobile */
    .empty-state {
        padding: var(--spacing-lg);
    }

    .empty-state-icon,
    .empty-state .fa-2x,
    .empty-state .fa-3x {
        font-size: 2rem !important;
    }

    /* Buttons Mobile */
    .btn {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }

    .btn-sm {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .btn-lg {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }

    /* Alerts Mobile */
    .alert {
        padding: var(--spacing-md);
        font-size: 0.9rem;
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .alert i {
        font-size: 1.25rem;
    }

    /* Dropdown Mobile */
    .dropdown-menu {
        min-width: 180px;
        right: -10px;
    }

    .dropdown-item {
        padding: var(--spacing-md);
        font-size: 0.9rem;
    }

    /* Tables Mobile Enhancement */
    .table th,
    .table td {
        padding: var(--spacing-sm);
        font-size: 0.85rem;
    }

    /* Progress Bar Mobile */
    .progress {
        height: 6px;
    }

    /* Badge Mobile */
    .badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }

    /* Form Controls Mobile */
    .form-control {
        padding: 0.65rem 0.85rem;
        font-size: 0.95rem;
    }

    .form-label {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-xs);
    }

    .form-group {
        margin-bottom: var(--spacing-md);
    }

    /* Profile Page Mobile */
    .grid-2 > div > .card {
        margin-bottom: var(--spacing-md);
    }

    /* Document Upload Mobile */
    .d-flex.gap-2 {
        flex-direction: column;
    }

    .d-flex.gap-2 input[type="file"] {
        width: 100%;
    }

    .d-flex.gap-2 button[type="submit"] {
        width: 100%;
    }

    /* Typography Mobile */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
}

/* Lister Earnings Mobile Specific */
@media (max-width: 576px) {
    /* Earnings Chart Mobile */
    #earnings-chart {
        min-height: 200px;
    }

    /* Active Agreements Cards Mobile */
    .card > div[style*="border: 1px solid"] {
        padding: var(--spacing-sm) !important;
    }

    /* Payment History Table Mobile - Card Style */
    .table-responsive .table {
        display: block;
    }

    .table-responsive .table thead {
        display: none;
    }

    .table-responsive .table tbody {
        display: block;
    }

    .table-responsive .table tbody tr {
        display: flex;
        flex-wrap: wrap;
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-sm);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        background: var(--bg-white);
    }

    .table-responsive .table tbody tr:hover {
        background-color: var(--bg-light);
    }

    .table-responsive .table tbody td {
        border: none;
        padding: var(--spacing-xs);
    }

    .table-responsive .table tbody td:nth-child(1) {
        width: 50%;
        order: 1;
        font-size: 0.8rem;
        color: var(--text-muted);
    }

    .table-responsive .table tbody td:nth-child(2) {
        width: 100%;
        order: 3;
        font-weight: 600;
    }

    .table-responsive .table tbody td:nth-child(3) {
        width: 100%;
        order: 4;
        font-size: 0.85rem;
        color: var(--text-muted);
    }

    .table-responsive .table tbody td:nth-child(4) {
        display: none;
    }

    .table-responsive .table tbody td:nth-child(5) {
        width: 50%;
        order: 2;
        text-align: right;
    }

    .table-responsive .table tbody td:nth-child(6) {
        width: 100%;
        order: 5;
        margin-top: var(--spacing-xs);
    }
}

/* Vehicle Card Mobile - Horizontal Layout */
@media (max-width: 576px) {
    .vehicle-card {
        height: 150px;
        overflow: hidden;
    }

    .vehicle-card > a {
        display: flex;
        flex-direction: row;
        height: 100%;
    }

    .vehicle-card .badge-type {
        top: var(--spacing-xs);
        left: var(--spacing-xs);
        font-size: 0.65rem;
        padding: 2px 6px;
        z-index: 2;
    }

    .vehicle-card .card-img {
        width: 50%;
        height: 100%;
        object-fit: cover;
        flex-shrink: 0;
        border-radius: var(--radius-md) 0 0 var(--radius-md);
    }

    .vehicle-card .card-body {
        flex: 1;
        padding: var(--spacing-sm) var(--spacing-md);
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
        min-width: 0;
    }

    .vehicle-card .card-title {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-xs);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .vehicle-card .price {
        font-size: 1.1rem;
    }

    .vehicle-card .price-label {
        font-size: 0.7rem;
    }

    .vehicle-card .meta {
        font-size: 0.75rem;
        margin-top: var(--spacing-xs);
    }
}

/* Camera Capture Styles */
.camera-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.camera-container video {
    width: 100%;
    display: block;
}

.camera-container canvas {
    display: none;
}

.camera-controls {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.8);
}

.camera-preview {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: var(--spacing-md) auto;
}

.camera-preview img {
    width: 100%;
    border-radius: var(--radius-md);
    border: 3px solid var(--secondary-color);
}

/* Face Capture Guidelines Overlay */
.face-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 250px;
    border: 3px dashed rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
}

.face-guide::after {
    content: 'Position your face here';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.85rem;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
}

/* Guarantor Section Styles */
.guarantor-section {
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.02) 0%, rgba(26, 95, 122, 0.05) 100%);
}

.guarantor-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.guarantor-card:last-child {
    margin-bottom: 0;
}

.guarantor-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

.guarantor-number {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}


/* Improved Touch Targets */
@media (max-width: 576px) {
    .sidebar-menu-item {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .btn,
    .form-control,
    select.form-control {
        min-height: 44px;
    }

    input[type="file"] {
        min-height: 44px;
    }
}

/* Pull to Refresh Visual Indicator */
.pull-indicator {
    text-align: center;
    padding: var(--spacing-md);
    color: var(--text-muted);
    font-size: 0.85rem;
    display: none;
}

/* Smooth Scrolling for Mobile */
@media (max-width: 576px) {
    .dashboard-main {
        -webkit-overflow-scrolling: touch;
    }

    .sidebar-menu {
        -webkit-overflow-scrolling: touch;
    }
}

