/* ForGear - Main Stylesheet - Compact Version (90% Scale) */

:root {
    --primary-color: #007bff;
    --dark-color: #000000;
    --gray-light: #f8f9fa;
    --gray-medium: #dee2e6;
    --gray-dark: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.15);
    --border-radius: 10px; /* Reduced from 12px */
    --border-radius-sm: 5px; /* Reduced from 6px */
    --border-radius-lg: 14px; /* Reduced from 16px */
    --transition: all 0.3s ease;
    --font-family: 'Montserrat', sans-serif;
    --scale-factor: 0.9; /* 90% scale */
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14.4px !important; /* 16px * 0.9 = 14.4px */
}

body {
    font-family: var(--font-family);
    line-height: 1.5; /* Reduced from 1.6 */
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
    padding-top: 65px; /* Reduced navbar height */
    font-size: 0.95rem; /* Slightly smaller base font */
}

/* Typography - Compact Sizes */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.15; /* Tighter line height */
    margin-bottom: 0.8rem; /* Reduced spacing */
}

.display-1, .display-2, .display-3, .display-4 {
    font-weight: 700;
}

/* Buttons - Compact */
.btn {
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    padding: 0.6rem 1.2rem; /* Reduced padding */
    transition: var(--transition);
    border-width: 2px;
    position: relative;
    overflow: hidden;
    font-size: 0.85rem; /* Smaller font */
}

.btn-black {
    background: var(--dark-color);
    border-color: var(--dark-color);
    color: white;
}

.btn-black:hover,
.btn-black:focus {
    background: #333;
    border-color: #333;
    color: white;
    transform: translateY(-1px); /* Reduced hover effect */
    box-shadow: var(--shadow-medium);
}

.btn-black:active {
    transform: translateY(0);
}

.btn-outline-black {
    background: transparent;
    border-color: var(--dark-color);
    color: var(--dark-color);
}

.btn-outline-black:hover {
    background: var(--dark-color);
    border-color: var(--dark-color);
    color: white;
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.8rem 1.6rem; /* Reduced */
    font-size: 0.95rem; /* Reduced */
}

.btn-sm {
    padding: 0.4rem 0.8rem; /* Reduced */
    font-size: 0.8rem; /* Reduced */
}

/* Navigation - Products.php Style */
.navbar {
    position: relative !important;
    box-shadow: var(--shadow-light);
    background: var(--dark-color) !important;
}

.navbar-brand {
    font-weight: 700;
    color: white !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gray-medium) !important;
}

/* Dropdown styling */
.dropdown-menu {
    border: 1px solid var(--gray-medium);
    box-shadow: var(--shadow-light);
}

.dropdown-item {
    color: var(--primary-color);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--gray-light);
    color: var(--primary-color);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

/* Badge styling */
.badge {
    background: var(--primary-color) !important;
}

/* NAVBAR BORDER REMOVAL */
.navbar .btn-outline-light,
.navbar .dropdown-toggle {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.navbar .btn-outline-light:hover,
.navbar .btn-outline-light:focus,
.navbar .btn-outline-light:active,
.navbar .dropdown-toggle:hover,
.navbar .dropdown-toggle:focus,
.navbar .dropdown-toggle:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.navbar .btn:focus,
.navbar .dropdown-toggle:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Badge styling */
.badge {
    font-size: 0.65rem; /* Smaller */
    padding: 0.15rem 0.35rem; /* Reduced */
    line-height: 1;
}

/* Hero Section - Compact */
.hero-section {
    min-height: 85vh; /* Reduced from 100vh */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1464822759844-d150065c7dc4?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 2.8rem; /* Reduced from 3.5rem */
    font-weight: 700;
    margin-bottom: 1.2rem; /* Reduced */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1rem; /* Reduced from 1.2rem */
    margin-bottom: 1.6rem; /* Reduced */
    opacity: 0.9;
    line-height: 1.4; /* Reduced */
}

.hero-buttons {
    margin-bottom: 2.4rem; /* Reduced */
}

.hero-stats {
    margin-top: 1.6rem; /* Reduced */
}

.stat-item h3 {
    font-size: 1.6rem; /* Reduced from 2rem */
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.4rem; /* Reduced */
}

.stat-item p {
    font-size: 0.8rem; /* Reduced */
    opacity: 0.8;
    margin: 0;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-hover);
}

