html, body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333;
}

/* Durakey Brand Colors - Professional Automotive Industry Style */
:root {
    /* Primary Brand Colors - Based on Durakey Logo */
    --durakey-primary: #2B5797;        /* Deep Professional Blue */
    --durakey-secondary: #1E4176;      /* Darker Blue */
    --durakey-accent: #4A90A4;         /* Light Blue Accent */
    --durakey-success: #28A745;        /* Green for success states */
    
    /* Neutral Colors */
    --durakey-dark: #1A1A1A;          /* Almost Black */
    --durakey-gray-dark: #495057;      /* Dark Gray */
    --durakey-gray: #6C757D;           /* Medium Gray */
    --durakey-gray-light: #ADB5BD;     /* Light Gray */
    --durakey-light: #F8F9FA;          /* Very Light Gray */
    --durakey-white: #FFFFFF;          /* Pure White */
    
    /* Background Colors */
    --durakey-bg-primary: #F5F7FA;     /* Subtle Blue-Gray Background */
    --durakey-bg-secondary: #E8EEF5;   /* Slightly Darker Blue-Gray */
    
    /* Gradients */
    --durakey-gradient-primary: linear-gradient(135deg, #2B5797 0%, #1E4176 100%);
    --durakey-gradient-light: linear-gradient(135deg, #F5F7FA 0%, #E8EEF5 100%);
    --durakey-gradient-accent: linear-gradient(135deg, #4A90A4 0%, #2B5797 100%);
    
    /* Legacy support - remove old variables */
    --durakey-green-gradient: var(--durakey-gradient-primary);
    --durakey-blue-gradient: var(--durakey-gradient-primary);
    
    /* Shadows */
    --durakey-shadow-sm: 0 2px 8px rgba(43, 87, 151, 0.08);
    --durakey-shadow-md: 0 4px 16px rgba(43, 87, 151, 0.12);
    --durakey-shadow-lg: 0 8px 32px rgba(43, 87, 151, 0.16);
}

a, .btn-link {
    color: var(--durakey-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, .btn-link:hover {
    color: var(--durakey-secondary);
}

.btn-primary {
    color: var(--durakey-white);
    background: var(--durakey-gradient-primary);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--durakey-shadow-sm);
}

.btn-primary:hover {
    background: var(--durakey-gradient-accent);
    transform: translateY(-2px);
    box-shadow: var(--durakey-shadow-md);
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(43, 87, 151, 0.25);
}

.btn-secondary {
    color: var(--durakey-primary);
    background-color: transparent;
    border: 2px solid var(--durakey-primary);
    padding: 10px 28px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--durakey-primary);
    color: var(--durakey-white);
    transform: translateY(-2px);
    box-shadow: var(--durakey-shadow-sm);
}

.btn-outline-primary {
    color: var(--durakey-primary);
    border-color: var(--durakey-primary);
}

.btn-outline-primary:hover {
    background-color: var(--durakey-primary);
    border-color: var(--durakey-primary);
    color: var(--durakey-white);
}

.text-primary {
    color: var(--durakey-primary) !important;
}

.text-success {
    color: var(--durakey-success) !important;
}

.bg-primary {
    background: var(--durakey-gradient-primary) !important;
}

/* Navigation Styles */
.navbar-dark {
    background: var(--durakey-gradient-primary) !important;
    box-shadow: var(--durakey-shadow-md);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--durakey-white) !important;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link:hover {
    color: var(--durakey-white) !important;
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--durakey-white) !important;
    font-weight: 600;
}

/* Nav tabs inside admin content area need dark text (global .nav-link is white for navbar) */
.admin-main .nav-tabs .nav-link {
    color: #495057 !important;
}

.admin-main .nav-tabs .nav-link:hover {
    color: #212529 !important;
}

.admin-main .nav-tabs .nav-link.active {
    color: #212529 !important;
    font-weight: 600;
}

/* Hero Section Styles */
.hero-section {
    background: var(--durakey-gradient-light);
    padding: 20px 0; /* Reduced from 80px 0 */
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%232B5797" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-section img[alt="Durakey Logo"] {
    margin-bottom: 10px !important; /* Reduced from 40px */
    height: 200px !important; /* Slightly smaller logo */
}

.hero-content {
    position: relative;
    z-index: 2;
}

.display-1 {
    font-size: 2.5rem; /* Reduced from 3.5rem */
    font-weight: 800;
    color: var(--durakey-dark);
    line-height: 1.2;
    margin-bottom: 1rem; /* Less space below heading */
}

.lead-large {
    font-size: 1.5rem; /* Slightly smaller */
    color: var(--durakey-gray);
    font-weight: 400;
    margin-bottom: 1.2rem; /* Less space below lead */
}

/* Card Styles */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--durakey-shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
    background: var(--durakey-white);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--durakey-shadow-lg);
}

