/* Green Theme for Eserviss.Pumity.lv */

/* ===============================================
   ACTION BUTTONS STYLING (MODERN DESIGN)
   =============================================== */

/* Base action button styling */
.action-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: 2px solid transparent !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

/* Cancel button (red theme) */
.cancel-btn {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%) !important;
    border-color: #dc3545 !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3) !important;
}

.cancel-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #a02834 100%) !important;
    border-color: #bd2130 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4) !important;
}

.cancel-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3) !important;
}

/* Repeat button (warning/orange theme) */
.repeat-btn {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    border-color: #ffc107 !important;
    color: #212529 !important;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3) !important;
}

.repeat-btn:hover {
    background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%) !important;
    border-color: #d39e00 !important;
    color: #212529 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4) !important;
}

.repeat-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3) !important;
}

/* Details button (success/green theme) */
.details-btn {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
    border-color: #28a745 !important;
    color: white !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3) !important;
}

.details-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1c7430 100%) !important;
    border-color: #1e7e34 !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4) !important;
}

.details-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3) !important;
}

/* Cargobus specific styling */
.cargobus-cancel {
    background: linear-gradient(135deg, #dc3545 0%, #8b1538 100%) !important;
    border: 2px solid #dc3545 !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4) !important;
}

.cargobus-cancel:hover {
    background: linear-gradient(135deg, #c82333 0%, #721c24 100%) !important;
    border-color: #bd2130 !important;
    transform: translateY(-1px) scale(1.05) !important;
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.5) !important;
}

/* Status refresh button styling */
.refresh-status-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%) !important;
    border: 2px solid #17a2b8 !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3) !important;
}

.refresh-status-btn:hover {
    background: linear-gradient(135deg, #138496 0%, #0e6674 100%) !important;
    border-color: #117a8b !important;
    transform: translateY(-1px) scale(1.05) !important;
    box-shadow: 0 6px 16px rgba(23, 162, 184, 0.4) !important;
}

.refresh-status-btn:disabled {
    opacity: 0.6 !important;
    transform: none !important;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.2) !important;
}

/* Pulse animation for important actions */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.cancel-btn:focus {
    animation: pulse 1.5s infinite;
}

/* Loading state */
.action-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.action-btn .spinner-border-sm {
    width: 14px !important;
    height: 14px !important;
    border-width: 2px !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .action-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }
}

/* Accessibility improvements */
.action-btn:focus {
    outline: 2px solid currentColor !important;
    outline-offset: 2px !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .action-btn {
        border-width: 3px !important;
    }
}

/* Enhanced Design System Variables */
:root {
    /* Primary Colors - Professional Green Palette */
    --primary-50: #e8f5e8;
    --primary-100: #c8e6c8;
    --primary-200: #a5d6a5;
    --primary-300: #81c681;
    --primary-400: #66bb6a;
    --primary-500: #4caf50;  /* Main brand color */
    --primary-600: #43a047;
    --primary-700: #388e3c;
    --primary-800: #2e7d32;  /* Current primary-green */
    --primary-900: #1b5e20;  /* Current primary-green-dark */

    /* Blue Colors for Send Parcel Button */
    --blue-send-parcel: #1976d2;
    --blue-send-parcel-hover: #1565c0;
    --blue-send-parcel-active: #0d47a1;

    /* Secondary Colors - Professional Accent */
    --secondary-50: #fff8e1;
    --secondary-100: #ffecb3;
    --secondary-200: #ffe082;
    --secondary-300: #ffd54f;  /* Current yellow-accent */
    --secondary-400: #ffca28;
    --secondary-500: #ffc107;

    /* Neutral Colors - Extended Gray Scale */
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;  /* Current gray-light */
    --neutral-200: #eeeeee;
    --neutral-300: #e0e0e0;
    --neutral-400: #bdbdbd;
    --neutral-500: #9e9e9e;
    --neutral-600: #757575;
    --neutral-700: #616161;
    --neutral-800: #424242;
    --neutral-900: #212121;

    /* Semantic Colors */
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --info: #2196f3;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #e3f2fd;  /* Changed to blue background */
    --bg-tertiary: #f0f8f0;
    --bg-cabinet: #e3f2fd;  /* Light blue background for cabinet */

    /* Typography Scale */
    --font-family-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-xs: 0.75rem;     /* 12px */
    --font-size-sm: 0.875rem;    /* 14px */
    --font-size-base: 1rem;      /* 16px */
    --font-size-lg: 1.125rem;    /* 18px */
    --font-size-xl: 1.25rem;     /* 20px */
    --font-size-2xl: 1.5rem;     /* 24px */
    --font-size-3xl: 1.875rem;   /* 30px */
    --font-size-4xl: 2.25rem;    /* 36px */

    /* Spacing Scale (4px based) */
    --spacing-1: 0.25rem;   /* 4px */
    --spacing-2: 0.5rem;    /* 8px */
    --spacing-3: 0.75rem;   /* 12px */
    --spacing-4: 1rem;      /* 16px */
    --spacing-5: 1.25rem;   /* 20px */
    --spacing-6: 1.5rem;    /* 24px */
    --spacing-8: 2rem;      /* 32px */
    --spacing-10: 2.5rem;   /* 40px */
    --spacing-12: 3rem;     /* 48px */
    --spacing-16: 4rem;     /* 64px */

    /* Border Radius */
    --radius-sm: 0.25rem;   /* 4px */
    --radius-md: 0.375rem;  /* 6px */
    --radius-lg: 0.5rem;    /* 8px */
    --radius-xl: 0.75rem;   /* 12px */

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Legacy variable compatibility */
    --primary-green: var(--primary-800);
    --primary-green-dark: var(--primary-900);
    --primary-green-light: var(--primary-500);
    --yellow-accent: var(--secondary-300);
    --yellow-accent-dark: var(--secondary-400);
    --text-light: #ffffff;
    --text-dark: var(--neutral-800);
    --gray-light: var(--neutral-100);

    /* Blue Button Color Palette - Strategic Integration */
    --blue-primary: #1976d2;         /* Primary blue for action buttons */
    --blue-primary-hover: #1565c0;   /* Hover state */
    --blue-primary-active: #0d47a1;  /* Active/pressed state */
    --blue-focus: #2196f3;           /* Focus rings and form outlines */
    --blue-light: rgba(33, 150, 243, 0.1); /* Focus shadow color */
}