.welcome-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.6rem 1.2rem; /* Reduced */
    border-radius: 40px; /* Reduced */
    font-size: 0.8rem; /* Reduced */
    font-weight: 500;
    display: inline-block;
}

.admin-badge {
    background: var(--warning-color);
    color: var(--dark-color);
    padding: 0.2rem 0.4rem; /* Reduced */
    border-radius: 10px; /* Reduced */
    font-size: 0.6rem; /* Reduced */
    font-weight: 600;
    text-transform: uppercase;
}

/* Sections - Compact */
.section-title {
    font-size: 2rem; /* Reduced from 2.5rem */
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.8rem; /* Reduced */
}

.section-subtitle {
    font-size: 0.95rem; /* Reduced */
    color: var(--gray-dark);
    margin-bottom: 2.4rem; /* Reduced */
}

/* Category Cards - Compact */
.category-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.6rem; /* Reduced from 2rem */
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    height: 100%;
    border: 1px solid #eee;
}

.category-card:hover {
    transform: translateY(-3px); /* Reduced */
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.category-icon {
    width: 65px; /* Reduced from 80px */
    height: 65px; /* Reduced from 80px */
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem; /* Reduced */
    color: white;
    font-size: 1.6rem; /* Reduced */
}

.category-card h4 {
    font-weight: 600;
    margin-bottom: 0.8rem; /* Reduced */
    color: var(--dark-color);
    font-size: 1.05rem; /* Reduced */
}

.category-card p {
    color: var(--gray-dark);
    margin-bottom: 1.2rem; /* Reduced */
    font-size: 0.85rem; /* Reduced */
}

/* Product Cards - Compact */
.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-3px); /* Reduced */
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.product-image {
    position: relative;
    width: 100%;
    height: 200px; /* Reduced from 250px */
    overflow: hidden;
    background: var(--gray-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem; /* Reduced */
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-content {
    padding: 1.2rem; /* Reduced from 1.5rem */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--primary-color);
    font-size: 0.7rem; /* Reduced */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px; /* Reduced */
    margin-bottom: 0.4rem; /* Reduced */
}

.product-title {
    font-weight: 600;
    margin-bottom: 0.8rem; /* Reduced */
    color: var(--dark-color);
    font-size: 0.95rem; /* Reduced */
    line-height: 1.25; /* Reduced */
}

.product-description {
    color: var(--gray-dark);
    font-size: 0.8rem; /* Reduced */
    margin-bottom: 0.8rem; /* Reduced */
    flex: 1;
    line-height: 1.4; /* Reduced */
}

.product-price {
    font-weight: 700;
    font-size: 0.95rem; /* Reduced */
    color: var(--dark-color);
    margin-bottom: 0.8rem; /* Reduced */
}

.product-stock {
    color: var(--gray-dark);
    font-size: 0.7rem; /* Reduced */
}

/* Contact Cards - Compact */
.contact-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.6rem; /* Reduced */
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    height: 100%;
    border: 1px solid #eee;
}

.contact-card:hover {
    transform: translateY(-3px); /* Reduced */
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 55px; /* Reduced from 70px */
    height: 55px; /* Reduced from 70px */
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem; /* Reduced */
    color: white;
    font-size: 1.2rem; /* Reduced */
}

.contact-card h5 {
    font-weight: 600;
    margin-bottom: 0.8rem; /* Reduced */
    color: var(--dark-color);
    font-size: 1rem; /* Reduced */
}

.contact-card p {
    color: var(--gray-dark);
    margin: 0;
    line-height: 1.5; /* Reduced */
    font-size: 0.85rem; /* Reduced */
}

/* Forms - Compact */
.form-control, .form-select {
    border: 2px solid #eee;
    border-radius: var(--border-radius-sm);
    padding: 0.6rem 0.8rem; /* Reduced */
    font-size: 0.85rem; /* Reduced */
    transition: var(--transition);
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.1); /* Reduced */
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.4rem; /* Reduced */
    font-size: 0.85rem; /* Reduced */
}

.input-group-text {
    background: transparent;
    border: 2px solid #eee;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem; /* Reduced */
}

