/* Responsive Design handling for mobile and smaller screens */
@media (max-width: 768px) {
    .mobile-only { display: flex; align-items: center; justify-content: center; }

    .navbar {
        height: auto;
        min-height: 64px;
        flex-direction: row;
        padding: 0.4rem 0.75rem;
        flex-wrap: nowrap;
    }
    .navbar .logo { font-size: 1.05rem; }
    .nav-actions { gap: 0.35rem; }
    button { padding: 0.4rem 0.55rem; font-size: 0.76rem; }
    .navbar button svg { width: 16px; height: 16px; }

    .layout {
        flex-direction: row;
        margin-top: 64px;
        height: calc(100vh - 64px);
    }

    .content { padding: 1rem 0.85rem; }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        width: 100%;
        background-color: color-mix(in srgb, var(--surface) 93%, var(--primary) 7%);
        flex-direction: column;
        padding: 0.35rem 0;
        box-shadow: var(--shadow-sm);
        border-bottom: 1px solid var(--border);
        z-index: 99;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-item {
        width: 100%;
        text-align: center;
        padding: 0.85rem 1rem;
        border-radius: 0;
        border-bottom: 1px solid var(--border);
    }
    .nav-item.active {
        border-bottom-color: transparent;
    }
    .nav-item:last-child {
        border-bottom: none;
    }
    .nav-item:hover {
        transform: none;
    }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }

    .seating-grid {
        grid-template-columns: repeat(9, minmax(28px, 1fr));
        gap: 0.3rem;
    }
    .seat { font-size: 0.73rem; min-height: 28px; }
    .seat:nth-child(18n + 10) {
        grid-column-start: auto;
    }

    .table-container { max-height: calc(100vh - 290px); }
    .data-table th, .data-table td { padding: 0.7rem; font-size: 0.84rem; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .scan-instructions { font-size: 0.92rem; text-align: center; }
    .manual-form,
    .result-card,
    .qr-reader-box { max-width: 100%; }
    .toast-container { left: 12px; right: 12px; bottom: 12px; }
    .toast { min-width: 0; width: 100%; }
}
