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

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
            transition: all 0.3s ease;
        }

        /* Password Protection Overlay */
        .password-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            backdrop-filter: blur(10px);
        }

        .password-container {
            background: white;
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
            text-align: center;
            max-width: 400px;
            width: 90%;
        }

        .password-container h2 {
            color: #2c3e50;
            margin-bottom: 10px;
            font-size: 1.8rem;
        }

        .password-container p {
            color: #7f8c8d;
            margin-bottom: 30px;
            font-size: 1rem;
        }

        .password-input {
            width: 100%;
            padding: 15px;
            border: 2px solid #dee2e6;
            border-radius: 10px;
            font-size: 1.1rem;
            margin-bottom: 20px;
            text-align: center;
            transition: border-color 0.3s ease;
        }

        .password-input:focus {
            outline: none;
            border-color: #3498db;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
        }

        .password-input.error {
            border-color: #e74c3c;
            background: rgba(231, 76, 60, 0.05);
        }

        .password-btn {
            background: linear-gradient(135deg, #3498db, #2980b9);
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 10px;
            cursor: pointer;
            font-size: 1.1rem;
            font-weight: 600;
            transition: all 0.3s ease;
            width: 100%;
        }

        .password-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 15px rgba(52, 152, 219, 0.3);
        }

        .password-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .password-error {
            color: #e74c3c;
            margin-top: 15px;
            font-weight: 600;
            display: none;
        }

        .tv-access-note {
            background: rgba(52, 152, 219, 0.1);
            border: 1px solid #3498db;
            color: #3498db;
            padding: 15px;
            border-radius: 10px;
            margin-top: 20px;
            font-size: 0.9rem;
        }

        .password-overlay.hidden {
            display: none;
        }

        /* TV Display Mode */
        body.tv-mode {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
            padding: 0;
            overflow: hidden;
        }

        .main-content.tv-mode {
            display:none;
        }

        .container {
            max-width: 1600px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .container.tv-mode {
            max-width: 100vw;
            height: 100vh;
            margin: 0;
            border-radius: 0;
            background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
            color: white;
            display: flex;
            flex-direction: column;
        }

        .header {
            background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
            color: white;
            padding: 30px;
            text-align: center;
            position: relative;
        }

        .header.tv-mode {
            background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
            padding: 11px;
			
            box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
        }

        .header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            font-weight: 300;
        }

        .header.tv-mode h1 {
            font-size: 2.5rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .header p {
            opacity: 0.9;
            font-size: 1.1rem;
        }

        .mode-toggle {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(255,255,255,0.2);
            border: 2px solid rgba(255,255,255,0.3);
            color: white;
            padding: 10px 20px;
            border-radius: 25px;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 600;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .mode-toggle:hover {
            background: rgba(255,255,255,0.3);
            transform: translateY(-2px);
        }

        /* Category Filter Bar */
        .category-filters {
            background: #f8f9fa;
            padding: 15px;
            border-bottom: 2px solid #dee2e6;
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
        }

        .filter-label {
            font-weight: 600;
            color: #2c3e50;
            margin-right: 10px;
        }

        .category-filter {
            background: white;
            border: 2px solid #dee2e6;
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.3s ease;
            color: #495057;
        }

        .category-filter:hover {
            border-color: #3498db;
            transform: translateY(-1px);
        }

        .category-filter.active {
            background: linear-gradient(135deg, #3498db, #2980b9);
            color: white;
            border-color: #2980b9;
        }

        .category-filter.category-all {
            background: linear-gradient(135deg, #95a5a6, #7f8c8d);
            color: white;
            border-color: #7f8c8d;
        }

        .category-filter.category-all.active {
            background: linear-gradient(135deg, #2c3e50, #34495e);
        }

        /* Updated Category Colors for Bulgarian categories */
        .category-ястия { border-left-color: #8e44ad !important; }
        .category-ястия.active { background: linear-gradient(135deg, #8e44ad, #7d3c98) !important; }

        .category-супи { border-left-color: #f39c12 !important; }
        .category-супи.active { background: linear-gradient(135deg, #f39c12, #e67e22) !important; }

		.category-гарнитури { border-left-color: #f39c12 !important; }
        .category-гарнитури.active { background: linear-gradient(135deg, #f39c12, #e67e22) !important; }


		.category-скара { border-left-color: #f39c12 !important; }
        .category-скара.active { background: linear-gradient(135deg, #f39c12, #e67e22) !important; }

		.category-пържени-изделия { border-left-color: #f39c12 !important; }
        .category-пържени-изделия.active { background: linear-gradient(135deg, #f39c12, #e67e22) !important; }


        .category-допълнения { border-left-color: #27ae60 !important; }
        .category-допълнения.active { background: linear-gradient(135deg, #27ae60, #229954) !important; }

        .category-предястия { border-left-color: #e74c3c !important; }
        .category-предястия.active { background: linear-gradient(135deg, #e74c3c, #c0392b) !important; }

        .category-десерти { border-left-color: #e91e63 !important; }
        .category-десерти.active { background: linear-gradient(135deg, #e91e63, #c2185b) !important; }

        .category-напитки { border-left-color: #00bcd4 !important; }
        .category-напитки.active { background: linear-gradient(135deg, #00bcd4, #0097a7) !important; }

        /* Keep original English category colors as fallback */
        .category-appetizers { border-left-color: #e74c3c !important; }
        .category-appetizers.active { background: linear-gradient(135deg, #e74c3c, #c0392b) !important; }

        .category-salads { border-left-color: #27ae60 !important; }
        .category-salads.active { background: linear-gradient(135deg, #27ae60, #229954) !important; }

        .category-soups { border-left-color: #f39c12 !important; }
        .category-soups.active { background: linear-gradient(135deg, #f39c12, #e67e22) !important; }

        .category-main-courses { border-left-color: #8e44ad !important; }
        .category-main-courses.active { background: linear-gradient(135deg, #8e44ad, #7d3c98) !important; }

        .category-desserts { border-left-color: #e91e63 !important; }
        .category-desserts.active { background: linear-gradient(135deg, #e91e63, #c2185b) !important; }

        .category-beverages { border-left-color: #00bcd4 !important; }
        .category-beverages.active { background: linear-gradient(135deg, #00bcd4, #0097a7) !important; }

        .main-content {
            display: grid;
            grid-template-columns: 1fr 350px;
            gap: 20px;
            padding: 30px;
            flex: 1;
        }

        .main-content.tv-mode {
            grid-template-columns: 1fr;
            padding: 20px;
            gap: 0;
        }

        .menu-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .menu-section.tv-mode {
            display: none;
        }

        .column {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 20px;
            min-height: 500px;
            border: 3px dashed #dee2e6;
            transition: all 0.3s ease;
            overflow-y: auto;
            max-height: 600px;
        }

        .column h2 {
            color: #2c3e50;
            margin-bottom: 20px;
            font-size: 1.5rem;
            text-align: center;
            padding-bottom: 10px;
            border-bottom: 2px solid #3498db;
            position: sticky;
            top: 0;
            background: #f8f9fa;
            z-index: 10;
        }

        .dish-item {
            background: white;
            margin: 10px 0;
            padding: 15px;
            border-radius: 10px;
            cursor: move;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            border-left: 5px solid #e74c3c;
            user-select: none;
            position: relative;
        }

        .dish-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 15px rgba(0,0,0,0.2);
        }

        .dish-item.in-menu {
            background: linear-gradient(135deg, #2ecc71, #27ae60);
            color: white;
            border-left-color: #27ae60;
        }

        .dish-item.dragging {
            opacity: 0.5;
            transform: rotate(5deg);
        }

        .dish-item.hidden {
            display: none;
        }

        /* Category badge */
        .dish-category {
            position: absolute;
            top: 8px;
            right: 8px;
            background: rgba(0,0,0,0.1);
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .dish-item.in-menu .dish-category {
            background: rgba(255,255,255,0.3);
            color: white;
        }

        .dish-name {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 8px;
            padding-right: 60px;
        }

        .dish-price {
            font-size: 0.9rem;
            opacity: 0.8;
        }

        .dish-item.in-menu .dish-price {
            opacity: 1;
        }

        .daily-menu-column {
            border-color: #27ae60;
            background: linear-gradient(135deg, #f8fff8, #e8f5e8);
        }

        .column.drag-over {
            border-color: #3498db;
            background: linear-gradient(135deg, #e3f2fd, #bbdefb);
            transform: scale(1.02);
        }

        .form-section {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 20px;
            height: fit-content;
            max-height: 80vh;
            overflow-y: auto;
        }

        .form-section.tv-mode {
            display: none;
        }

        .form-section h3 {
            color: #2c3e50;
            margin-bottom: 20px;
            font-size: 1.3rem;
            text-align: center;
            padding-bottom: 10px;
            border-bottom: 2px solid #e74c3c;
        }

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

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #2c3e50;
        }

        .form-group input, .form-group select {
            width: 100%;
            padding: 12px;
            border: 2px solid #dee2e6;
            border-radius: 8px;
            font-size: 1rem;
            transition: border-color 0.3s ease;
        }

        .form-group input:focus, .form-group select:focus {
            outline: none;
            border-color: #3498db;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
        }

        .btn {
            background: linear-gradient(135deg, #e74c3c, #c0392b);
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 600;
            transition: all 0.3s ease;
            width: 100%;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 15px rgba(231, 76, 60, 0.3);
        }

        .btn-save-menu {
            background: linear-gradient(135deg, #27ae60, #2ecc71);
            margin-top: 15px;
        }

        .btn-save-menu:hover {
            box-shadow: 0 8px 15px rgba(39, 174, 96, 0.3);
        }

        .stats {
            background: white;
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 20px;
            text-align: center;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        .stats h4 {
            color: #2c3e50;
            margin-bottom: 10px;
        }

        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            color: #e74c3c;
        }

        .currency-display {
            display: flex;
            justify-content: space-between;
            margin-top: 5px;
        }

        .currency-item {
            text-align: center;
            flex: 1;
        }

        .currency-label {
            font-size: 0.8rem;
            color: #7f8c8d;
            text-transform: uppercase;
            font-weight: 600;
        }

        .currency-value {
            font-weight: 700;
            color: #2c3e50;
        }

        /* TV Display Styles - NEW CATEGORIZED LAYOUT */
        .tv-display {
            display: none;
            flex: 1;
            padding: 15px;
            overflow: hidden;
        }

        .tv-display.active {
            display: flex;
            flex-direction: column;
        }

        .tv-menu-header {
            text-align: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 3px solid #e74c3c;
        }

        .tv-date {
            font-size: 1rem;
            color: #bdc3c7;
            margin-bottom: 8px;
        }

        .tv-title {
            font-size: 1.8rem;
            color: #ecf0f1;
            font-weight: 300;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        /* NEW: Flowing Category Layout for TV */
        .tv-categories-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 15px;
            flex: 1;
            overflow: hidden;
            min-height: 0;
        }

        .tv-categories-flow-column {
            display: flex;
            flex-direction: column;
            gap: 0px;
            overflow-y: auto;
            min-height: 0;
            padding-right: 5px;
        }

        /* Custom scrollbar for TV flow columns */
        .tv-categories-flow-column::-webkit-scrollbar {
            width: 6px;
        }

        .tv-categories-flow-column::-webkit-scrollbar-track {
            background: rgba(255,255,255,0.1);
            border-radius: 3px;
        }

        .tv-categories-flow-column::-webkit-scrollbar-thumb {
            background: rgba(231, 76, 60, 0.6);
            border-radius: 3px;
        }

        .tv-categories-flow-column::-webkit-scrollbar-thumb:hover {
            background: rgba(231, 76, 60, 0.8);
        }

        .tv-category-section {
            background: linear-gradient(135deg, rgba(52, 73, 94, 0.9), rgba(44, 62, 80, 0.9));
            border-radius: 15px;
            padding: 15px;
            border: 2px solid rgba(231, 76, 60, 0.3);
            backdrop-filter: blur(10px);
            margin-bottom: 0;
        }

        .tv-category-header-flow {
            text-align: left;
            padding: 10px 15px;
            margin: 15px 0 10px 0;
            border-radius: 10px;
            font-size: 1.1rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            border-left: 4px solid rgba(231, 76, 60, 0.8);
        }

        /* Category-specific header colors for flow layout */
        .tv-category-header-flow.предястия {
            background: linear-gradient(135deg, rgba(231, 76, 60, 0.9), rgba(192, 57, 43, 0.9));
            color: white;
            border-left-color: #e74c3c;
        }

        .tv-category-header-flow.допълнения {
            background: linear-gradient(135deg, rgba(39, 174, 96, 0.9), rgba(34, 153, 84, 0.9));
            color: white;
            border-left-color: #27ae60;
        }

        .tv-category-header-flow.супи {
            background: linear-gradient(135deg, rgba(243, 156, 18, 0.9), rgba(230, 126, 34, 0.9));
            color: white;
            border-left-color: #f39c12;
        }
		
		.tv-category-header-flow.скара {
            background: linear-gradient(135deg, rgba(243, 156, 18, 0.9), rgba(230, 126, 34, 0.9));
            color: white;
            border-left-color: #f39c12;
        }
		.tv-category-header-flow.гарнитури {
            background: linear-gradient(135deg, rgba(243, 156, 18, 0.9), rgba(230, 126, 34, 0.9));
            color: white;
            border-left-color: #f39c12;
        }
		
		.tv-category-header-flow.пържени-изделия {
            background: linear-gradient(135deg, rgba(243, 156, 18, 0.9), rgba(230, 126, 34, 0.9));
            color: white;
            border-left-color: #f39c12;
        }

        .tv-category-header-flow.ястия {
            background: linear-gradient(135deg, rgba(142, 68, 173, 0.9), rgba(125, 60, 152, 0.9));
            color: white;
            border-left-color: #8e44ad;
        }

        .tv-category-header-flow.десерти {
            background: linear-gradient(135deg, rgba(233, 30, 99, 0.9), rgba(194, 24, 91, 0.9));
            color: white;
            border-left-color: #e91e63;
        }

        .tv-category-header-flow.напитки {
            background: linear-gradient(135deg, rgba(0, 188, 212, 0.9), rgba(0, 151, 167, 0.9));
            color: white;
            border-left-color: #00bcd4;
        }

        /* English fallbacks for flow headers */
        .tv-category-header-flow.appetizers {
            background: linear-gradient(135deg, rgba(231, 76, 60, 0.9), rgba(192, 57, 43, 0.9));
            color: white;
            border-left-color: #e74c3c;
        }

        .tv-category-header-flow.salads {
            background: linear-gradient(135deg, rgba(39, 174, 96, 0.9), rgba(34, 153, 84, 0.9));
            color: white;
            border-left-color: #27ae60;
        }

        .tv-category-header-flow.soups {
            background: linear-gradient(135deg, rgba(243, 156, 18, 0.9), rgba(230, 126, 34, 0.9));
            color: white;
            border-left-color: #f39c12;
        }

        .tv-category-header-flow.main-courses {
            background: linear-gradient(135deg, rgba(142, 68, 173, 0.9), rgba(125, 60, 152, 0.9));
            color: white;
            border-left-color: #8e44ad;
        }

        .tv-category-header-flow.desserts {
            background: linear-gradient(135deg, rgba(233, 30, 99, 0.9), rgba(194, 24, 91, 0.9));
            color: white;
            border-left-color: #e91e63;
        }

        /* Management controls protection */
        .main-content.tv-only .form-section,
        .main-content.tv-only .category-filters,
        .main-content.tv-only .menu-section {
            display: none !important;
        }

        .container.tv-only .mode-toggle {
            display: none !important;
        }

        .tv-only .remove-btn {
            display: none !important;
        }

        /* TV-only access styling */
        .container.tv-only {
            background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
            color: white;
        }

        .header.tv-only {
            background: linear-gradient(135deg, #ef8176 0%, #c35145 100%);
        }

        .tv-category-dishes {
            flex: 1;
            overflow-y: auto;
            min-height: 0;
            padding-right: 5px;
        }

        /* Custom scrollbar for TV categories */
        .tv-category-dishes::-webkit-scrollbar {
            width: 6px;
        }

        .tv-category-dishes::-webkit-scrollbar-track {
            background: rgba(255,255,255,0.1);
            border-radius: 3px;
        }

        .tv-category-dishes::-webkit-scrollbar-thumb {
            background: rgba(231, 76, 60, 0.6);
            border-radius: 3px;
        }

        .tv-category-dishes::-webkit-scrollbar-thumb:hover {
            background: rgba(231, 76, 60, 0.8);
        }

        .tv-dish-item {
            background: rgba(255,255,255,0.05);
            border-radius: 10px;
            padding: 12px;
            margin-bottom: 10px;
            border-left: 4px solid rgba(231, 76, 60, 0.6);
            transition: all 0.3s ease;
            position: relative;
        }

        .tv-dish-item:hover {
            background: rgba(255,255,255,0.1);
            transform: translateX(5px);
            border-left-color: rgba(231, 76, 60, 1);
        }

        .tv-dish-name {
            font-size: 1rem;
            font-weight: 600;
            color: #ecf0f1;
            margin-bottom: 8px;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
            line-height: 1.2;
        }

        .tv-dish-prices {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 15px;
        }

        .tv-price-item {
            text-align: center;
            flex: 1;
        }

        .tv-price-label {
            font-size: 0.7rem;
            color: #95a5a6;
            text-transform: uppercase;
            font-weight: 600;
            margin-bottom: 2px;
        }

        .tv-price-value {
            font-size: 1.1rem;
            font-weight: 700;
            color: #e74c3c;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
        }

        .tv-dish-number {
            position: absolute;
            top: 8px;
            right: 8px;
            background: rgba(52, 152, 219, 0.8);
            color: white;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: 700;
        }

        .tv-empty-category {
            text-align: center;
            color: #7f8c8d;
            font-style: italic;
            padding: 30px 15px;
            opacity: 0.6;
        }

        .tv-empty-state {
            text-align: center;
            color: #7f8c8d;
            font-size: 1.5rem;
            padding: 60px 20px;
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }

        .tv-empty-state div:first-child {
            font-size: 4rem;
            margin-bottom: 20px;
        }

        .status-message {
            background: rgba(39, 174, 96, 0.1);
            border: 1px solid #27ae60;
            color: #27ae60;
            padding: 10px;
            border-radius: 8px;
            margin-bottom: 15px;
            text-align: center;
            font-weight: 600;
        }

        .status-message.error {
            background: rgba(231, 76, 60, 0.1);
            border-color: #e74c3c;
            color: #e74c3c;
        }

        .current-date {
            background: rgba(52, 152, 219, 0.1);
            border: 1px solid #3498db;
            color: #3498db;
            padding: 8px;
            border-radius: 6px;
            margin-bottom: 15px;
            text-align: center;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .filter-stats {
            background: rgba(52, 152, 219, 0.1);
            border: 1px solid #3498db;
            color: #3498db;
            padding: 8px 12px;
            border-radius: 6px;
            margin-left: auto;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .mysql-status {
            background: rgba(46, 204, 113, 0.1);
            border: 1px solid #2ecc71;
            color: #2ecc71;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 0.8rem;
            margin-bottom: 10px;
            text-align: center;
        }

        .empty-state {
            text-align: center;
            color: #7f8c8d;
            font-style: italic;
            padding: 40px 20px;
            border: 2px dashed #bdc3c7;
            border-radius: 10px;
            margin: 20px 0;
        }

        .remove-btn {
            background: #e74c3c;
            color: white;
            border: none;
            padding: 5px 10px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 0.8rem;
            margin-left: 10px;
            transition: background 0.3s ease;
        }

        .remove-btn:hover {
            background: #c0392b;
        }

        .loading {
            opacity: 0.6;
            pointer-events: none;
        }

        /* Responsive Design for TV Categories */
        @media (max-width: 1400px) {
            .tv-categories-container {
                gap: 10px;
            }
            
            .tv-category-column {
                padding: 12px;
            }
            
            .tv-dish-name {
                font-size: 0.9rem;
            }
            
            .tv-price-value {
                font-size: 1rem;
            }
        }

        @media (max-width: 1200px) {
            .tv-categories-container {
                flex-wrap: wrap;
                overflow-y: auto;
            }
            
            .tv-category-column {
                flex: 1 1 calc(50% - 10px);
                min-width: 280px;
                max-height: 400px;
            }
        }

        @media (max-width: 768px) {
            .header.tv-mode h1 {
                font-size: 2rem;
            }

            .tv-title {
                font-size: 1.5rem;
            }

            .tv-categories-container {
                flex-direction: column;
                gap: 8px;
            }
            
            .tv-category-column {
                flex: none;
                max-height: 200px;
            }

            .tv-dish-name {
                font-size: 0.9rem;
            }

            .tv-price-value {
                font-size: 0.9rem;
            }

            .main-content:not(.tv-mode) {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .menu-section {
                grid-template-columns: 1fr;
            }
            
            .header h1 {
                font-size: 2rem;
            }

            .category-filters {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
        }