/* Header Styles */
.header-top {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

/* Navigation Bar */
.navbar.bg-success {
    background-color: var(--primary-green) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    transition: all 0.3s ease;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    background-color: var(--primary-green-dark);
    color: var(--text-light) !important;
}

/* Enhanced Button System */
.btn {
    font-family: var(--font-family-primary);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: var(--font-size-sm);
    padding: var(--spacing-3) var(--spacing-4);
    border: 1px solid transparent;
    min-height: 44px; /* Touch-friendly minimum */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Primary Button (Success) */
.btn-success {
    background-color: var(--primary-600);
    border-color: var(--primary-600);
    color: var(--text-light);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.btn-success:hover {
    background-color: var(--primary-700);
    border-color: var(--primary-700);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-success:active {
    background-color: var(--primary-800);
    border-color: var(--primary-800);
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Secondary Buttons */
.btn-outline-success {
    background-color: transparent;
    border-color: var(--primary-600);
    color: var(--primary-600);
    font-weight: 500;
}

.btn-outline-success:hover {
    background-color: var(--primary-50);
    border-color: var(--primary-700);
    color: var(--primary-700);
}

/* Warning Button */
.btn-warning {
    background-color: var(--warning);
    border-color: var(--warning);
    color: var(--text-light);
    font-weight: 500;
}

.btn-warning:hover {
    background-color: #f57c00;
    border-color: #f57c00;
    color: var(--text-light);
}

/* Danger Button */
.btn-danger {
    background-color: var(--error);
    border-color: var(--error);
    color: var(--text-light);
    font-weight: 500;
}

.btn-danger:hover {
    background-color: #d32f2f;
    border-color: #d32f2f;
    color: var(--text-light);
}

/* Button Sizes */
.btn-sm {
    font-size: var(--font-size-xs);
    padding: var(--spacing-2) var(--spacing-3);
    min-height: 36px;
}

/* Order Single Button Overrides for Compact Layout */
.order-single .btn-sm {
    font-size: 0.9rem !important;
    padding: 0.25rem 0.35rem !important;
    min-height: 28px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    width: 32px !important;
    max-width: 32px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border-radius: 0.25rem !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Button Container Adjustments */
.order-single .ms-auto {
    max-width: 150px !important;
    flex-wrap: nowrap !important;
    gap: 0.2rem !important;
}

.order-single .ms-auto form,
.order-single .ms-auto a {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

/* CRITICAL: Override old style.css layout rules that break our flexbox design */
@media (min-width: 1200px) {
    .order-single > div:nth-child(1),
    .order-single > div:nth-child(2),
    .order-single > div:nth-child(3),
    .order-single > div:nth-child(4),
    .order-single > div:last-child {
        width: auto !important;
        max-width: none !important;
    }
}

/* Force our new flexbox layout to display properly */
.order-single .d-flex.align-items-center.justify-content-between {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

.order-single .d-flex.justify-content-between.align-items-center.px-3.flex-grow-1 {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-grow: 1 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

/* Increase overall page width to accommodate buttons */
.container,
.container-fluid {
    max-width: 1400px !important;
}

/* Increase width of main content areas */
@media (min-width: 1200px) {
    .container {
        max-width: 1320px !important;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1400px !important;
    }
}

/* Ensure cabinet pages have more width */
body .container {
    max-width: 1400px !important;
    width: 100% !important;
}

/* Increase navbar and header widths */
.navbar .container,
.navbar-nav .container,
header .container {
    max-width: 1400px !important;
    width: 100% !important;
}

/* Make sure navigation elements also expand */
.navbar,
.navbar-expand-lg {
    width: 100% !important;
}

.navbar .container-fluid {
    max-width: 1400px !important;
    margin: 0 auto;
}

/* Fix homepage hero image scaling for wider layout */
.delivery-illustration-section {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 400px !important;
    background-color: transparent !important;
}

.delivery-illustration-section img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    max-height: 500px !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

/* Ensure #offers container works properly */
#offers {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    display: block !important;
}

/* Fix Bootstrap grid layout for wider container */
.row > .col-lg-4 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
}

.row > .col-lg-8 {
    flex: 0 0 66.666667% !important;
    max-width: 66.666667% !important;
}

/* Ensure the row stays horizontal */
.container > .row {
    display: flex !important;
    flex-wrap: wrap !important;
}

/* Make sure both columns stay side by side on large screens */
@media (min-width: 992px) {
    .col-lg-4,
    .col-lg-8 {
        display: block !important;
        float: none !important;
    }

    .row {
        display: flex !important;
    }
}

/* Reverted font sizes - using original sizes */

.order-single .d-flex.flex-shrink-0 {
    display: flex !important;
    flex-shrink: 0 !important;
    gap: 0.2rem !important;
    justify-content: flex-end !important;
    width: 110px !important;
    min-width: 110px !important;
}

/* Ensure buttons stay within card boundaries */
.order-single {
    overflow: hidden !important;
}

.order-single > div {
    max-width: 100% !important;
    overflow: hidden !important;
}

.btn-lg {
    font-size: var(--font-size-base);
    padding: var(--spacing-4) var(--spacing-6);
    min-height: 52px;
}
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-warning {
    background-color: var(--yellow-accent);
    border-color: var(--yellow-accent);
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: var(--yellow-accent-dark);
    border-color: var(--yellow-accent-dark);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

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

.btn-outline-success:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--text-light);
}

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

.btn-primary:hover {
    background-color: var(--primary-green-dark);
    border-color: var(--primary-green-dark);
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.form-wrap {
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-wrap:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* Hero Section / Carousel Replacement */
.delivery-hero {
    background-color: var(--primary-green);
    color: var(--text-light);
    padding: 60px 20px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.delivery-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.delivery-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.delivery-illustration {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 20px auto;
    display: block;
}

/* Promotional Section */
.promo-section {
    background-color: var(--primary-green);
    color: var(--text-light);
    padding: 40px 0;
    margin-top: 60px;
}

.promo-section h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.promo-feature {
    text-align: center;
    padding: 20px;
}

.promo-feature i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--yellow-accent);
}

.promo-feature h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.promo-feature p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Offer Cards - Disable hover effects to prevent disappearing */
.offer {
    border: 2px solid transparent;
    cursor: pointer;
}

.offer:hover {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    transition: none !important;
}

.offer .bg-success {
    background-color: var(--primary-green) !important;
}

/* Line Styles */
.line-dotted {
    border-bottom-color: var(--primary-green);
    opacity: 0.3;
}

/* Input Groups */
.input-group-text {
    background-color: var(--primary-green);
    color: var(--text-light);
    border-color: var(--primary-green);
}

/* Tracking Steps */
.tracking-step .tracking-step-dot:after {
    background-color: var(--primary-green);
}

/* Footer */
footer {
    background-color: var(--primary-green);
    color: var(--text-light);
    padding: 40px 0 20px;
    margin-top: 80px;
}

footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
    color: var(--text-light);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .delivery-hero h1 {
        font-size: 2rem;
    }

    .delivery-hero p {
        font-size: 1rem;
    }

    .promo-feature {
        margin-bottom: 30px;
    }

    .delivery-hero {
        padding: 40px 15px;
        min-height: 350px;
    }

    .delivery-illustration {
        max-width: 300px;
    }

    .form-sticky {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }

    footer .row > div {
        margin-bottom: 30px;
    }
}

/* Additional Enhancements */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

.rounded {
    border-radius: 8px !important;
}

/* Success Messages */
.alert-success {
    background-color: rgba(46, 125, 50, 0.1);
    border-color: var(--primary-green);
    color: var(--primary-green-dark);
}

/* Form Labels */
.form-group label {
    color: var(--primary-green-dark);
    font-weight: 600;
}

/* Service Features List */
.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.service-features li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-green);
}

/* Form Enhancements */
.inner-label label {
    color: var(--primary-green-dark);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-wrap h4 {
    color: var(--primary-green-dark);
    font-weight: 700;
    font-size: 1.3rem;
}

/* Icon Enhancements */
.fa-search, .fa-truck {
    margin-right: 8px;
}

/* Dropdown Styles */
.dropdown-menu {
    border: 1px solid var(--primary-green);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--primary-green);
}

.dropdown-item:hover {
    background-color: rgba(46, 125, 50, 0.1);
}

/* Select Styles */
select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%232e7d32' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
}

/* Tracking Form Enhancement */
#tracking {
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

#tracking:focus {
    border-color: var(--yellow-accent);
    box-shadow: 0 0 0 0.2rem rgba(255, 213, 79, 0.25);
}

/* Offer Results Section */
#offers .delivery-hero {
    animation: fadeIn 0.5s ease-in;
}

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

/* Sticky Form Enhancement */
.form-sticky {
    z-index: 100;
}

/* Country From Field */
#id_country_from.selectized {
    background-color: #f0f0f0;
}