/* Footer - Compact */
footer {
    background: var(--dark-color) !important;
    color: white;
    padding: 2.4rem 0 1.6rem; /* Reduced */
    margin-top: 3.2rem; /* Reduced */
}

footer h5, footer h6 {
    color: white;
    font-weight: 600;
    font-size: 0.9rem; /* Reduced */
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.8rem; /* Reduced */
}

footer a:hover {
    color: white;
}

.social-links a {
    display: inline-block;
    width: 32px; /* Reduced from 40px */
    height: 32px; /* Reduced from 40px */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 32px; /* Reduced */
    margin-right: 0.4rem; /* Reduced */
    transition: var(--transition);
    font-size: 0.8rem; /* Reduced */
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-1px); /* Reduced */
}

/* Alerts - Compact */
.alert {
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 0.8rem 1rem; /* Reduced */
    font-weight: 500;
    font-size: 0.85rem; /* Reduced */
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border-left: 3px solid var(--success-color); /* Reduced */
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border-left: 3px solid var(--danger-color); /* Reduced */
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-left: 3px solid var(--warning-color); /* Reduced */
}

.alert-info {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color); /* Reduced */
}

/* Badges */
.badge {
    font-weight: 600;
    padding: 0.3em 0.55em; /* Reduced */
    border-radius: var(--border-radius-sm);
}

/* Cards - Compact */
.card {
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-medium);
}

.card-header {
    background: var(--gray-light);
    border-bottom: 1px solid #eee;
    font-weight: 600;
    padding: 1rem 1.2rem; /* Reduced */
    font-size: 0.9rem; /* Reduced */
}

/* Modals - Compact */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-hover);
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding: 1.2rem; /* Reduced */
}

.modal-body {
    padding: 1.2rem; /* Reduced */
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 1.2rem; /* Reduced */
}

.modal-title {
    font-size: 1.1rem; /* Reduced */
}

/* Pagination - Compact */
.pagination {
    margin: 1.6rem 0; /* Reduced */
    justify-content: center;
}

.pagination .page-link {
    color: var(--dark-color);
    border: 2px solid #eee;
    margin: 0 0.2rem; /* Reduced */
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    padding: 0.6rem 0.8rem; /* Reduced */
    transition: var(--transition);
    font-size: 0.8rem; /* Reduced */
}

.pagination .page-item.active .page-link {
    background: var(--dark-color);
    border-color: var(--dark-color);
    color: white;
}

.pagination .page-link:hover {
    background: var(--gray-light);
    border-color: var(--dark-color);
    color: var(--dark-color);
    transform: translateY(-1px); /* Reduced */
}

/* Container - Compact Max Width */
.container {
    max-width: 1200px !important; /* Slightly wider for better space utilization */
}

/* Responsive Design - Compact */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.4rem; /* Reduced */
    }
    
    .section-title {
        font-size: 1.8rem; /* Reduced */
    }
}