.card-body {
    padding: 2rem;
}

.card-header {
    background: var(--durakey-gradient-primary);
    color: var(--durakey-white);
    border: none;
    padding: 1.5rem 2rem;
    font-weight: 600;
}

.card-title {
    font-weight: 700;
    color: var(--durakey-dark);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--durakey-gray);
    line-height: 1.6;
}

/* Feature Icons */
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--durakey-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--durakey-white);
    font-size: 1.5rem;
    box-shadow: var(--durakey-shadow-sm);
}

/* Stats Section */
.stats-section {
    background: var(--durakey-gradient-primary);
    color: var(--durakey-white);
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    margin-bottom: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--durakey-white);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    color: var(--durakey-white);
}

/* Form Controls */
.form-control, .form-select {
    border: 2px solid var(--durakey-bg-secondary);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--durakey-primary);
    box-shadow: 0 0 0 0.2rem rgba(43, 87, 151, 0.25);
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: #dc3545;
    border-width: 2px;
    background-image: none; /* Remove default Bootstrap icon */
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

/* Enhanced form validation feedback */
.invalid-feedback {
    font-size: 0.9rem;
    color: #dc3545;
    font-weight: 500;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.invalid-feedback::before {
    content: "\f33a"; /* Bootstrap Icons exclamation-circle */
    font-family: "bootstrap-icons";
    font-size: 1rem;
}

.valid-feedback {
    font-size: 0.9rem;
    color: var(--durakey-success);
    font-weight: 500;
    margin-top: 0.5rem;
}

.form-control.is-valid, .form-select.is-valid {
    border-color: var(--durakey-success);
    border-width: 2px;
}

.form-select-lg {
    padding: 16px 20px;
    font-size: 1.1rem;
}

/* Ensure consistent height for license plate search inputs */
.form-control-lg, .form-select-lg {
    padding: 16px 20px;
    font-size: 1.1rem;
    height: calc(3.5rem + 2px);
    line-height: 1.5;
}

/* License plate specific styling to ensure perfect alignment */
#stateSelect, #plateInput {
    height: calc(3.5rem + 2px);
    padding: 16px 20px;
    font-size: 1.1rem;
    line-height: 1.5;
    border: 2px solid var(--durakey-bg-secondary);
    border-radius: 8px;
}

#stateSelect:focus, #plateInput:focus {
    border-color: var(--durakey-primary);
    box-shadow: 0 0 0 0.2rem rgba(43, 87, 151, 0.25);
}

/* Focus States */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(43, 87, 151, 0.25);
}

/* Accessibility: Visible focus indicators for keyboard navigation */
:focus-visible {
    outline: 3px solid var(--durakey-accent);
    outline-offset: 2px;
}

/* Remove outline for mouse users, keep for keyboard */
:focus:not(:focus-visible) {
    outline: none;
}

/* Enhanced focus for form controls */
.form-control:focus-visible,
.form-select:focus-visible {
    outline: 3px solid var(--durakey-accent);
    outline-offset: 1px;
    border-color: var(--durakey-primary);
}

/* Enhanced focus for buttons */
.btn:focus-visible {
    outline: 3px solid var(--durakey-accent);
    outline-offset: 2px;
}