/* Main Logo Hover */
.main-logo a {
    transition: transform 0.3s ease;
}

.main-logo a:hover {
    transform: scale(1.05);
}

/* Navbar Brand */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Page Title Section */
.page-title {
    background-color: var(--primary-green);
    color: var(--text-light);
    padding: 40px 0;
    margin-bottom: 40px;
}

.page-title h1 {
    margin: 0;
    font-weight: 700;
}

/* Breadcrumb for inner pages */
.breadcrumb {
    background-color: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.7);
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-light);
}

/* Feature Icons Animation */
.delivery-hero .fa-clock,
.delivery-hero .fa-shield-alt,
.delivery-hero .fa-euro-sign {
    color: var(--yellow-accent);
    transition: all 0.3s ease;
}

.delivery-hero .text-center:hover .fa-clock,
.delivery-hero .text-center:hover .fa-shield-alt,
.delivery-hero .text-center:hover .fa-euro-sign {
    transform: scale(1.2) rotate(5deg);
}

/* Promo Feature Hover */
.promo-feature {
    transition: all 0.3s ease;
}

.promo-feature:hover {
    transform: translateY(-10px);
}

.promo-feature:hover i {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

/* Form Field Animation - Removed transitions to fix flickering */
.form-control {
    /* transition: all 0.3s ease; - Removed to fix flickering issue */
}

.form-control:hover {
    /* border-color: var(--primary-green-light); - Removed to fix flickering */
}

/* Button Loading State */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
/* Enhanced Typography System */
body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-primary);
    font-weight: 600;
    line-height: 1.3;
    color: var(--neutral-900);
    margin-bottom: var(--spacing-4);
}

