/* Nomable Web UI Custom Styles */

/* Custom color scheme */
:root {
    --nomable-primary: #667eea;
    --nomable-secondary: #764ba2;
    --nomable-success: #28a745;
    --nomable-warning: #ffc107;
    --nomable-danger: #dc3545;
    --nomable-info: #17a2b8;
}

/* Header styling */
.nomable-header {
    background: linear-gradient(135deg, var(--nomable-primary) 0%, var(--nomable-secondary) 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.nomable-header h1 {
    margin: 0;
    font-weight: 300;
    font-size: 2.5rem;
}

/* Restaurant cards */
.restaurant-card {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1.5rem;
}

.restaurant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.restaurant-card .card-header {
    background: linear-gradient(135deg, var(--nomable-primary) 0%, var(--nomable-secondary) 100%);
    color: white;
    border-radius: 10px 10px 0 0 !important;
}

/* Status badges */
.status-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

/* Form styling */
.schedule-form {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-control:focus {
    border-color: var(--nomable-primary);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Button styling */
.btn-nomable {
    background: linear-gradient(135deg, var(--nomable-primary) 0%, var(--nomable-secondary) 100%);
    border: none;
    color: white;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-nomable:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Navigation */
.navbar-brand {
    font-weight: 600;
    color: var(--nomable-primary) !important;
}

.nav-link {
    color: #6c757d !important;
    transition: color 0.3s ease;
}

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

.nav-link.active {
    color: var(--nomable-primary) !important;
    font-weight: 600;
    background-color: rgba(102, 126, 234, 0.1) !important;
    border-radius: 0.375rem;
}

/* Search results */
.search-results {
    max-height: 400px;
    overflow-y: auto;
}

/* Loading spinner */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 2rem;
}

/* Alert styling */
.alert {
    border-radius: 10px;
    border: none;
}

/* Footer */
.footer {
    background: #f8f9fa;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nomable-header h1 {
        font-size: 2rem;
    }
    
    .schedule-form {
        padding: 1rem;
    }
}

/* Mobile Typography Scaling */
@media (max-width: 767.98px) {
    /* Base typography scaling for mobile */
    body {
        font-size: 16px;
        line-height: 1.6;
        color: #495057;
    }
    
    /* Heading typography scaling */
    h1 {
        font-size: 1.75rem;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 1rem;
        color: #212529;
    }
    
    h2 {
        font-size: 1.5rem;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 0.875rem;
        color: #212529;
    }
    
    h3 {
        font-size: 1.25rem;
        font-weight: 600;
        line-height: 1.4;
        margin-bottom: 0.75rem;
        color: #343a40;
    }
    
    h4 {
        font-size: 1.125rem;
        font-weight: 600;
        line-height: 1.4;
        margin-bottom: 0.625rem;
        color: #343a40;
    }
    
    h5 {
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.5;
        margin-bottom: 0.5rem;
        color: #495057;
    }
    
    h6 {
        font-size: 0.875rem;
        font-weight: 600;
        line-height: 1.5;
        margin-bottom: 0.5rem;
        color: #495057;
    }
    
    /* Paragraph and text scaling */
    p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 1rem;
        color: #495057;
    }
    
    .lead {
        font-size: 18px;
        line-height: 1.6;
        font-weight: 400;
        color: #6c757d;
    }
    
    /* Small text scaling */
    small, .small {
        font-size: 14px;
        line-height: 1.5;
        color: #6c757d;
    }
    
    /* Large text scaling */
    .large {
        font-size: 18px;
        line-height: 1.6;
        color: #495057;
    }
    
    /* Card typography scaling */
    .card-title {
        font-size: 1.125rem;
        font-weight: 600;
        line-height: 1.3;
        color: #212529;
        margin-bottom: 0.75rem;
    }
    
    .card-subtitle {
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.4;
        color: #6c757d;
        margin-bottom: 0.5rem;
    }
    
    .card-text {
        font-size: 16px;
        line-height: 1.6;
        color: #495057;
        margin-bottom: 0.75rem;
    }
    
    /* Table typography scaling */
    .table th {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.4;
        color: #495057;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .table td {
        font-size: 16px;
        line-height: 1.5;
        color: #495057;
        vertical-align: middle;
    }
    
    /* Navigation typography scaling */
    .navbar-brand {
        font-size: 1.25rem;
        font-weight: 700;
        line-height: 1.2;
    }
    
    .nav-link {
        font-size: 16px;
        font-weight: 500;
        line-height: 1.5;
    }
    
    /* Button typography scaling */
    .btn {
        font-size: 16px;
        font-weight: 500;
        line-height: 1.2;
        letter-spacing: 0.25px;
    }
    
    .btn-sm {
        font-size: 14px;
        font-weight: 500;
        line-height: 1.2;
    }
    
    .btn-lg {
        font-size: 18px;
        font-weight: 500;
        line-height: 1.2;
    }
    
    /* Badge typography scaling */
    .badge {
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: 0.25px;
    }
    
    .badge-lg {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
    }
    
    /* Alert typography scaling */
    .alert {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .alert-heading {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    /* List typography scaling */
    .list-group-item {
        font-size: 16px;
        line-height: 1.5;
        color: #495057;
    }
    
    .list-group-item-heading {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.4;
        color: #212529;
    }
    
    /* Form typography scaling */
    .form-label {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.4;
        color: #495057;
    }
    
    .form-text {
        font-size: 14px;
        line-height: 1.5;
        color: #6c757d;
    }
    
    .form-control,
    .form-select {
        font-size: 16px;
        line-height: 1.5;
        color: #495057;
    }
    
    .form-control::placeholder {
        font-size: 16px;
        color: #6c757d;
    }
    
    /* Modal typography scaling */
    .modal-title {
        font-size: 1.25rem;
        font-weight: 600;
        line-height: 1.3;
        color: #212529;
    }
    
    .modal-body {
        font-size: 16px;
        line-height: 1.6;
        color: #495057;
    }
    
    /* Pagination typography scaling */
    .page-link {
        font-size: 16px;
        font-weight: 500;
        line-height: 1.2;
        color: #495057;
    }
    
    .page-item.active .page-link {
        font-weight: 600;
        color: #ffffff;
    }
    
    /* Utility text classes */
    .text-primary { color: var(--nomable-primary) !important; }
.text-secondary { color: var(--nomable-secondary) !important; }
.text-success { color: var(--nomable-success) !important; }
.text-warning { color: var(--nomable-warning) !important; }
.text-danger { color: var(--nomable-danger) !important; }
.text-info { color: var(--nomable-info) !important; }
    
    /* Font weight utilities */
    .fw-light { font-weight: 300 !important; }
    .fw-normal { font-weight: 400 !important; }
    .fw-medium { font-weight: 500 !important; }
    .fw-semibold { font-weight: 600 !important; }
    .fw-bold { font-weight: 700 !important; }
    
    /* Line height utilities */
    .lh-1 { line-height: 1 !important; }
    .lh-sm { line-height: 1.25 !important; }
    .lh-base { line-height: 1.5 !important; }
    .lh-lg { line-height: 2 !important; }
    
    /* Additional mobile typography improvements */
    
    /* Restaurant card specific typography */
    .restaurant-card .card-title {
        font-size: 1.125rem;
        font-weight: 600;
        line-height: 1.3;
        color: #212529;
    }
    
    .restaurant-card .text-muted {
        font-size: 13px;
        font-weight: 500;
        line-height: 1.4;
        color: #6c757d;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .restaurant-card .fw-bold {
        font-size: 15px;
        font-weight: 600;
        line-height: 1.4;
        color: #495057;
    }
    
    /* Header typography improvements */
    .nomable-header h1 {
        font-size: 1.75rem;
        font-weight: 700;
        line-height: 1.2;
        color: #ffffff;
        text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }
    
    /* Search and filter typography */
    .input-group-text {
        font-size: 16px;
        color: #6c757d;
    }
    
    /* Status badge typography */
    .badge.bg-success {
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.25px;
    }
    
    .badge.bg-secondary {
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.25px;
    }
    
    /* Error and success message typography */
    .alert-success {
        font-size: 16px;
        line-height: 1.6;
        font-weight: 400;
    }
    
    .alert-danger {
        font-size: 16px;
        line-height: 1.6;
        font-weight: 400;
    }
    
    .alert-warning {
        font-size: 16px;
        line-height: 1.6;
        font-weight: 400;
    }
    
    .alert-info {
        font-size: 16px;
        line-height: 1.6;
        font-weight: 400;
    }
    
    /* Loading and error state typography */
    .text-muted {
        font-size: 14px;
        line-height: 1.5;
        color: #6c757d;
    }
    
    .spinner-border + .text-muted {
        font-size: 16px;
        font-weight: 500;
        color: #6c757d;
    }
    
    /* Sortable header typography */
    .sortable {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.4;
        color: #495057;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Pagination info typography */
    #resultsInfo {
        font-size: 14px;
        line-height: 1.5;
        color: #6c757d;
        font-weight: 400;
    }
}

/* Mobile Spacing and Padding Optimizations */
@media (max-width: 767.98px) {
    /* Container and layout spacing */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Row and column spacing */
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .row > [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Card spacing optimizations */
    .card {
        margin-bottom: 1rem;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .card-header {
        padding: 1rem 1.25rem;
        border-bottom: 1px solid #e9ecef;
        border-radius: 12px 12px 0 0;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .card-footer {
        padding: 1rem 1.25rem;
        border-top: 1px solid #e9ecef;
        border-radius: 0 0 12px 12px;
    }
    
    /* Form spacing optimizations */
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .mb-3 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-4 {
        margin-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2.5rem !important;
    }
    
    /* Input group spacing */
    .input-group {
        margin-bottom: 1rem;
    }
    
    .input-group > .form-control,
    .input-group > .form-select {
        margin-bottom: 0;
    }
    
    /* Button spacing */
    .btn {
        margin-bottom: 0.5rem;
    }
    
    .btn + .btn {
        margin-left: 0.5rem;
    }
    
    .d-grid .btn {
        margin-bottom: 0;
    }
    
    .d-grid.gap-2 {
        gap: 1rem !important;
    }
    
    .d-grid.gap-3 {
        gap: 1.5rem !important;
    }
    
    /* Navigation spacing */
    .navbar {
        padding: 0.75rem 1rem;
    }
    
    .navbar-brand {
        padding: 0.5rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
    }
    
    /* Table spacing */
    .table {
        margin-bottom: 1.5rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
        vertical-align: middle;
    }
    
    .table-responsive {
        margin-bottom: 1rem;
    }
    
    /* Alert spacing */
    .alert {
        margin-bottom: 1.5rem;
        padding: 1rem 1.25rem;
        border-radius: 8px;
    }
    
    .alert-dismissible {
        padding-right: 3rem;
    }
    
    /* List group spacing */
    .list-group-item {
        padding: 1rem 1.25rem;
        margin-bottom: 0.5rem;
        border-radius: 8px;
    }
    
    .list-group-item:first-child {
        border-radius: 8px 8px 0 0;
    }
    
    .list-group-item:last-child {
        border-radius: 0 0 8px 8px;
        margin-bottom: 0;
    }
    
    /* Modal spacing */
    .modal-header {
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid #e9ecef;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 1.25rem 1.5rem;
        border-top: 1px solid #e9ecef;
    }
    
    /* Pagination spacing */
    .pagination {
        margin-bottom: 1.5rem;
        justify-content: center;
    }
    
    .page-link {
        padding: 0.75rem 1rem;
        margin: 0 0.25rem;
        border-radius: 6px;
    }
    
    /* Restaurant card specific spacing */
    .restaurant-card {
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    .restaurant-card .card-body {
        padding: 1.25rem;
    }
    
    .restaurant-card .row.g-2 {
        margin: 0 -0.5rem;
    }
    
    .restaurant-card .row.g-2 .col-6 {
        padding: 0.5rem;
    }
    
    .restaurant-card .btn {
        margin-top: 1rem;
        margin-bottom: 0;
    }
    
    /* Search and filter form spacing */
    .row.mb-3 {
        margin-bottom: 1.5rem !important;
    }
    
    .row.mb-3 .col-md-6,
    .row.mb-3 .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .row.mb-3 .col-md-6:last-child,
    .row.mb-3 .col-md-3:last-child {
        margin-bottom: 0;
    }
    
    /* Header spacing */
    .nomable-header {
        padding: 2rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .nomable-header h1 {
        margin-bottom: 0.5rem;
    }
    
    /* Section spacing */
    .section {
        margin-bottom: 2rem;
        padding: 1.5rem 0;
    }
    
    /* Footer spacing */
    .footer {
        padding: 2rem 1rem;
        margin-top: 2rem;
    }
    
    /* Utility spacing classes for mobile */
    .mt-mobile-1 { margin-top: 0.5rem !important; }
    .mt-mobile-2 { margin-top: 1rem !important; }
    .mt-mobile-3 { margin-top: 1.5rem !important; }
    .mt-mobile-4 { margin-top: 2rem !important; }
    
    .mb-mobile-1 { margin-bottom: 0.5rem !important; }
    .mb-mobile-2 { margin-bottom: 1rem !important; }
    .mb-mobile-3 { margin-bottom: 1.5rem !important; }
    .mb-mobile-4 { margin-bottom: 2rem !important; }
    
    .pt-mobile-1 { padding-top: 0.5rem !important; }
    .pt-mobile-2 { padding-top: 1rem !important; }
    .pt-mobile-3 { padding-top: 1.5rem !important; }
    .pt-mobile-4 { padding-top: 2rem !important; }
    
    .pb-mobile-1 { padding-bottom: 0.5rem !important; }
    .pb-mobile-2 { padding-bottom: 1rem !important; }
    .pb-mobile-3 { padding-bottom: 1.5rem !important; }
    .pb-mobile-4 { padding-bottom: 2rem !important; }
    
    /* Responsive grid adjustments */
    .row-cols-1 > * {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .row-cols-2 > * {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Improved touch spacing */
    .btn,
    .nav-link,
    .page-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Form field spacing */
    .form-control,
    .form-select {
        margin-bottom: 0.5rem;
    }
    
    .form-check {
        margin-bottom: 1rem;
        padding-left: 1.5rem;
    }
    
    .form-check-input {
        margin-left: -1.5rem;
    }
    
    /* Loading and error state spacing */
    .loading-spinner,
    .error-state {
        padding: 2rem 1rem;
        text-align: center;
    }
    
    /* Results info spacing */
    #resultsInfo {
        margin-bottom: 1rem;
        text-align: center;
    }
    
    /* Sortable header spacing */
    .sortable {
        padding: 0.75rem 0.5rem;
        position: relative;
    }
    
    /* Close button spacing */
    .btn-close {
        padding: 0.75rem;
        margin: -0.75rem;
    }
    
    /* Mobile Search and Filter Control Layout Improvements */
    
    /* Search and filter form container */
    .row.mb-3 {
        margin: 0 -0.5rem 1.5rem -0.5rem;
    }
    
    /* Individual form control containers */
    .row.mb-3 .col-md-6,
    .row.mb-3 .col-md-3 {
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }
    
    .row.mb-3 .col-md-6:last-child,
    .row.mb-3 .col-md-3:last-child {
        margin-bottom: 0;
    }
    
    /* Search input group mobile optimization */
    .input-group {
        width: 100%;
    }
    
    .input-group > .input-group-text {
        border-radius: 8px 0 0 8px;
        border-right: none;
        padding: 0.75rem 1rem;
        font-size: 16px;
        background-color: #f8f9fa;
        border: 2px solid #e9ecef;
        color: #6c757d;
    }
    
    .input-group > .form-control {
        border-radius: 0 8px 8px 0;
        border-left: none;
        border-right: 2px solid #e9ecef;
        border-top: 2px solid #e9ecef;
        border-bottom: 2px solid #e9ecef;
        padding: 0.75rem 1rem;
        font-size: 16px;
        min-height: 44px;
    }
    
    .input-group > .form-control:focus {
        border-color: var(--nomable-primary);
        box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
        border-left: none;
    }
    

    
    /* Status filter mobile optimization */
    #statusFilter {
        width: 100%;
        min-height: 44px;
        font-size: 16px;
        padding: 0.75rem 1rem;
        border: 2px solid #e9ecef;
        border-radius: 8px;
        background-color: #ffffff;
        color: #495057;
        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='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 0.75rem center;
        background-size: 16px 12px;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
    }
    
    #statusFilter:focus {
        border-color: var(--nomable-primary);
        box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
        outline: none;
    }
    
    #statusFilter option {
        font-size: 16px;
        padding: 0.5rem;
        color: #495057;
    }
    
    /* Clear filters button mobile optimization */
    #clearFiltersButton {
        width: 100%;
        min-height: 44px;
        font-size: 16px;
        padding: 0.75rem 1rem;
        border: 2px solid #0d6efd;
        background-color: #ffffff;
        color: #0d6efd;
        border-radius: 8px;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    #clearFiltersButton:hover {
        background-color: #0d6efd;
        border-color: #0d6efd;
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    }
    
    #clearFiltersButton:active {
        transform: scale(0.98);
    }
    
    /* Search input placeholder optimization */
    #searchInput::placeholder {
        color: #6c757d;
        font-size: 16px;
        opacity: 0.8;
    }
    
    /* Form control labels for mobile */
    .search-filter-label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: #495057;
        margin-bottom: 0.5rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Mobile search and filter section styling */
    .search-filter-section {
        background-color: #f8f9fa;
        border-radius: 12px;
        padding: 1.25rem;
        margin-bottom: 1.5rem;
        border: 1px solid #e9ecef;
    }
    
    .search-filter-section .card-header {
        background: none;
        border: none;
        padding: 0 0 1rem 0;
        margin-bottom: 1rem;
    }
    
    .search-filter-section .card-header h5 {
        font-size: 1.125rem;
        font-weight: 600;
        color: #495057;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Responsive grid for search controls */
    .search-controls-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
    }
    
    /* Search results info mobile styling */
    .search-results-info {
        background-color: #e3f2fd;
        border: 1px solid #bbdefb;
        border-radius: 8px;
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
        text-align: center;
        font-size: 14px;
        color: #1976d2;
        font-weight: 500;
    }
    
    /* Loading state for search controls */
    .search-controls-loading {
        opacity: 0.6;
        pointer-events: none;
    }
    
    .search-controls-loading .btn {
        position: relative;
    }
    
    .search-controls-loading .btn .spinner-border {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    
    /* Mobile-specific search button states */
    .btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none !important;
    }
    
    /* Search input focus states */
    .input-group:focus-within .input-group-text {
        border-color: var(--nomable-primary);
        background-color: rgba(102, 126, 234, 0.05);
    }
    
    /* Mobile search suggestions (if implemented) */
    .search-suggestions {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #e9ecef;
        border-top: none;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 1000;
        max-height: 200px;
        overflow-y: auto;
    }
    
    .search-suggestion-item {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f8f9fa;
        cursor: pointer;
        font-size: 16px;
        color: #495057;
        transition: background-color 0.2s ease;
    }
    
    .search-suggestion-item:hover,
    .search-suggestion-item:focus {
        background-color: #f8f9fa;
        color: var(--nomable-primary);
    }
    
    .search-suggestion-item:last-child {
        border-bottom: none;
    }
    

}

/* Mobile Touch Target Optimizations */
@media (max-width: 767.98px) {
    /* Ensure minimum 44px touch targets for all interactive elements */
    
    /* Buttons - ensure minimum height and padding */
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
        line-height: 1.2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Small buttons - maintain minimum touch target */
    .btn-sm {
        min-height: 44px;
        min-width: 44px;
        padding: 10px 14px;
        font-size: 16px;
    }
    
    /* Navigation links - ensure minimum touch target */
    .nav-link {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Sortable table headers - increase touch target */
    .sortable {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 8px;
        cursor: pointer;
        position: relative;
    }
    
    /* Form controls - ensure minimum touch target */
    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px 16px;
    }
    
    /* Close buttons in alerts - ensure minimum touch target */
    .btn-close {
        min-height: 44px;
        min-width: 44px;
        padding: 12px;
        background-size: 20px;
        background-position: center;
    }
    
    /* Restaurant selection buttons - ensure full width on mobile */
    .select-restaurant {
        min-height: 44px;
        width: 100%;
        margin-top: 8px;
        font-size: 16px;
        padding: 12px 16px;
    }
    
    /* Add spacing between icon and text in restaurant selection buttons */
    .select-restaurant i,
    .btn.select-restaurant i {
        margin-right: 12px !important;
    }
    
    /* Mobile restaurant cards - ensure proper spacing and touch targets */
    .restaurant-card {
        margin-bottom: 1rem;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .restaurant-card .card-body {
        padding: 1rem;
    }
    
    .restaurant-card .card-title {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #495057;
        line-height: 1.3;
    }
    
    .restaurant-card .btn {
        margin-top: 0.75rem;
    }
    
    /* Mobile restaurant card content readability */
    .restaurant-card .text-muted {
        font-size: 14px;
        font-weight: 500;
        color: #6c757d;
        margin-bottom: 0.25rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .restaurant-card .fw-bold {
        font-size: 16px;
        font-weight: 600;
        color: #495057;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }
    
    .restaurant-card .badge {
        font-size: 12px;
        font-weight: 600;
        padding: 0.375rem 0.75rem;
        border-radius: 6px;
    }
    
    .restaurant-card .row.g-2 {
        margin-bottom: 1rem;
    }
    
    .restaurant-card .row.g-2 .col-6 {
        padding: 0.5rem;
    }
    
    /* Search and filter buttons - ensure minimum touch target */
    #searchButton,
    #clearFiltersButton {
        min-height: 44px;
        min-width: 44px;
        font-size: 16px;
        padding: 12px 16px;
    }
    
    /* Mobile Form Field Readability Improvements */
    
    /* Form labels - improve readability */
    .form-label {
        font-size: 16px;
        font-weight: 600;
        color: #495057;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }
    
    .form-label.required::after {
        content: " *";
        color: #dc3545;
        font-weight: 700;
    }
    
    /* Form controls - enhance readability */
    .form-control,
    .form-select {
        font-size: 16px;
        line-height: 1.5;
        color: #495057;
        background-color: #ffffff;
        border: 2px solid #e9ecef;
        border-radius: 8px;
        padding: 12px 16px;
        transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    }
    
    .form-control:focus,
    .form-select:focus {
        border-color: var(--nomable-primary);
        box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
        background-color: #ffffff;
    }
    
    .form-control::placeholder {
        color: #6c757d;
        font-size: 16px;
        opacity: 0.8;
    }
    
    /* Form select options - improve readability */
    .form-select option {
        font-size: 16px;
        padding: 8px 12px;
        color: #495057;
    }
    
    /* Form checkboxes - improve readability */
    .form-check {
        margin-bottom: 1rem;
    }
    
    .form-check-input {
        width: 20px;
        height: 20px;
        margin-top: 0.25rem;
        margin-right: 0.75rem;
        border: 2px solid #6c757d;
        border-radius: 4px;
    }
    
    .form-check-input:checked {
        background-color: var(--nomable-primary);
        border-color: var(--nomable-primary);
    }
    
    .form-check-label {
        font-size: 16px;
        font-weight: 500;
        color: #495057;
        line-height: 1.5;
        cursor: pointer;
        padding-left: 0.5rem;
    }
    
    /* Input groups - improve readability */
    .input-group-text {
        font-size: 16px;
        color: #6c757d;
        background-color: #f8f9fa;
        border: 2px solid #e9ecef;
        border-right: none;
        padding: 12px 16px;
    }
    
    .input-group .form-control {
        border-left: none;
    }
    
    .input-group .form-control:focus {
        border-left: none;
    }
    
    /* Form validation states - improve readability */
    .form-control.is-invalid,
    .form-select.is-invalid {
        border-color: #dc3545;
        background-color: #fff5f5;
    }
    
    .form-control.is-valid,
    .form-select.is-valid {
        border-color: #28a745;
        background-color: #f8fff9;
    }
    
    .invalid-feedback {
        font-size: 14px;
        font-weight: 500;
        color: #dc3545;
        margin-top: 0.5rem;
        line-height: 1.4;
    }
    
    .valid-feedback {
        font-size: 14px;
        font-weight: 500;
        color: #28a745;
        margin-top: 0.5rem;
        line-height: 1.4;
    }
    
    /* Form groups - improve spacing */
    .mb-3 {
        margin-bottom: 1.5rem !important;
    }
    
    /* Form sections - improve visual hierarchy */
    .card-body {
        padding: 1.5rem;
    }
    
    .card-header {
        padding: 1rem 1.5rem;
        font-size: 18px;
        font-weight: 600;
    }
    
    /* Search form specific improvements */
    #searchInput {
        font-size: 16px;
        padding: 12px 16px;
    }
    
    #searchInput::placeholder {
        color: #6c757d;
        font-size: 16px;
    }
    
    /* Status filter specific improvements */
    #statusFilter {
        font-size: 16px;
        padding: 12px 16px;
    }
    
    /* Form button groups - improve spacing */
    .d-grid.gap-2 {
        gap: 1rem !important;
    }
    
    /* Restaurant info card - improve readability */
    .card .card-body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .card .card-title {
        font-size: 18px;
        font-weight: 600;
        color: #495057;
        margin-bottom: 1rem;
    }
    
    /* Alert messages - improve readability */
    .alert {
        font-size: 16px;
        line-height: 1.5;
        padding: 1rem 1.25rem;
        border-radius: 8px;
        margin-bottom: 1.5rem;
    }
    
    .alert .alert-heading {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile responsive form layout improvements */
    .row.mb-3 {
        margin-bottom: 1.5rem !important;
    }
    
    .row.mb-3 .col-md-6,
    .row.mb-3 .col-md-3 {
        margin-bottom: 1rem;
    }
    
    /* Input group mobile improvements */
    .input-group {
        flex-wrap: wrap;
    }
    
    .input-group .form-control {
        flex: 1 1 auto;
        min-width: 0;
    }
    
    .input-group .btn {
        flex: 0 0 auto;
    }
    
    /* Form submit and reset buttons - ensure minimum touch target */
    #submitButton,
    #resetButton {
        min-height: 44px;
        min-width: 44px;
        font-size: 16px;
        padding: 12px 16px;
        margin: 8px 0;
    }
    
    /* Alert dismiss buttons - ensure minimum touch target */
    .alert .btn-close {
        min-height: 44px;
        min-width: 44px;
        padding: 12px;
        background-size: 20px;
    }
    
    /* Links in error pages - ensure minimum touch target */
    .btn[href] {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
        font-size: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Pagination buttons - ensure minimum touch target */
    .page-link {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Spacing between interactive elements */
    .btn + .btn,
    .nav-link + .nav-link {
        margin-left: 8px;
    }
    
    /* Ensure proper spacing in forms */
    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Improve touch feedback */
    .btn:active,
    .nav-link:active,
    .sortable:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Fix text color for "How Automated Restaurant Booking Works" section */
    .card.border-primary .card-header.text-white h5,
    .card.border-primary .card-header.text-white h5 * {
        color: #ffffff !important;
    }
} 