/* Enhanced focus for links */
a:focus-visible {
    outline: 3px solid var(--durakey-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Enhanced focus for cards (interactive) */
.card:focus-visible,
.product-card:focus-visible {
    outline: 3px solid var(--durakey-primary);
    outline-offset: 2px;
}

/* Enhanced focus for nav links */
.nav-link:focus-visible {
    outline: 2px solid var(--durakey-white);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Professional Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--durakey-dark);
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }

/* Section Spacing */
.section {
    padding: 80px 0;
}

.section-sm {
    padding: 60px 0;
}

/* Content Sections */
.content-section {
    background: var(--durakey-white);
}

.content-section:nth-child(even) {
    background: var(--durakey-light);
}

/* Call to Action Styles */
.cta-section {
    background: var(--durakey-gradient-primary);
    color: var(--durakey-white);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--durakey-white);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Product Grid Enhancements */
.product-grid .card {
    height: 100%;
}

.product-card {
    transition: all 0.3s ease;
    border: 1px solid var(--durakey-bg-secondary);
}

.product-card:hover {
    border-color: var(--durakey-primary);
    transform: translateY(-8px);
    box-shadow: var(--durakey-shadow-lg);
}

/* Out-of-Stock Product Styling - Enhanced visibility */
.product-card.out-of-stock {
    position: relative;
    opacity: 0.75;
    border: 2px solid #dc3545;
}

.product-card.out-of-stock::before {
    content: "OUT OF STOCK";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(220, 53, 69, 0.95);
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    z-index: 10;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    text-transform: uppercase;
}

.product-card.out-of-stock:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.25);
    border-color: #dc3545;
}

.product-card.out-of-stock .product-image,
.product-card.out-of-stock img {
    filter: grayscale(30%);
}

/* Alternative: Out-of-stock banner style (for existing implementations) */
.out-of-stock-banner {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    border-radius: 4px 4px 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-image, .img-fluid.product-image, .product-card img, .product-card .img-fluid {
    width: 100%;
    aspect-ratio: 1/1;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    background: #f8f9fa;
}

/* For image containers in cards */
.product-card .col-md-6, .product-card .img-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
}

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

/* Product badges - enhanced readability */
.product-badge,
.badge-sku,
.badge-grade,
.badge-buttons {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-sku {
    background: var(--durakey-bg-secondary);
    color: var(--durakey-gray-dark);
    border: 1px solid var(--durakey-gray-light);
}

.badge-grade {
    background: linear-gradient(135deg, var(--durakey-accent) 0%, var(--durakey-primary) 100%);
    color: white;
}

.badge-buttons {
    background: var(--durakey-light);
    color: var(--durakey-gray-dark);
    border: 1px solid var(--durakey-bg-secondary);
}

/* Badge container for product cards */
.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.badge.bg-primary {
    background: var(--durakey-primary) !important;
}

.badge.bg-success {
    background: var(--durakey-success) !important;
}

.badge.bg-info {
    background: var(--durakey-accent) !important;
}

/* Search Enhancement */
.search-bar {
    max-width: 500px;
    margin: 0 auto;
}

.search-bar .form-control {
    border-radius: 50px;
    padding: 12px 20px;
    border: 2px solid var(--durakey-bg-secondary);
    font-size: 1.1rem;
}

.search-bar .input-group-text {
    border-radius: 50px 0 0 50px;
    border: 2px solid var(--durakey-bg-secondary);
    border-right: none;
}

/* Vehicle Search Specific Styles */
.vehicle-search-section {
    background: var(--durakey-white);
}

.vehicle-search .form-select:disabled {
    background-color: var(--durakey-light);
    opacity: 0.65;
}

.vehicle-search .card {
    transition: all 0.3s ease;
    box-shadow: var(--durakey-shadow-md);
}

.vehicle-search .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--durakey-shadow-lg);
}

/* Loading States */
.spinner-border {
    color: var(--durakey-primary);
}

.spinner-border.text-primary {
    color: var(--durakey-primary) !important;
}

/* Modal Enhancements */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: var(--durakey-shadow-lg);
}