.h1, h1 { font-size: var(--font-size-4xl); }
.h2, h2 { font-size: var(--font-size-3xl); }
.h3, h3 { font-size: var(--font-size-2xl); }
.h4, h4 { font-size: var(--font-size-xl); }
.h5, h5 { font-size: var(--font-size-lg); }
.h6, h6 { font-size: var(--font-size-base); }

/* Enhanced Form System */
.form-control {
    border: 2px solid var(--neutral-300) !important;
    border-radius: var(--radius-md) !important;
    padding: var(--spacing-3) var(--spacing-4) !important;
    font-size: var(--font-size-base) !important;
    font-family: var(--font-family-primary) !important;
    background-color: var(--bg-primary) !important;
    min-height: 44px !important; /* Touch-friendly */
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.form-control:focus {
    border-color: var(--primary-600) !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1) !important;
    outline: none !important;
}

.form-control:hover:not(:focus) {
    border-color: var(--neutral-400) !important;
}

.form-control.is-invalid {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1) !important;
}

.form-control.is-valid {
    border-color: var(--success) !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1) !important;
}

/* Form Labels */
.form-label,
.text-success.fw-semibold {
    font-size: var(--font-size-sm) !important;
    font-weight: 600 !important;
    color: var(--primary-700) !important;
    margin-bottom: var(--spacing-2) !important;
}

