/* Main Styles */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --tertiary: #06b6d4;
    --success: #10b981;
    --danger: #f43f5e;
    --warning: #f59e0b;
    --light: #f8fafc;
    --dark: #1e293b;
    --accent: #a78bfa;
}


/* Step Progress Indicator Styles */
.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    border: 3px solid #e9ecef;
    transition: all 0.3s ease;
    z-index: 2;
}

.progress-step.active .step-circle {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
}

.step-label {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: #0d6efd;
    font-weight: 600;
}

.progress-line {
    height: 3px;
    background-color: #e9ecef;
    flex: 1;
    margin: 0 10px;
    margin-top: -25px;
    transition: all 0.3s ease;
}

.progress-line.active {
    background-color: #0d6efd;
}

/* Form Section Styles */
.form-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.form-section-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.form-section-title i {
    margin-right: 8px;
    color: #0d6efd;
}

/* Step Content */
.step-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image Preview Styles */
.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .progress-line {
        margin-top: -20px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light);
    color: var(--dark);
}

/* Login Page */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
}

.login-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
}

.login-form-wrapper {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.features {
    margin-top: 50px;
}

.feature-item {
    text-align: center;
    margin-bottom: 30px;
}

.feature-item i {
    color: rgba(255, 255, 255, 0.8);
}

.feature-item h5 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 15px;
}

.feature-item p {
    font-size: 14px;
    opacity: 0.9;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #e2e8f0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 24px;
    color: var(--primary) !important;
}

.navbar .nav-link {
    color: var(--secondary) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s;
}

.navbar .nav-link:hover {
    color: var(--primary) !important;
}

/* Car Cards */
.car-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.car-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.car-image {
    height: 180px;
    object-fit: cover;
    position: relative;
}

@media (max-width: 575px) {
    .car-image {
        height: 150px;
    }
}

@media (min-width: 992px) {
    .car-image {
        height: 200px;
    }
}

.car-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.car-badge.featured {
    background: rgba(245, 158, 11, 0.9);
}

.car-info {
    padding: 15px;
}

.car-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 8px;
}

.car-specs {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.car-spec-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.car-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.car-actions {
    display: flex;
    gap: 10px;
}

.car-actions button {
    flex: 1;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
}

.wishlist-btn {
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.wishlist-btn:hover {
    background: var(--primary);
    color: white;
}

.wishlist-btn.active {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.compare-btn {
    background: var(--primary);
    color: white;
    border: none;
}

.compare-btn:hover {
    background: #1d4ed8;
}

/* Search Filters */
.filter-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--dark);
}

/* Forms */
.form-control, .form-select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    min-height: 36px;
}

@media (max-width: 575px) {
    .form-control, .form-select {
        min-height: 44px;
        padding: 12px 14px;
        font-size: 16px;
    }
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Modal Styles */
.modal-header {
    border-bottom: 1px solid #e2e8f0;
    background: var(--light);
}

.modal-title {
    font-weight: 700;
    font-size: 18px;
}

.modal-body {
    padding: 30px;
}

/* Price Prediction Modal */
.price-pred-box {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
}

.price-pred-value {
    font-size: 36px;
    font-weight: 700;
    margin: 15px 0;
}

.price-range {
    font-size: 14px;
    opacity: 0.9;
}

.price-reason {
    background: #f0f9ff;
    border-left: 4px solid var(--primary);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    color: var(--dark);
}

/* Comparison Modal */
.comparison-table {
    margin-top: 20px;
}

.comparison-table th {
    background: var(--light);
    font-weight: 700;
    color: var(--dark);
    border-bottom: 2px solid #e2e8f0;
}

.comparison-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.ai-verdict {
    background: #f0fdf4;
    border-left: 4px solid var(--success);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--dark);
}

/* Dashboards */
.dashboard-header {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dashboard-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
}

.dashboard-subtitle {
    color: var(--secondary);
    margin-top: 5px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--secondary);
    font-weight: 500;
}

/* Sidebar */
.sidebar {
    background: white;
    border-right: 1px solid #e2e8f0;
    min-height: 100vh;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: block;
    padding: 12px 20px;
    color: var(--secondary);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--light);
    color: var(--primary);
    border-left-color: var(--primary);
}

/* Right Sidebar - Chat */
.chat-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 350px;
    height: 100vh;
    background: white;
    border-left: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.05);
}