.modal-header {
    background: var(--durakey-light);
    border-bottom: 1px solid var(--durakey-bg-secondary);
    border-radius: 16px 16px 0 0;
}

.modal-title {
    font-weight: 700;
    color: var(--durakey-dark);
}

/* Push To Start Modal Enhancements */
.push-to-start-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: var(--durakey-shadow-lg);
    overflow: hidden;
}

.push-to-start-modal .modal-header {
    background: var(--durakey-gradient-primary);
    color: var(--durakey-white);
    border-bottom: none;
    padding: 1.5rem 2rem;
}

.push-to-start-modal .modal-title {
    font-weight: 700;
    font-size: 1.3rem;
}

.push-to-start-modal .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.push-to-start-modal .btn-close:hover {
    opacity: 1;
}

.push-to-start-modal .modal-body {
    padding: 2.5rem;
    background: var(--durakey-white);
}

.push-to-start-modal .feature-icon {
    width: 80px;
    height: 80px;
    background: var(--durakey-gradient-accent);
    font-size: 2rem;
    box-shadow: var(--durakey-shadow-md);
}

.push-to-start-modal .btn-lg {
    padding: 15px 30px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.push-to-start-modal .btn-primary {
    background: var(--durakey-gradient-primary);
    border-color: var(--durakey-primary);
}

.push-to-start-modal .btn-primary:hover {
    background: var(--durakey-gradient-accent);
    transform: translateY(-2px);
    box-shadow: var(--durakey-shadow-md);
}

.push-to-start-modal .btn-outline-primary {
    color: var(--durakey-primary);
    border-color: var(--durakey-primary);
    background: transparent;
}

.push-to-start-modal .btn-outline-primary:hover {
    background: var(--durakey-primary);
    border-color: var(--durakey-primary);
    color: var(--durakey-white);
    transform: translateY(-2px);
    box-shadow: var(--durakey-shadow-sm);
}

.push-to-start-modal h6 {
    color: var(--durakey-dark);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.push-to-start-modal .text-muted {
    color: var(--durakey-gray) !important;
    font-size: 1rem;
    line-height: 1.5;
}

.push-to-start-modal small.text-muted {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Modal backdrop enhancement */
.push-to-start-modal {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Responsive adjustments for Push To Start modal */
@media (max-width: 768px) {
    .push-to-start-modal .modal-body {
        padding: 2rem 1.5rem;
    }
    
    .push-to-start-modal .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .push-to-start-modal .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .push-to-start-modal .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

/* Difficulty Bar Styles - Updated to hide text values */
.difficulty-bar {
    position: relative;
    background-color: var(--durakey-light);
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    border: 1px solid var(--durakey-bg-secondary);
    margin-bottom: 4px;
}

.difficulty-fill {
    height: 100%;
    border-radius: 9px;
    transition: width 0.8s ease-in-out;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.1) 75%, transparent 75%, transparent);
    background-size: 8px 8px;
    animation: difficultMove 2s linear infinite;
}

.difficulty-fill-gradient {
    height: 100%;
    border-radius: 9px;
    transition: all 0.8s ease-in-out;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.difficulty-fill-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%, transparent);
    background-size: 12px 12px;
    animation: gradientMove 3s linear infinite;
    border-radius: 9px;
}

/* Screen-reader accessible hidden text for difficulty values */
/* Using sr-only technique instead of display:none for accessibility */
.difficulty-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Utility class for screen-reader only content */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@keyframes difficultMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 8px 0;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 12px 0;
    }
}