/* Select Controls */
select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2343a047' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right var(--spacing-3) center !important;
    background-size: 16px 12px !important;
}

/* Enhanced Card Components */
.form-wrap {
    background-color: var(--bg-primary) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-md) !important;
    border: 1px solid var(--neutral-200) !important;
    padding: var(--spacing-6) !important;
    margin-bottom: var(--spacing-6) !important;
}

.form-wrap:hover {
    box-shadow: var(--shadow-lg) !important;
    transition: box-shadow 0.2s ease !important;
}

/* Alert Components */
.alert {
    border-radius: var(--radius-md) !important;
    border: none !important;
    padding: var(--spacing-4) !important;
    font-size: var(--font-size-sm) !important;
}

.alert-danger {
    background-color: #ffebee !important;
    color: #c62828 !important;
    border-left: 4px solid var(--error) !important;
}

.alert-success {
    background-color: #e8f5e9 !important;
    color: #2e7d32 !important;
    border-left: 4px solid var(--success) !important;
}

.alert-warning {
    background-color: #fff3e0 !important;
    color: #ef6c00 !important;
    border-left: 4px solid var(--warning) !important;
}

/* Loading States - Blue Theme */
.spinner-border {
    color: var(--blue-primary) !important;
}

.btn .spinner-border {
    width: 1rem !important;
    height: 1rem !important;
    color: white !important;
}

/* Cabinet-specific Loading Indicators */
.submit-loading .spinner-border {
    color: white !important;
    width: 1rem !important;
    height: 1rem !important;
}

/* Badge Components */
.badge {
    font-size: var(--font-size-xs) !important;
    font-weight: 500 !important;
    padding: var(--spacing-1) var(--spacing-2) !important;
    border-radius: var(--radius-sm) !important;
}

.bg-success-subtle {
    background-color: var(--primary-50) !important;
}

.text-success-emphasis {
    color: var(--primary-800) !important;
}

.bg-danger-subtle {
    background-color: #ffebee !important;
}

.text-danger-emphasis {
    color: #c62828 !important;
}

/* Navigation Enhancements */
.navbar {
    box-shadow: var(--shadow-md) !important;
    border-bottom: 1px solid var(--neutral-200) !important;
}

.dropdown-menu {
    border: 1px solid var(--neutral-200) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: var(--spacing-2) !important;
}

.dropdown-item {
    border-radius: var(--radius-sm) !important;
    padding: var(--spacing-2) var(--spacing-3) !important;
    font-size: var(--font-size-sm) !important;
}

.dropdown-item:hover {
    background-color: var(--primary-50) !important;
    color: var(--primary-700) !important;
}

/* Accessibility Improvements */
.btn:focus-visible,
.form-control:focus-visible {
    outline: 2px solid var(--primary-500) !important;
    outline-offset: 2px !important;
}

/* Required Field Indicators */
.text-danger {
    color: var(--error) !important;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1, .h1 { font-size: var(--font-size-3xl); }
    h2, .h2 { font-size: var(--font-size-2xl); }
    h3, .h3 { font-size: var(--font-size-xl); }

    .form-wrap {
        padding: var(--spacing-4) !important;
        margin-bottom: var(--spacing-4) !important;
    }
}

/* Print Styles */
@media print {
    .navbar, footer, .promo-section {
        display: none;
    }

    .delivery-hero {
        background-color: #f5f5f5;
        color: #333;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .btn {
        border: 1px solid #333 !important;
        background-color: transparent !important;
        color: #333 !important;
    }
}

/* Cabinet Page Blue Background - Override default background */
body {
    background-color: var(--bg-cabinet) !important;
}

/* Enhanced Form Focus States - Blue Theme */
.form-control:focus {
    border-color: var(--blue-focus) !important;
    box-shadow: 0 0 0 3px var(--blue-light) !important;
    outline: none !important;
}

/* Override any existing green focus states */
input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
    border-color: var(--blue-focus) !important;
    box-shadow: 0 0 0 3px var(--blue-light) !important;
}

/* Radio Button and Checkbox Focus States */
.form-check-input:focus {
    border-color: var(--blue-focus) !important;
    box-shadow: 0 0 0 0.25rem var(--blue-light) !important;
}

.form-check-input:checked {
    background-color: var(--blue-primary) !important;
    border-color: var(--blue-primary) !important;
}

/* Required Field Asterisk Styling - More Prominent */
.text-danger,
label .text-danger,
.form-label .text-danger {
    color: #f44336 !important;
    font-weight: 600 !important;
    font-size: 1.1em !important;
    margin-left: 2px !important;
}

