* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  background: #f8f9fa;
  color: #2d3748;
  min-height: 100vh;
  line-height: 1.5;
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    user-select: none;
    width: 100%;
    background: #1f2937;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header h1 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #f9fafb;
}

.header p {
    font-size: 0.8rem;
    color: #d1d5db;
    font-weight: 400;
}

.content {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    padding: 16px;
    overflow-x: hidden;
}

.section {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.section h2 {
    color: #374151;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section h2::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #6b7280;
    border-radius: 2px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4b5563;
    font-size: 0.875rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #ffffff;
    color: #374151;
    transition: all 0.2s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.1);
}

.btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-right: 6px;
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.status {
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 13px;
    border: 1px solid transparent;
}

.status.success {
    background: #f0f9f3;
    color: #059669;
    border-color: #d1fae5;
}

.status.error {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.status.info {
    background: #f0f9ff;
    color: #0284c7;
    border-color: #bae6fd;
}

.results {
    margin-top: 10px;
}
#restaurantResults.results, #selectedRestaurantsList.results {
    
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
}

.restaurant-card, .meal-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.restaurant-card:hover, .meal-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #10b981;
}

.restaurant-card h3, .meal-card h3 {
    color: #374151;
    margin-bottom: 8px;
    font-size: 1.125rem;
    font-weight: 600;
}

.restaurant-card p, .meal-card p {
    color: #6b7280;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.meal-image {
    max-width: 200px;
    border-radius: 8px;
    margin-top: 10px;
}

.nutrition-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.nutrition-table th, .nutrition-table td {
    border: 1px solid #e5e7eb;
    padding: 8px;
    text-align: left;
}

.nutrition-table th {
    background: #f9fafb;
    font-weight: 600;
}

.hidden {
    display: none;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.loading {
    text-align: center;
    padding: 24px;
    color: #6b7280;
    font-weight: 500;
}

.loading::after {
    content: '⚡';
    animation: pulse 2s ease-in-out infinite;
    margin-left: 8px;
}

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

/* Header Navigation Styles */
.header-navigation {
    display: flex;
    gap: 8px;
    align-items: center;
}

.header-tab-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 90px;
    justify-content: center;
}

.header-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.header-tab-btn.active {
    background: #6b7280;
    color: white;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

/* Tab Content Styles */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

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

/* Tab-specific styling */
#restaurants-tab .section {
    border-left: 4px solid #9ca3af;
}

#takein-tab .section {
    border-left: 4px solid #9ca3af;
}

#takeout-tab .section {
    border-left: 4px solid #9ca3af;
}

/* Inline form layout for compact forms */
.form-inline {
    display: flex;
    gap: 8px;
    align-items: end;
    flex-wrap: wrap;
}

/* Toggle checkbox styling */
.form-group input[type="checkbox"] {
    appearance: none;
    width: 40px;
    height: 20px;
    background: #d1d5db;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 8px;
    flex-shrink: 0;
}

.form-group input[type="checkbox"]:checked {
    background: #10b981;
}

.form-group input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.form-group input[type="checkbox"]:checked::before {
    left: 22px;
}

.form-group input[type="checkbox"]:hover {
    background: #9ca3af;
}

.form-group input[type="checkbox"]:checked:hover {
    background: #059669;
}

.form-group input[type="checkbox"]:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    font-weight: 400;
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
}

.form-inline .form-group {
    flex: 1;
    min-width: 100px;
    margin-bottom: 0;
}

.form-inline .btn {
    margin-bottom: 0;
    align-self: flex-end;
}

/* Compact grid for restaurant cards */
.compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 8px;
}

/* Tables */
.meals-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 12px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.meals-table th {
    background: #f9fafb;
    color: #374151;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.meals-table td {
    padding: 8px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
    color: #4b5563;
    font-size: 13px;
}

.meals-table tr:hover {
    background: #f9fafb;
}

.meals-table tr:last-child td {
    border-bottom: none;
}