/* Enhanced difficulty bar for better visibility */
.difficulty-bar:hover .difficulty-fill,
.difficulty-bar:hover .difficulty-fill-gradient {
    opacity: 0.95;
    transform: scaleY(1.1);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Remove hover effects for text since it's hidden */
.difficulty-bar:hover .difficulty-text {
    display: none !important;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Hero Section Mobile Adjustments */
    .hero-section {
        padding: 40px 0 !important; /* Further reduced padding for mobile */
    }
    
    .hero-section img[alt="Durakey Logo"] {
        height: 120px !important; /* Smaller logo on mobile */
        margin-bottom: 15px !important;
    }
    
    /* Header Text Mobile Sizing */
    .display-1 {
        font-size: 1.8rem !important; /* Much smaller on mobile */
        line-height: 1.3;
        margin-bottom: 0.8rem !important;
    }
    
    .lead-large {
        font-size: 1.1rem !important; /* Smaller lead text */
        margin-bottom: 1rem !important;
        padding: 0 15px; /* Add horizontal padding */
    }
    
    /* General heading adjustments for mobile */
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.3rem !important; }
    h4 { font-size: 1.1rem !important; }
    
    /* Content sections mobile spacing */
    .section {
        padding: 40px 0 !important;
    }
    
    .section-sm {
        padding: 30px 0 !important;
    }
    
    /* Card adjustments for mobile */
    .card-body {
        padding: 1.5rem !important;
    }
    
    .card-header {
        padding: 1rem 1.5rem !important;
        font-size: 1rem;
    }
    
    /* Form controls mobile sizing */
    .form-control-lg, .form-select-lg {
        padding: 12px 16px !important;
        font-size: 1rem !important;
        height: calc(2.8rem + 2px) !important;
    }
    
    #stateSelect, #plateInput {
        height: calc(2.8rem + 2px) !important;
        padding: 12px 16px !important;
        font-size: 1rem !important;
    }
    
    /* Button adjustments for mobile */
    .btn-lg {
        padding: 12px 24px !important;
        font-size: 1rem !important;
    }
    
    /* Product grid mobile adjustments */
    .product-image, .img-fluid.product-image, .product-card img, .product-card .img-fluid {
        height: 180px !important;
    }
    
    /* Modal adjustments for mobile */
    .modal-dialog {
        margin: 10px !important;
        max-width: calc(100% - 20px) !important;
    }
    
    .modal-xl {
        max-width: calc(100% - 20px) !important;
    }
    
    .modal-body {
        padding: 1rem !important;
    }
    
    .modal-header {
        padding: 1rem !important;
    }
    
    .modal-title {
        font-size: 1.2rem !important;
    }
    
    /* Stats section mobile adjustments */
    .stat-number {
        font-size: 2.2rem !important;
    }
    
    .stat-label {
        font-size: 1rem !important;
    }
    
    /* Feature icon mobile sizing */
    .feature-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Navigation adjustments for mobile */
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .navbar-brand img {
        height: 35px !important;
    }
    
    /* Content spacing for mobile */
    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Tab content mobile adjustments */
    .nav-tabs .nav-link {
        padding: 8px 12px !important;
        font-size: 0.9rem !important;
        margin-right: 1px !important;
    }
    
    .tab-content {
        min-height: 150px !important;
    }
    
    .tab-pane {
        min-height: 120px !important;
    }
    
    /* Badge mobile sizing */
    .badge {
        font-size: 0.75rem !important;
        padding: 4px 8px !important;
    }
    
    /* Table mobile adjustments */
    .table td {
        padding: 6px 8px !important;
        font-size: 0.9rem !important;
    }
    
    /* Alert mobile spacing */
    .alert {
        padding: 12px !important;
        margin-top: 12px !important;
    }
    
    .alert h6 {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
    }
}