/* Company Field Labels - From Screenshots */
label[for*="company"] {
    font-weight: 600 !important;
    color: var(--primary-700) !important;
    margin-bottom: var(--spacing-2) !important;
}

/* Improve Form Section Headers - Keep Green */
.text-success.fw-semibold,
h5.text-success,
.form-section-header {
    color: var(--primary-700) !important; /* Keep green for section headers */
    font-weight: 600 !important;
    font-size: var(--font-size-base) !important;
    margin-bottom: var(--spacing-3) !important;
}

/* Primary Action Buttons - BLUE THEME as requested */
.btn-success,
.btn-primary,
button[type="submit"]:not(.btn-warning) {
    background-color: var(--blue-primary) !important;
    border-color: var(--blue-primary) !important;
    color: white !important;
    font-weight: 600 !important;
    min-height: 44px !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.2) !important;
}

.btn-success:hover,
.btn-primary:hover,
button[type="submit"]:not(.btn-warning):hover {
    background-color: var(--blue-primary-hover) !important;
    border-color: var(--blue-primary-hover) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(25, 118, 210, 0.3) !important;
}

.btn-success:active,
.btn-primary:active,
button[type="submit"]:not(.btn-warning):active {
    background-color: var(--blue-primary-active) !important;
    border-color: var(--blue-primary-active) !important;
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.2) !important;
}

/* Add/Remove Package Buttons - Blue for Primary Actions */
.btn.add-package,
.btn[class*="Different"] {
    background-color: var(--blue-primary) !important;
    border-color: var(--blue-primary) !important;
    color: white !important;
    font-weight: 600 !important;
}

.btn.add-package:hover,
.btn[class*="Different"]:hover {
    background-color: var(--blue-primary-hover) !important;
    border-color: var(--blue-primary-hover) !important;
}

/* Remove Package Buttons - Keep as Danger (Red) */
.btn.remove-package {
    background-color: var(--error) !important;
    border-color: var(--error) !important;
    color: white !important;
}

.btn.remove-package:hover {
    background-color: #d32f2f !important;
    border-color: #d32f2f !important;
}