.chat-header {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 700;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.message {
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
}

.message.user {
    justify-content: flex-end;
}

.message-bubble {
    background: var(--light);
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 14px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.user .message-bubble {
    background: var(--primary);
    color: white;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #e2e8f0;
}

.chat-input input {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Forms */
.form-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-section-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--dark);
    border-bottom: 2px solid var(--light);
    padding-bottom: 15px;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border: none;
    font-weight: 600;
    padding: 10px 20px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 575px) {
    .btn-primary {
        padding: 12px 20px;
        min-height: 44px;
        font-size: 0.95rem;
    }
}

.btn-primary:hover {
    background: #1d4ed8;
    color: white;
}

.btn-secondary {
    background: var(--secondary);
    border: none;
    font-weight: 600;
    min-height: 40px;
}

@media (max-width: 575px) {
    .btn-secondary {
        min-height: 44px;
    }
}

.btn-success {
    background: var(--success);
    border: none;
    font-weight: 600;
    min-height: 40px;
}

@media (max-width: 575px) {
    .btn-success {
        min-height: 44px;
    }
}

.btn-danger {
    background: var(--danger);
    border: none;
    font-weight: 600;
    min-height: 40px;
}

@media (max-width: 575px) {
    .btn-danger {
        min-height: 44px;
    }
}

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    color: #7f1d1d;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

.alert-info {
    background: #dbeafe;
    color: #0c2d6b;
}

/* Responsive */
@media (max-width: 768px) {
    .login-form-wrapper {
        padding: 20px;
    }

    .car-card {
        margin-bottom: 20px;
    }

    .chat-sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }

    .dashboard-container {
        margin-right: 0;
    }

    .stat-card {
        margin-bottom: 15px;
    }
}