@media (max-width: 576px) {
    /* Extra small mobile devices */
    .hero-section {
        padding: 30px 0 !important;
    }
    
    .hero-section img[alt="Durakey Logo"] {
        height: 100px !important;
        margin-bottom: 10px !important;
    }
    
    .display-1 {
        font-size: 1.5rem !important;
        line-height: 1.2;
        margin-bottom: 0.6rem !important;
    }
    
    .lead-large {
        font-size: 1rem !important;
        padding: 0 10px;
        line-height: 1.4;
    }
    
    /* Even smaller headers for very small screens */
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.3rem !important; }
    h3 { font-size: 1.2rem !important; }
    h4 { font-size: 1rem !important; }
    
    /* Compact form controls */
    .form-control, .form-select {
        padding: 10px 12px !important;
        font-size: 0.9rem !important;
    }
    
    .form-control-lg, .form-select-lg {
        padding: 10px 14px !important;
        font-size: 0.95rem !important;
        height: calc(2.5rem + 2px) !important;
    }
    
    /* Compact buttons */
    .btn {
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
    }
    
    .btn-lg {
        padding: 10px 20px !important;
        font-size: 0.95rem !important;
    }
    
    /* Very compact cards */
    .card-body {
        padding: 1rem !important;
    }
    
    .card-header {
        padding: 0.8rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Product grid extra small adjustments */
    .product-image, .img-fluid.product-image, .product-card img, .product-card .img-fluid {
        height: 150px !important;
    }
    
    /* Modal extra small adjustments */
    .modal-dialog {
        margin: 5px !important;
        max-width: calc(100% - 10px) !important;
    }
    
    .modal-body {
        padding: 0.8rem !important;
    }
    
    .modal-header {
        padding: 0.8rem !important;
    }
    
    .modal-title {
        font-size: 1.1rem !important;
    }
    
    /* Compact stats */
    .stat-number {
        font-size: 2rem !important;
    }
    
    .stat-label {
        font-size: 0.9rem !important;
    }
    
    /* Very compact feature icons */
    .feature-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
    }
    
    /* Compact navigation */
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .navbar-brand img {
        height: 30px !important;
    }
    
    /* Extra compact tabs - keeping readable */
    .nav-tabs .nav-link {
        padding: 8px 10px !important;
        font-size: 0.85rem !important; /* Increased from 0.8rem for readability */
        white-space: nowrap;
    }

    /* Allow horizontal scroll for tabs on very small screens */
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .nav-tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }
    
    /* Compact table */
    .table td {
        padding: 4px 6px !important;
        font-size: 0.8rem !important;
    }
    
    /* Very compact sections */
    .section {
        padding: 30px 0 !important;
    }
    
    .section-sm {
        padding: 20px 0 !important;
    }
    
    /* Better container spacing for very small screens */
    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* Landscape mobile adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 20px 0 !important;
    }
    
    .hero-section img[alt="Durakey Logo"] {
        height: 80px !important;
        margin-bottom: 8px !important;
    }
    
    .display-1 {
        font-size: 1.6rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .lead-large {
        font-size: 1rem !important;
        margin-bottom: 0.8rem !important;
    }

    .section {
        padding: 30px 0 !important;
    }
}

/* ======================================
   SKELETON LOADER STYLES
   ====================================== */