/* Form Layout Improvements */
.form-wrap {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Address Section Styling */
.col-lg-6:has(h5:contains("Pick Up")),
.col-lg-6:has(h5:contains("Delivery")) {
    padding: var(--spacing-4) !important;
}

/* Step Navigation - Cabinet Process Steps - FIXED */
/* Ensure ALL step panels have consistent dimensions */
.step,
.step.this-step,
button.step {
    border: none !important;
    /* REMOVED: background: none !important; - This was causing compression */
    /* REMOVED: padding: 0 !important; - This was causing compression */
    /* Maintain consistent dimensions for all step panels */
    min-height: 60px !important;
    padding: var(--spacing-3) var(--spacing-4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    font-size: var(--font-size-sm) !important;
    font-weight: 500 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Active step styling - maintain dimensions */
.step.step-1,
.step.step-2,
.step.step-3,
.step.step-4 {
    min-height: 60px !important;
    padding: var(--spacing-3) var(--spacing-4) !important;
}

.step.this-step:hover,
button.step:hover {
    background-color: rgba(25, 118, 210, 0.1) !important;
    transform: none !important;
}

/* Ensure responsive behavior maintains consistency */
@media (max-width: 768px) {
    .step,
    .step.this-step,
    button.step {
        min-height: 50px !important;
        padding: var(--spacing-2) var(--spacing-3) !important;
        font-size: var(--font-size-xs) !important;
    }
}

/* Cabinet Parcel Type Selection - Keep Green for Brand */
.type-container.selected {
    background-color: var(--primary-50) !important;
    border-color: var(--primary-600) !important;
}

/* Offer Cards - Enhanced Selection States */
.offer.selected,
.offer:hover {
    background-color: rgba(25, 118, 210, 0.05) !important;
    border-color: var(--blue-primary) !important;
}

/* Placeholder Text Color */
.form-control::placeholder {
    color: #9e9e9e !important;
    opacity: 1 !important;
}

/* Enhanced Required Field Styling */
.text-danger,
label .text-danger,
.form-label .text-danger {
    color: #f44336 !important;
    font-weight: 700 !important;
    font-size: 1.2em !important;
    margin-left: 3px !important;
    text-shadow: 1px 1px 2px rgba(244, 67, 54, 0.3) !important;
}

/* Blue Theme Summary */
/*
IMPLEMENTED BLUE THEME CHANGES:
✅ Primary action buttons (.btn-success, .btn-primary, button[type="submit"]) - NOW BLUE
✅ "Add Different Parcel" buttons (.btn.add-package) - NOW BLUE
✅ Form focus states (all form controls) - NOW BLUE
✅ Radio button and checkbox checked states - NOW BLUE
✅ Loading spinners and indicators - NOW BLUE
✅ Step navigation hover states - NOW BLUE

PRESERVED GREEN THEME:
✅ Navigation bar and brand elements - STILL GREEN
✅ Section headers and form labels - STILL GREEN
✅ Parcel type selection containers - STILL GREEN
✅ Success messages and alerts - STILL GREEN
✅ Secondary buttons (outline buttons) - STILL GREEN

MAINTAINED EXISTING:
✅ Light blue background (#e3f2fd) for cabinet area
✅ Yellow accents for warnings and tracking
✅ Red colors for danger/remove buttons
✅ Overall brand consistency maintained
*/

/* Address Form Layout Improvements */
.pickup_address .form-wrap,
.delivery_address .form-wrap {
    border: 1px solid var(--neutral-200) !important;
    border-radius: var(--radius-lg) !important;
    background-color: var(--bg-primary) !important;
    padding: var(--spacing-4) !important;
    margin-bottom: var(--spacing-4) !important;
}

.pickup_address .row.address,
.delivery_address .row.address {
    margin-top: var(--spacing-3) !important;
    gap: var(--spacing-2) !important;
}

.pickup_address .form-group,
.delivery_address .form-group {
    margin-bottom: var(--spacing-3) !important;
}

.pickup_address .text-success,
.delivery_address .text-success {
    color: var(--primary-600) !important;
    font-weight: 600 !important;
    font-size: var(--font-size-sm) !important;
    margin-bottom: var(--spacing-2) !important;
}

.pickup_address .form-control,
.delivery_address .form-control {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--neutral-300) !important;
    padding: var(--spacing-2) var(--spacing-3) !important;
    font-size: var(--font-size-sm) !important;
    transition: all 0.2s ease !important;
}

.pickup_address .form-control:focus,
.delivery_address .form-control:focus {
    border-color: var(--primary-500) !important;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25) !important;
    outline: 0 !important;
}

/* Send Parcel Button - BLUE ONLY for .btn.btn-primary.prld */
.btn.btn-primary.prld {
    background-color: var(--blue-send-parcel) !important;
    border-color: var(--blue-send-parcel) !important;
    color: white !important;
    font-weight: 600 !important;
    padding: var(--spacing-2) var(--spacing-4) !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: var(--spacing-2) !important;
}

.btn.btn-primary.prld:hover {
    background-color: var(--blue-send-parcel-hover) !important;
    border-color: var(--blue-send-parcel-hover) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(25, 118, 210, 0.3) !important;
}

.btn.btn-primary.prld:active {
    background-color: var(--blue-send-parcel-active) !important;
    border-color: var(--blue-send-parcel-active) !important;
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.2) !important;
}

/* Keep ALL other .btn-primary elements GREEN */
.btn-primary:not(.prld) {
    background-color: var(--primary-500) !important;
    border-color: var(--primary-500) !important;
    color: white !important;
}

.btn-primary:not(.prld):hover {
    background-color: var(--primary-600) !important;
    border-color: var(--primary-600) !important;
}

.btn-primary:not(.prld):active {
    background-color: var(--primary-700) !important;
    border-color: var(--primary-700) !important;
}

/* Order Page Button Consistency */
.order-single .btn {
    width: 90px;
    height: 34px;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid;
}

.order-single .btn-sm {
    width: 90px;
    height: 34px;
    font-size: 0.875rem;
    padding: 6px 8px;
}

/* Order Action Buttons - Details Button Blue */
.order-single .btn-success {
    background-color: #1976d2 !important;
    border-color: #1976d2 !important;
    color: white !important;
    font-weight: 500 !important;
}

.order-single .btn-success:hover {
    background-color: #1565c0 !important;
    border-color: #1565c0 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.3);
}

.order-single .btn-warning {
    background-color: #ff9800 !important;
    border-color: #ff9800 !important;
    color: white !important;
    font-weight: 500 !important;
}

.order-single .btn-warning:hover {
    background-color: #f57c00 !important;
    border-color: #f57c00 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

.order-single .btn-danger,
.order-single button.btn-danger,
.order-single .cancel-form .btn-danger,
.order-single .cancel-form button[type="submit"],
button.btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

.order-single .btn-danger:hover,
.order-single button.btn-danger:hover,
.order-single .cancel-form .btn-danger:hover,
.order-single .cancel-form button[type="submit"]:hover,
button.btn-danger:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* Button gap consistency */
.order-single .d-flex.gap-1 {
    gap: 6px !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

/* Ensure button container alignment */
.order-single .d-flex:last-child {
    min-height: 34px;
    align-items: center;
}

/* Button Color Updates as Requested */

/* Find Offers Search Button - Keep GREEN */
#find-offers {
    background-color: var(--primary-500) !important;
    border-color: var(--primary-500) !important;
    color: white !important;
}

#find-offers:hover {
    background-color: var(--primary-600) !important;
    border-color: var(--primary-600) !important;
}