/* Loading Spinner */
.spinner-border {
    border-width: 3px;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Charts */
.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

/* Verification Status */
.verification-pending {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.verification-approved {
    background: #d1fae5;
    border-left: 4px solid #10b981;
}

.verification-rejected {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
}

/* Car Comparison Styles */
.comparison-container {
    padding: 20px 0;
}

.comparison-table {
    margin-bottom: 20px;
}

.comparison-table th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    font-weight: 600;
    border: none;
}

.comparison-table td {
    padding: 12px;
    vertical-align: middle;
    border: 1px solid #e2e8f0;
}

.comparison-table tbody tr:hover {
    background-color: #f8fafc;
}

.comparison-table tbody tr td:first-child {
    font-weight: 600;
    background: #f1f5f9;
}

/* Price Comparison Cards */
.card.border-left-primary {
    border-left: 4px solid var(--primary) !important;
}

.card.border-left-success {
    border-left: 4px solid var(--success) !important;
}

.comparison-table tbody tr:nth-child(3) td:nth-child(2),
.comparison-table tbody tr:nth-child(6) td:nth-child(2) {
    font-weight: bold;
    color: var(--primary);
}

.ai-verdict {
    padding: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 2px solid var(--primary);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

/* Page Backgrounds */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
}

/* Home Page Background */
body.home-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.home-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,144C672,139,768,149,864,154.7C960,160,1056,160,1152,154.7C1248,149,1344,139,1392,133.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

/* Wishlist Page Background */
body.wishlist-page {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.wishlist-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(135deg, rgba(240, 147, 251, 0.95) 0%, rgba(245, 87, 108, 0.95) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,160L48,176C96,192,192,224,288,224C384,224,480,192,576,176C672,160,768,160,864,176C960,192,1056,224,1152,224C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

/* Profile Page Background */
body.profile-page {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.profile-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(135deg, rgba(79, 172, 254, 0.95) 0%, rgba(0, 242, 254, 0.95) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,128L48,144C96,160,192,192,288,197.3C384,203,480,181,576,165.3C672,149,768,139,864,144C960,149,1056,171,1152,176C1248,181,1344,171,1392,165.3L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

/* Navbar styling for background pages */
body.home-page .navbar,
body.wishlist-page .navbar,
body.profile-page .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Container styling for background pages */
body.home-page .container-fluid,
body.wishlist-page .container-fluid {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    margin: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Filter section styling */
.filter-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Car card styling */
.car-card {
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.car-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Modal styling */
.modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Image Upload Categories */
.image-input {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-input:hover {
    border-color: var(--primary);
    background-color: #f8f9ff;
}

.image-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background-color: #f8f9ff;
    border-radius: 8px;
    min-height: 20px;
}

.image-preview img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-preview img:hover {
    transform: scale(1.05);
}

.card.border-primary {
    border-width: 2px;
}

.card.border-info {
    border-width: 2px;
}

.card.border-success {
    border-width: 2px;
}

.card.border-warning {
    border-width: 2px;
}

.card.border-secondary {
    border-width: 2px;
}

.card.border-dark {
    border-width: 2px;
}

.card-header {
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.card-body {
    padding: 1.5rem;
}

/* RESPONSIVE PADDING UTILITIES */
.px-mobile { padding-left: 12px; padding-right: 12px; }
.px-tablet { padding-left: 15px; padding-right: 15px; }
.px-desktop { padding-left: 20px; padding-right: 20px; }

.py-mobile { padding-top: 12px; padding-bottom: 12px; }
.py-tablet { padding-top: 15px; padding-bottom: 15px; }
.py-desktop { padding-top: 20px; padding-bottom: 20px; }

@media (min-width: 576px) {
    .px-mobile { padding-left: 15px; padding-right: 15px; }
    .py-mobile { padding-top: 15px; padding-bottom: 15px; }
}

@media (min-width: 768px) {
    .px-mobile { padding-left: 20px; padding-right: 20px; }
    .py-mobile { padding-top: 20px; padding-bottom: 20px; }
}

/* RESPONSIVE FONT SIZES */
.fs-mobile-sm { font-size: 0.8rem; }
.fs-mobile-base { font-size: 0.9rem; }
.fs-mobile-lg { font-size: 1rem; }
.fs-mobile-xl { font-size: 1.2rem; }

@media (min-width: 768px) {
    .fs-mobile-sm { font-size: 0.85rem; }
    .fs-mobile-base { font-size: 0.95rem; }
    .fs-mobile-lg { font-size: 1.1rem; }
    .fs-mobile-xl { font-size: 1.4rem; }
}

@media (min-width: 992px) {
    .fs-mobile-sm { font-size: 0.9rem; }
    .fs-mobile-base { font-size: 1rem; }
    .fs-mobile-lg { font-size: 1.2rem; }
    .fs-mobile-xl { font-size: 1.6rem; }
}

/* RESPONSIVE HEADINGS */
h1 { font-size: clamp(1.5rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 4.5vw, 2rem); }
h3 { font-size: clamp(1.1rem, 4vw, 1.75rem); }
h4 { font-size: clamp(1rem, 3.5vw, 1.5rem); }
h5 { font-size: clamp(0.95rem, 3vw, 1.25rem); }
h6 { font-size: clamp(0.85rem, 2.5vw, 1rem); }

/* RESPONSIVE SPACING */
.mt-responsive { margin-top: clamp(12px, 3vw, 20px); }
.mb-responsive { margin-bottom: clamp(12px, 3vw, 20px); }
.mt-2-responsive { margin-top: clamp(8px, 2vw, 15px); }
.mb-2-responsive { margin-bottom: clamp(8px, 2vw, 15px); }

/* RESPONSIVE DISPLAY UTILITIES */
@media (max-width: 575px) {
    .d-none-mobile { display: none !important; }
}

@media (min-width: 576px) and (max-width: 767px) {
    .d-none-tablet { display: none !important; }
}

@media (min-width: 768px) {
    .d-none-desktop { display: none !important; }
}

/* RESPONSIVE CONTAINER */
.container-responsive {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 576px) {
    .container-responsive {
        max-width: 540px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (min-width: 768px) {
    .container-responsive {
        max-width: 720px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (min-width: 992px) {
    .container-responsive {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container-responsive {
        max-width: 1140px;
    }
}

/* RESPONSIVE MODALS */
.modal-body-responsive {
    padding: 15px;
}

@media (min-width: 576px) {
    .modal-body-responsive {
        padding: 18px;
    }
}

@media (min-width: 768px) {
    .modal-body-responsive {
        padding: 20px;
    }
}

/* TOUCH-FRIENDLY SPACING */
@media (max-width: 576px) {
    .card {
        margin-bottom: 12px;
    }
    
    .list-group-item {
        padding: 12px;
    }
    
    .nav-item {
        padding: 8px 0;
    }
}

/* SAFE AREA SUPPORT FOR NOTCHED DEVICES */
@supports (padding: max(0px)) {
    body {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
    
    .navbar {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
}

/* SMOOTH SCROLLING & FONT OPTIMIZATION */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* VIEWPORT HEIGHT OPTIMIZATION */
@media (max-height: 600px) {
    .navbar {
        padding: 8px 12px;
    }
    
    .modal-body {
        max-height: calc(100vh - 150px);
        overflow-y: auto;
    }
}

/* HIGH DPI OPTIMIZATION */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}