/* Base skeleton animation */
@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Base skeleton element */
.skeleton-line,
.skeleton-image,
.skeleton-circle,
.skeleton-button,
.skeleton-input,
.skeleton-badge {
    background: linear-gradient(
        90deg,
        var(--durakey-bg-secondary) 25%,
        var(--durakey-light) 50%,
        var(--durakey-bg-secondary) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

/* Product Card Skeleton */
.skeleton-card {
    background: var(--durakey-white);
    border-radius: 16px;
    box-shadow: var(--durakey-shadow-sm);
    overflow: hidden;
    height: 100%;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    border-radius: 0;
}

.skeleton-content {
    padding: 1.5rem;
}

.skeleton-title {
    height: 24px;
    width: 80%;
    margin-bottom: 12px;
}

.skeleton-subtitle {
    height: 18px;
    width: 60%;
    margin-bottom: 16px;
}

.skeleton-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.skeleton-badge {
    height: 24px;
    width: 60px;
    border-radius: 4px;
}

.skeleton-text {
    height: 14px;
    width: 100%;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 70%;
}

/* Table Row Skeleton */
.skeleton-row {
    background: var(--durakey-white);
}

.skeleton-cell {
    height: 20px;
    width: 80%;
    margin: 8px 0;
}

/* Text Block Skeleton */
.skeleton-text-block {
    padding: 1rem 0;
}

/* Circle Skeleton */
.skeleton-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-circle.sm {
    width: 32px;
    height: 32px;
}

.skeleton-circle.lg {
    width: 64px;
    height: 64px;
}

/* Button Skeleton */
.skeleton-button {
    height: 44px;
    width: 120px;
    border-radius: 8px;
}

.skeleton-button.sm {
    height: 36px;
    width: 80px;
}

.skeleton-button.lg {
    height: 52px;
    width: 160px;
}

/* Form Skeleton */
.skeleton-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skeleton-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-label {
    height: 16px;
    width: 100px;
}

.skeleton-input {
    height: 48px;
    width: 100%;
    border-radius: 8px;
}

/* Product Grid Skeleton */
.skeleton-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Responsive skeleton adjustments */
@media (max-width: 768px) {
    .skeleton-image {
        height: 150px;
    }

    .skeleton-content {
        padding: 1rem;
    }

    .skeleton-title {
        height: 20px;
    }

    .skeleton-button.lg {
        height: 44px;
        width: 100%;
    }
}

/* ======================================
   TOAST NOTIFICATION STYLES
   ====================================== */

.toast-container .toast {
    min-width: 300px;
    max-width: 400px;
    margin-bottom: 0.75rem;
    border: none;
    border-radius: 12px;
    box-shadow: var(--durakey-shadow-lg);
    overflow: hidden;
    animation: toast-slide-in 0.3s ease-out;
}

@keyframes toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-container .toast-header {
    border-bottom: none;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.toast-container .toast-body {
    padding: 1rem;
    background: var(--durakey-white);
    color: var(--durakey-dark);
}

/* Toast progress bar */
.toast-progress {
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    animation: toast-progress linear forwards;
    transform-origin: left;
}

@keyframes toast-progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Toast type variants */
.toast-success .toast-progress-bar {
    background: var(--durakey-success);
}

.toast-error .toast-progress-bar {
    background: #dc3545;
}

.toast-warning .toast-progress-bar {
    background: #ffc107;
}

.toast-info .toast-progress-bar {
    background: var(--durakey-accent);
}

/* Toast hover effect */
.toast-container .toast:hover {
    transform: scale(1.02);
    box-shadow: var(--durakey-shadow-lg);
}

/* Responsive toasts */
@media (max-width: 576px) {
    .toast-container {
        left: 0.5rem !important;
        right: 0.5rem !important;
        bottom: 0.5rem !important;
    }

    .toast-container .toast {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

/* ======================================
   PAGINATION STYLES
   ====================================== */

.pagination-container {
    margin-top: 2rem;
}

.pagination .page-link {
    color: var(--durakey-primary);
    border: 1px solid var(--durakey-bg-secondary);
    padding: 0.5rem 0.85rem;
    margin: 0 2px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.pagination .page-link:hover {
    background-color: var(--durakey-bg-secondary);
    border-color: var(--durakey-primary);
    color: var(--durakey-primary);
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(43, 87, 151, 0.25);
}

.pagination .page-item.active .page-link {
    background: var(--durakey-gradient-primary);
    border-color: var(--durakey-primary);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: var(--durakey-gray-light);
    background-color: var(--durakey-light);
    border-color: var(--durakey-bg-secondary);
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--durakey-gray);
}

/* Responsive pagination */
@media (max-width: 576px) {
    .pagination .page-link {
        padding: 0.4rem 0.65rem;
        font-size: 0.9rem;
    }

    .pagination-info {
        font-size: 0.8rem;
    }
}

/* ======================================
   BREADCRUMB STYLES
   ====================================== */

.breadcrumb-container {
    padding: 1rem 0;
    background: var(--durakey-light);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0 1rem;
}

.breadcrumb-item {
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--durakey-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--durakey-secondary);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--durakey-gray);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--durakey-gray-light);
    content: ">";
    padding: 0 0.5rem;
}

/* Responsive breadcrumbs */
@media (max-width: 576px) {
    .breadcrumb-container {
        padding: 0.75rem 0;
    }

    .breadcrumb-item {
        font-size: 0.85rem;
    }

    .breadcrumb {
        padding: 0 0.75rem;
    }
}