/* Select Carrier Button - Update to modern GREEN */
.set-delivery,
.this-delivery {
    background-color: var(--primary-500) !important;
    border-color: var(--primary-500) !important;
    color: white !important;
    transition: all 0.2s ease !important;
}

.set-delivery:hover,
.this-delivery:hover {
    background-color: var(--primary-600) !important;
    border-color: var(--primary-600) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3) !important;
}

.set-delivery:active,
.this-delivery:active {
    background-color: var(--primary-700) !important;
    border-color: var(--primary-700) !important;
    transform: translateY(0) !important;
}

/* Add Different Parcel Buttons - Update to modern BLUE */
.add-package {
    background-color: var(--blue-primary) !important;
    border-color: var(--blue-primary) !important;
    color: white !important;
    transition: all 0.2s ease !important;
    font-weight: 600 !important;
}

.add-package:hover {
    background-color: var(--blue-primary-hover) !important;
    border-color: var(--blue-primary-hover) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(25, 118, 210, 0.3) !important;
}

.add-package:active {
    background-color: var(--blue-primary-active) !important;
    border-color: var(--blue-primary-active) !important;
    transform: translateY(0) !important;
}

/* CRITICAL FIX: Check Parcel Button - FORCE YELLOW */
.btn-warning,
button[type="submit"].btn-warning {
    background-color: var(--yellow-accent) !important;
    border-color: var(--yellow-accent) !important;
    color: var(--text-dark) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-warning:hover,
button[type="submit"].btn-warning:hover {
    background-color: var(--yellow-accent-dark) !important;
    border-color: var(--yellow-accent-dark) !important;
    color: var(--text-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.4) !important;
}

.btn-warning:active,
button[type="submit"].btn-warning:active {
    background-color: #ffb300 !important;
    border-color: #ffb300 !important;
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3) !important;
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */

/* Tablet and below (768px and down) */
@media (max-width: 768px) {
    .order-single {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .order-single > div {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    /* Logo and Service Section */
    .order-single > div > div:first-child {
        width: 100% !important;
        margin-bottom: 1rem;
        justify-content: center !important;
    }

    /* Center Info Section */
    .order-single .flex-grow-1 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 1rem;
    }

    .order-single .flex-grow-1 > div {
        flex-direction: column !important;
        gap: 1rem;
    }

    .order-single .flex-grow-1 > div > div {
        min-width: auto !important;
        text-align: left !important;
        padding: 0.5rem;
        background-color: rgba(0,0,0,0.02);
        border-radius: 0.375rem;
    }

    /* Buttons Section */
    .order-single .ms-auto {
        margin-left: 0 !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }

    .order-single .btn-sm {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
        min-width: 90px;
    }
}

/* Mobile phones (576px and down) */
@media (max-width: 576px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .order-single {
        padding: 0.75rem !important;
        border-radius: 0.5rem !important;
    }

    /* Logo section */
    .order-single > div > div:first-child img {
        width: 40px !important;
        margin-right: 0.75rem !important;
    }

    .order-single h6 {
        font-size: 0.9rem !important;
        margin-bottom: 0.25rem !important;
    }

    /* Info sections */
    .order-single .flex-grow-1 > div > div {
        padding: 0.375rem !important;
        margin-bottom: 0.5rem;
    }

    .order-single .small {
        font-size: 0.75rem !important;
    }

    /* Button adjustments for mobile */
    .order-single .ms-auto {
        gap: 0.25rem !important;
    }

    .order-single .btn-sm {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.75rem !important;
        min-width: 70px;
    }

    /* Search section */
    .input-group {
        flex-direction: column !important;
        gap: 0.5rem;
    }

    .input-group .form-control {
        border-radius: 0.5rem !important;
    }

    .input-group .btn,
    .input-group .btn-outline-secondary {
        border-radius: 0.5rem !important;
        width: 100%;
    }
}

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .order-single {
        padding: 1.5rem !important;
    }

    .order-single .flex-grow-1 > div > div {
        min-width: 180px !important;
    }

    .order-single .ms-auto {
        gap: 0.75rem !important;
    }
}