.restaurant-badge {
    background: #6b7280;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    font-weight: 500;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .content {
        padding: 8px;
    }
    
    .section {
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 6px;
    }
    
    .form-inline {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-inline .form-group {
        min-width: unset;
    }
    
    .header {
        padding: 8px 12px;
        flex-direction: column;
        gap: 8px;
    }
    
    .header-navigation {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }
    
    .header-tab-btn {
        padding: 10px 14px;
        font-size: 13px;
        min-width: 90px;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .header h1 {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .header p {
        font-size: 0.85rem;
        text-align: center;
    }
    
    .header-left {
        align-items: center;
        text-align: center;
    }
    
    /* Grid layouts for mobile */
    #restaurantResults.results, #selectedRestaurantsList.results {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .compact-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Tablet breakpoint */
@media (max-width: 1024px) and (min-width: 769px) {
    .content {
        padding: 20px;
    }
    
    .header-navigation {
        gap: 6px;
    }
    
    .header-tab-btn {
        padding: 10px 14px;
        font-size: 13px;
        min-width: 100px;
    }
    
    #restaurantResults.results, #selectedRestaurantsList.results {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .compact-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 12px;
    }
}

/* Small mobile breakpoint */
@media (max-width: 480px) {
    .content {
        padding: 6px;
    }
    
    .section {
        padding: 10px;
        margin-bottom: 10px;
        border-radius: 4px;
    }
    
    .section h2 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .header {
        padding: 10px 12px;
    }
    
    .header h1 {
        font-size: 1.2rem;
    }
    
    .header p {
        font-size: 0.8rem;
    }
    
    .header-tab-btn {
        padding: 8px 10px;
        font-size: 12px;
        min-width: 70px;
    }
    
    .btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .form-group input, 
    .form-group select {
        padding: 10px 14px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .status {
        padding: 10px 12px;
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .restaurant-card, .meal-card {
        padding: 14px;
        margin-bottom: 12px;
        border-radius: 8px;
    }
    
    .restaurant-card h3, .meal-card h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .restaurant-card p, .meal-card p {
        font-size: 13px;
        margin-bottom: 4px;
    }
}


.meal-description {
    color: #6b7280;
    font-style: italic;
    line-height: 1.4;
}

.meal-image-cell {
    text-align: center;
    width: 60px;
}

.meal-image-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.meal-image-thumb:hover {
    transform: scale(1.1);
}

.btn-small {
    padding: 4px 8px;
    font-size: 16px;
    line-height: 1;
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    color: #000;
}

/* Enhanced mobile table responsiveness - Card view */
@media (max-width: 768px) {
    .meals-table {
        font-size: 12px;
        display: block;
        overflow: visible;
        white-space: normal;
        box-shadow: none;
        border-radius: 0;
        margin-top: 8px;
    }
    
    .meals-table thead {
        display: block;
    }
    
    .meals-table tbody {
        display: block;
    }
    
    .meals-table tr {
        display: block;
        border: 1px solid #e5e7eb;
        margin-bottom: 12px;
        border-radius: 8px;
        background: white;
        padding: 12px;
        position: relative;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
    }
    
    .meals-table tr:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transform: translateY(-1px);
        border-color: #10b981;
    }
    
    /* Sort indicator on mobile cards */
    .meals-table tr::before {
        content: attr(data-sort-value);
        position: absolute;
        top: 4px;
        right: 8px;
        font-size: 10px;
        color: #9ca3af;
        background: #f3f4f6;
        padding: 2px 4px;
        border-radius: 3px;
        display: none; /* Only show when actively sorted */
    }
    
    .meals-table.sorted tr::before {
        display: block;
    }
    
    .meals-table th {
        display: none; /* Hide headers in mobile stacked view */
    }
    
    .meals-table td {
        display: block;
        padding: 4px 0;
        border: none;
        text-align: left !important;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.4;
    }
    
    /* Enhanced mobile card labels */
    .meals-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        display: inline-block;
        width: 80px;
        margin-right: 8px;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .meals-table td:not(:last-child) {
        border-bottom: 1px solid #f3f4f6;
        padding-bottom: 6px;
        margin-bottom: 4px;
    }
    
    /* Special handling for nutrition columns */
    .meals-table .nutrition-col:before {
        font-size: 11px;
        width: 80px;
    }
    
    .restaurant-badge {
        font-size: 10px;
        padding: 2px 6px;
        margin-bottom: 4px;
        display: inline-block;
    }
    
    .meal-image-thumb {
        width: 30px;
        height: 30px;
        margin: 4px 0;
    }
    
    .btn-small {
        padding: 4px 8px;
        font-size: 12px;
        margin-top: 4px;
    }
    
    /* Scrollable table wrapper for mobile */
    .table-scroll-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        margin: 8px 0;
    }
    
    .table-scroll-wrapper::-webkit-scrollbar {
        height: 4px;
    }
    
    .table-scroll-wrapper::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 4px;
    }
    
    .table-scroll-wrapper::-webkit-scrollbar-thumb {
        background: #10b981;
        border-radius: 4px;
    }

    /* Alternative horizontal scroll table for complex data */
    .meals-table.horizontal-scroll {
        display: table;
        min-width: 100%;
        width: max-content;
        margin: 0;
    }
    
    .meals-table.horizontal-scroll thead {
        display: table-header-group;
    }
    
    .meals-table.horizontal-scroll tbody {
        display: table-row-group;
    }
    
    .meals-table.horizontal-scroll tr {
        display: table-row;
        border: none;
        margin: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
    }
    
    .meals-table.horizontal-scroll tr::before {
        display: none;
    }
    
    .meals-table.horizontal-scroll th {
        display: table-cell;
        padding: 8px 4px;
        font-size: 11px;
    }
    
    .meals-table.horizontal-scroll td {
        display: table-cell;
        padding: 6px 4px;
        border-bottom: 1px solid #e5e7eb;
        white-space: nowrap;
    }
    
    .meals-table.horizontal-scroll td:before {
        display: none;
    }
}

/* Very small mobile screens */
@media (max-width: 480px) {
    .meals-table {
        font-size: 11px;
    }
    
    .meals-table td:before {
        font-size: 11px;
        width: 90px;
        margin-right: 8px;
    }
    
    .restaurant-badge {
        font-size: 9px;
        padding: 1px 4px;
    }
    
    .meal-image-thumb {
        width: 25px;
        height: 25px;
    }
    
    .btn-small {
        padding: 3px 6px;
        font-size: 11px;
    }
}

/* Nutrition column styling */
.meals-table .nutrition-col {
    text-align: center;
    font-weight: bold;
    min-width: 60px;
}

.nutrition-calories { color: #f59e0b !important; }
.nutrition-carbs { color: #3b82f6 !important; }
.nutrition-sugar { color: #ef4444 !important; }
.nutrition-fiber { color: #10b981 !important; }
.nutrition-fat { color: #8b5cf6 !important; }
.nutrition-protein { color: #dc2626 !important; }

.nutrition-header {
    background: #9ca3af !important;
    color: white !important;
    font-size: 12px;
    padding: 12px 8px;
}

.nutrition-header.calories { background: #f59e0b !important; }
.nutrition-header.carbs { background: #3b82f6 !important; }
.nutrition-header.sugar { background: #ef4444 !important; }
.nutrition-header.fiber { background: #10b981 !important; }
.nutrition-header.fat { background: #8b5cf6 !important; }
.nutrition-header.protein { background: #dc2626 !important; }

.nutrition-loading {
    text-align: center;
    padding: 24px;
    color: #6b7280;
    font-style: italic;
}

/* Take-out meals expanded view styles */
.takeout-meals-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.meal-card.expanded {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.meal-header {
    background: #f9fafb;
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.meal-title h3 {
    color: #374151;
    margin: 8px 0;
    font-size: 1.3em;
}

.meal-title .meal-description {
    color: #6b7280;
    font-size: 0.9em;
    font-style: italic;
}

.meal-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-top: 10px;
}

.meal-info span {
    font-size: 0.85em;
    color: #4b5563;
}

.meal-info .meal-image-thumb {
    max-width: 60px;
    max-height: 60px;
    border-radius: 4px;
    object-fit: cover;
    cursor: pointer;
}

.menu-items-container {
    padding: 15px;
}

.menu-items-container h4 {
    color: #374151;
    margin-bottom: 12px;
    font-size: 1.1em;
    border-bottom: 2px solid #9ca3af;
    padding-bottom: 5px;
    display: inline-block;
}

.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.menu-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    transition: background-color 0.2s;
}

.menu-item:hover {
    background: #f3f4f6;
}

.menu-item strong {
    color: #374151;
    display: block;
    margin-bottom: 4px;
}

.main-course-badge {
    background: #6b7280;
    color: white;
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}

.no-menu-items {
    color: #6b7280;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.meal-actions {
    background: #f9fafb;
    padding: 12px 15px;
    border-top: 1px solid #e5e7eb;
}

/* Responsive design for take-out view */
@media (max-width: 768px) {
    .menu-items-grid {
        grid-template-columns: 1fr;
    }
    
    .meal-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Sortable table styles */
.meals-table th[title] {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.meals-table th[title]:hover {
    background-color: #f3f4f6;
}

.meals-table th.sort-asc::after {
    content: ' ▲';
    color: #6b7280;
    font-size: 12px;
    margin-left: 5px;
}

.meals-table th.sort-desc::after {
    content: ' ▼';
    color: #6b7280;
    font-size: 12px;
    margin-left: 5px;
}

.meals-table th[title]:not(.sort-asc):not(.sort-desc)::after {
    content: ' ⇅';
    color: #d1d5db;
    font-size: 12px;
    margin-left: 5px;
    opacity: 0;
    transition: opacity 0.2s;
}

.meals-table th[title]:not(.sort-asc):not(.sort-desc):hover::after {
    opacity: 1;
}

/* Mobile toggle adjustments */
@media (max-width: 768px) {
    .form-group input[type="checkbox"] {
        width: 44px;
        height: 24px;
        margin-right: 10px;
    }
    
    .form-group input[type="checkbox"]::before {
        width: 20px;
        height: 20px;
        top: 2px;
        left: 2px;
    }
    
    .form-group input[type="checkbox"]:checked::before {
        left: 22px;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .form-group input[type="checkbox"] {
        width: 36px;
        height: 20px;
        margin-right: 8px;
    }
    
    .form-group input[type="checkbox"]::before {
        width: 16px;
        height: 16px;
    }
    
    .form-group input[type="checkbox"]:checked::before {
        left: 18px;
    }
}

/* Enhanced touch-friendly interactions */
@media (pointer: coarse) {
    .btn {
        min-height: 44px; /* iOS recommended touch target */
        min-width: 44px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .header-tab-btn {
        min-height: 44px;
        min-width: 88px;
        padding: 12px 16px;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    }
    
    .form-group input,
    .form-group select {
        min-height: 44px;
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px 16px;
    }
    
    .filter-option {
        min-height: 44px;
        padding: 12px 8px;
        -webkit-tap-highlight-color: rgba(16, 185, 129, 0.1);
    }
    
    .meals-table tr {
        min-height: 60px;
        padding: 16px 12px;
        -webkit-tap-highlight-color: rgba(16, 185, 129, 0.05);
    }
    
    .btn-small {
        min-height: 36px;
        min-width: 36px;
        padding: 8px 12px;
    }
    
    /* Better touch targets for sortable headers */
    .meals-table th {
        min-height: 44px;
        padding: 14px 8px;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(16, 185, 129, 0.1);
    }
    
    /* Enhanced visual feedback for touch */
    .filter-option:active {
        background: rgba(16, 185, 129, 0.05);
        border-radius: 4px;
    }
    
    .meals-table tr:active {
        background: rgba(16, 185, 129, 0.02);
    }
}

/* Mobile view toggle and sort controls */
.mobile-table-controls {
    display: none;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .mobile-table-controls {
        display: flex;
    }
}

.mobile-sort-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mobile-sort-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.mobile-sort-select {
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    min-width: 120px;
}

.mobile-sort-direction {
    padding: 4px 8px;
    font-size: 12px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-sort-direction:hover {
    background: #4b5563;
}

.mobile-sort-direction.asc::after {
    content: '↑';
}

.mobile-sort-direction.desc::after {
    content: '↓';
}

.view-toggle-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.view-toggle-btn:hover {
    background: #4b5563;
}

.view-toggle-btn.active {
    background: #10b981;
}

/* Improved focus styles for accessibility */
input:focus,
select:focus,
button:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
    border-color: #10b981;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .status.success {
        background: #000;
        color: #fff;
        border-color: #fff;
    }
    
    .status.error {
        background: #ff0000;
        color: #fff;
        border-color: #fff;
    }
    
    .btn {
        border: 2px solid #000;
    }
    
    .meals-table th,
    .meals-table td {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .restaurant-card:hover,
    .meal-card:hover {
        transform: none;
    }
}

/* Mobile-optimized meal controls */
.meal-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.meal-controls-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.meal-controls .form-group {
    margin-bottom: 0;
}

.meal-controls .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.restaurant-select {
    grid-column: 1 / -1;
}

.meal-filters {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
}

.filter-title {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
}

.filter-option span {
    color: #374151;
    font-weight: 500;
}

.filter-option input[type="checkbox"] {
    margin-right: 0;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .meal-controls {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .meal-controls-row {
        gap: 8px;
    }
    
    .meal-filters {
        padding: 10px;
    }
    
    .filter-options {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-option {
        padding: 6px 0;
    }
}

@media (max-width: 480px) {
    .meal-controls-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .meal-controls .form-group label {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .filter-title {
        font-size: 12px;
    }
    
    .filter-option {
        font-size: 13px;
        padding: 8px 0;
    }
}

/* Compact UI enhancements */
.compact-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    align-items: end;
}

.compact-form .form-group {
    margin-bottom: 0;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    background: #f3f4f6;
    color: #6b7280;
    margin-right: 4px;
}

.quick-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.quick-actions .btn {
    padding: 4px 8px;
    font-size: 12px;
    margin: 0;
}

/* Improved visual hierarchy */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-title h2 {
    margin-bottom: 0;
}

.section-actions {
    display: flex;
    gap: 4px;
}

.section-actions .btn {
    padding: 4px 8px;
    font-size: 12px;
    margin: 0;
}

/* Gallery Styles */
.gallery-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.gallery-count {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    margin-left: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    object-position: center;
    display: block;
    background: white;
}

.gallery-image.loading {
    background: #f3f4f6 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23d1d5db"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>') center/24px no-repeat;
}

.gallery-image.error {
    background: #fef2f2 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ef4444"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>') center/24px no-repeat;
}

.gallery-item-info {
    padding: 12px;
    background: white;
}

.gallery-item-title {
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    margin-bottom: 6px;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.gallery-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
    flex-wrap: wrap;
    gap: 4px;
}

.gallery-restaurant-badge {
    background: #e5e7eb;
    color: #374151;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
}

.gallery-meal-course {
    font-size: 11px;
    color: #9ca3af;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
}

.gallery-pscore-container {
    margin-top: 8px;
    display: flex;
    justify-content: center;
}

.gallery-pscore {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
}

.gallery-pscore.no-data {
    background-color: #f3f4f6;
    color: #9ca3af;
    border: 1px solid #e5e7eb;
}

.gallery-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.gallery-item.ranked {
    position: relative;
}

/* Gallery without labels */
.gallery-grid.no-labels .gallery-item-info {
    display: none;
}

.gallery-grid.no-labels .gallery-item {
    border-radius: 8px;
}

.gallery-grid.no-labels .gallery-image {
    border-radius: 8px;
}

/* Gallery loading state */
.gallery-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.gallery-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: #6b7280;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

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

.gallery-empty {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-style: italic;
}

/* Enhanced image modal for gallery */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.gallery-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gallery-modal-image {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.gallery-modal-info {
    padding: 16px 20px;
    background: white;
}

.gallery-modal-title {
    font-weight: 600;
    font-size: 16px;
    color: #374151;
    margin-bottom: 8px;
}

.gallery-modal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #6b7280;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-modal-nutrition {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.gallery-modal-pscore {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 12px;
}

.gallery-modal-pscore.no-data {
    background-color: #f3f4f6;
    color: #9ca3af;
    border: 2px solid #e5e7eb;
}

.gallery-modal-nutrition-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.nutrition-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 13px;
}

.nutrition-label {
    color: #6b7280;
    font-weight: 500;
}

.nutrition-value {
    color: #374151;
    font-weight: bold;
}

.gallery-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.gallery-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Mobile gallery styles */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }
    
    .gallery-image {
        height: 140px;
    }
    
    .gallery-item-info {
        padding: 8px;
    }
    
    .gallery-item-title {
        font-size: 13px;
    }
    
    .gallery-item-meta {
        font-size: 11px;
    }
    
    .gallery-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .gallery-modal-content {
        margin: 10px;
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }
    
    .gallery-modal-image {
        max-height: 60vh;
    }
    
    .gallery-modal-info {
        padding: 12px 16px;
    }
    
    .gallery-modal-nutrition-details {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 6px;
    }
    
    .nutrition-item {
        padding: 4px 8px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }
    
    .gallery-image {
        height: 120px;
    }
    
    .gallery-item-info {
        padding: 6px;
    }
    
    .gallery-item-title {
        font-size: 12px;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
    
    .gallery-item-meta {
        font-size: 10px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .gallery-rank {
        top: 4px;
        left: 4px;
        padding: 2px 6px;
        font-size: 12px;
    }
}

/* Takeout multi-select styles */
.takeout-selection-controls {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.selection-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.takeout-selectable-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
}

.takeout-selectable-row:hover {
    background-color: #f3f4f6 !important;
}

.selected-takeout-item {
    background-color: #dbeafe !important;
    border-left: 4px solid #3b82f6;
}

.selected-takeout-item:hover {
    background-color: #bfdbfe !important;
}

/* Enhanced checkbox styling - Global styles for all checkboxes */
/* Standard checkbox design for selection contexts */
input[type="checkbox"]:not(.form-group input[type="checkbox"]):not(.filter-option input[type="checkbox"]) {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin: 0;
    transform: scale(1.1);
}

input[type="checkbox"]:not(.form-group input[type="checkbox"]):not(.filter-option input[type="checkbox"]):hover {
    border-color: #3b82f6;
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input[type="checkbox"]:not(.form-group input[type="checkbox"]):not(.filter-option input[type="checkbox"]):checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

input[type="checkbox"]:not(.form-group input[type="checkbox"]):not(.filter-option input[type="checkbox"]):checked::before {
    content: '✓';
    position: absolute;
    top: -1px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

input[type="checkbox"]:not(.form-group input[type="checkbox"]):not(.filter-option input[type="checkbox"]):focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

input[type="checkbox"]:not(.form-group input[type="checkbox"]):not(.filter-option input[type="checkbox"]):disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Enhanced filter checkbox styling */
.filter-option input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 3px;
    background: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin-right: 6px;
    vertical-align: middle;
}

.filter-option input[type="checkbox"]:hover {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

.filter-option input[type="checkbox"]:checked {
    background-color: #10b981;
    border-color: #10b981;
}

.filter-option input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 1px;
    color: white;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
}

.filter-option input[type="checkbox"]:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Checkbox column styling for tables */
.takeout-selectable-row td:first-child {
    text-align: center;
    width: 50px;
    padding: 12px 8px;
}

/* Restaurant selection checkbox styling */
.restaurant-checkbox {
    margin-right: 8px;
}

/* Gallery controls checkbox styling */
#galleryShowLabels {
    margin-right: 6px;
}

/* Floating aggregated nutrition box for PC */
.aggregated-nutrition-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 350px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease-in-out;
    pointer-events: none;
}

.aggregated-nutrition-float.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.aggregated-nutrition-float .float-header {
    padding: 15px 15px 10px 15px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aggregated-nutrition-float .float-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.aggregated-nutrition-float .float-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.aggregated-nutrition-float .float-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.aggregated-nutrition-float .float-content {
    padding: 15px;
}

.aggregated-nutrition-float .nutrition-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.aggregated-nutrition-float .nutrition-item {
    text-align: center;
    padding: 8px;
    background: #f9fafb;
    border-radius: 6px;
}

.aggregated-nutrition-float .nutrition-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.aggregated-nutrition-float .nutrition-value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.aggregated-nutrition-float .pscore-item {
    grid-column: span 2;
}

.aggregated-nutrition-float .pscore-value {
    font-size: 16px;
    font-weight: 700;
}

.aggregated-nutrition-float .selected-items-count {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    padding: 8px;
    background: #f3f4f6;
    border-radius: 6px;
    margin-bottom: 10px;
}

.aggregated-nutrition-float .float-actions {
    display: flex;
    gap: 8px;
}

.aggregated-nutrition-float .btn-float {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aggregated-nutrition-float .btn-float:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.aggregated-nutrition-float .btn-float.btn-primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.aggregated-nutrition-float .btn-float.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* Hide floating box on mobile and tablet */
@media (max-width: 1024px) {
    .aggregated-nutrition-float {
        display: none;
    }
}

/* Mobile floating bottom toolbar */
.mobile-nutrition-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease-in-out;
    pointer-events: none;
}

.mobile-nutrition-toolbar.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-nutrition-toolbar .toolbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
}

.mobile-nutrition-toolbar .selected-info {
    flex: 1;
    margin-right: 12px;
}

.mobile-nutrition-toolbar .selected-count {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 2px;
}

.mobile-nutrition-toolbar .selected-items {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-nutrition-toolbar .toolbar-button {
    padding: 10px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mobile-nutrition-toolbar .toolbar-button:hover {
    background: #2563eb;
}

.mobile-nutrition-toolbar .toolbar-button:active {
    transform: scale(0.98);
}

/* Hide mobile toolbar on PC */
@media (min-width: 1025px) {
    .mobile-nutrition-toolbar {
        display: none;
    }
}

/* Share button and notification animations */
.share-button {
    background: #3b82f6 !important;
    color: white !important;
    border: 1px solid #3b82f6 !important;
    font-size: 12px !important;
    padding: 6px 12px !important;
}

.share-button:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive styles for takeout selection */
@media (max-width: 768px) {
    .takeout-selection-controls {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .selection-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .selection-actions button {
        width: 100%;
        text-align: center;
    }
}