@media (max-width: 991.98px) {
    /* Navbar responsive */
    .navbar {
        padding: 0.35rem 0 !important;
        min-height: 55px !important;
    }
    
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .navbar-collapse {
        margin-top: 0.4rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.35rem 0.6rem !important;
    }
    
    body {
        padding-top: 60px;
    }
    
    /* Other responsive */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero-section {
        min-height: 75vh;
        padding: 1.6rem 0;
    }
    
    .category-card, .product-card, .contact-card {
        margin-bottom: 1.6rem;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 55px;
    }
    
    .navbar {
        min-height: 50px !important;
    }
    
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-buttons {
        margin-bottom: 1.6rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.8rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-content {
        padding: 1rem;
    }
    
    .category-card, .contact-card {
        padding: 1.2rem;
    }
    
    .pagination .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .btn-lg {
        padding: 0.65rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-content {
        padding: 0.8rem;
    }
    
    .category-card, .contact-card {
        padding: 1rem;
    }
    
    .stat-item h3 {
        font-size: 1.2rem;
    }
    
    .stat-item p {
        font-size: 0.7rem;
    }
    
    footer {
        padding: 1.6rem 0 1.2rem;
    }
    
    .social-links a {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }
    
    .hero-title {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .pagination .page-link {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* Animations - Keep original */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px); /* Reduced */
    }
    60% {
        transform: translateY(-4px); /* Reduced */
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-light) !important;
}

.shadow {
    box-shadow: var(--shadow-medium) !important;
}

.shadow {
    box-shadow: var(--shadow-hover) !important;
}

.rounded-custom {
    border-radius: var(--border-radius) !important;
}

.rounded-custom-sm {
    border-radius: var(--border-radius-sm) !important;
}

.rounded-custom-lg {
    border-radius: var(--border-radius-lg) !important;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 0.8rem; /* Reduced */
    height: 0.8rem; /* Reduced */
}

/* Hover Effects - Compact */
.hover-lift:hover {
    transform: translateY(-2px); /* Reduced */
    box-shadow: var(--shadow-medium);
}

.hover-scale:hover {
    transform: scale(1.03); /* Reduced */
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.25); /* Reduced */
}

/* Print Styles */
@media print {
    .navbar,
    .hero-section,
    footer,
    .btn,
    .pagination {
        display: none !important;
    }
    
    body {
        font-size: 11pt; /* Reduced */
        line-height: 1.3; /* Reduced */
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --shadow-light: 0 2px 4px rgba(0,0,0,0.3);
        --shadow-medium: 0 4px 8px rgba(0,0,0,0.4);
        --shadow-hover: 0 6px 12px rgba(0,0,0,0.5);
    }
    
    .btn {
        border-width: 2px; /* Keep for accessibility */
    }
    
    .form-control,
    .form-select {
        border-width: 2px; /* Keep for accessibility */
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --gray-light: #2d3748;
        --shadow-light: 0 2px 10px rgba(0,0,0,0.3);
        --shadow-medium: 0 4px 20px rgba(0,0,0,0.4);
        --shadow-hover: 0 10px 30px rgba(0,0,0,0.5);
    }
}

/* Custom Scrollbar - Compact */
::-webkit-scrollbar {
    width: 6px; /* Reduced */
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-dark);
    border-radius: 3px; /* Reduced */
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Compact Spacing Utilities */
.py-5 {
    padding-top: 2rem !important; /* Override Bootstrap - Reduced */
    padding-bottom: 2rem !important; /* Override Bootstrap - Reduced */
}

.py-4 {
    padding-top: 1.6rem !important; /* Override Bootstrap - Reduced */
    padding-bottom: 1.6rem !important; /* Override Bootstrap - Reduced */
}

.py-3 {
    padding-top: 1.2rem !important; /* Override Bootstrap - Reduced */
    padding-bottom: 1.2rem !important; /* Override Bootstrap - Reduced */
}

.mb-5 {
    margin-bottom: 2rem !important; /* Override Bootstrap - Reduced */
}

.mb-4 {
    margin-bottom: 1.6rem !important; /* Override Bootstrap - Reduced */
}

.mb-3 {
    margin-bottom: 1.2rem !important; /* Override Bootstrap - Reduced */
}

.mt-5 {
    margin-top: 2rem !important; /* Override Bootstrap - Reduced */
}

.mt-4 {
    margin-top: 1.6rem !important; /* Override Bootstrap - Reduced */
}

/* Gap utilities override */
.g-4 > * {
    padding: 0.8rem !important; /* Reduced grid gap */
}

.gap-3 {
    gap: 1rem !important; /* Reduced */
}

.gap-2 {
    gap: 0.6rem !important; /* Reduced */
}

/* Text size overrides for compact look */
.lead {
    font-size: 1rem !important; /* Reduced */
    font-weight: 400;
}

.small {
    font-size: 0.75rem !important; /* Reduced */
}

/* Input group compact */
.input-group {
    font-size: 0.85rem; /* Reduced */
}

.input-group .btn {
    padding: 0.5rem 0.8rem; /* Compact */
}

/* List compact */
.list-unstyled li {
    margin-bottom: 0.4rem !important; /* Reduced */
}

/* Row spacing */
.row {
    margin-left: -0.6rem !important; /* Reduced */
    margin-right: -0.6rem !important; /* Reduced */
}

.row > * {
    padding-left: 0.6rem !important; /* Reduced */
    padding-right: 0.6rem !important; /* Reduced */
}