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

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #8B4513 0%, #D2B48C 100%);
            min-height: 100vh;
            color: #333;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            min-height: 100vh;
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
        }

        .header {
            background: linear-gradient(135deg, #6B4423 0%, #8B4513 100%);
            color: white;
            padding: 20px;
            text-align: center;
            position: relative;
        }

        .header h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
        }

        .firebase-status {
            position: absolute;
            top: 15px;
            right: 20px;
            padding: 5px 10px;
            border-radius: 15px;
            font-size: 12px;
            font-weight: bold;
        }

        .firebase-status.online {
            background: #28a745;
            color: white;
        }

        .firebase-status.offline {
            background: #dc3545;
            color: white;
        }

        .nav {
            display: flex;
            background: #4A2C17;
            border-bottom: 3px solid #8B4513;
        }

        .nav-item {
            flex: 1;
            padding: 15px;
            text-align: center;
            background: #4A2C17;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            font-size: 16px;
            font-weight: bold;
        }

        .nav-item:hover {
            background: #6B4423;
        }

        .nav-item.active {
            background: #8B4513;
            box-shadow: inset 0 3px 0 #D2B48C;
        }

        .content {
            padding: 20px;
            min-height: 600px;
        }

        .tab-content {
            display: none;
        }

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

        .card {
            background: white;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            border: 1px solid #e0e0e0;
        }

        .order-summary {
            background: linear-gradient(135deg, #F5F5DC 0%, #FFFACD 100%);
            border: 2px solid #8B4513;
        }

        .btn {
            background: #8B4513;
            color: white;
            border: none;
            padding: 10px 18px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s ease;
            margin: 5px;
        }

        .btn:hover {
            background: #6B4423;
            transform: translateY(-2px);
        }

        .btn-success {
            background: #28a745;
        }

        .btn-success:hover {
            background: #218838;
        }

        .btn-danger {
            background: #dc3545;
        }

        .btn-danger:hover {
            background: #c82333;
        }

        .btn-toggle {
            background: #6c757d;
        }

        .btn-toggle.active {
            background: #28a745;
        }

        .table-select {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
            gap: 10px;
            margin-bottom: 20px;
        }

        .table-btn {
            padding: 15px;
            background: #F5F5DC;
            border: 2px solid #8B4513;
            border-radius: 5px;
            cursor: pointer;
            text-align: center;
            transition: all 0.3s ease;
        }

        .table-btn:hover {
            background: #D2B48C;
        }

        .table-btn.selected {
            background: #8B4513;
            color: white;
        }

        .menu-section {
            margin-bottom: 30px;
        }

        .menu-section h3 {
            color: #8B4513;
            margin-bottom: 15px;
            font-size: 1.5em;
            border-bottom: 2px solid #8B4513;
            padding-bottom: 5px;
        }

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

        .menu-item {
            padding: 10px;
            background: #F5F5DC;
            border: 1px solid #D2B48C;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            
        }

        .menu-item:hover {
            background: #D2B48C;
            transform: translateY(-2px);
        }

        .menu-item.selected {
            background: #8B4513;
            color: white;
        }

        .item-title {font-size: 20px;}

        .order-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
            margin: 5px 0;
            background: #f8f9fa;
            border-radius: 5px;
            border-left: 4px solid #8B4513;
        }

        .order-item.completed {
            text-decoration: line-through;
            opacity: 0.6;
            background: #d4edda;
            border-left-color: #28a745;
        }

        .order-card {
            background: white;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            border-left: 5px solid #8B4513;
            position: relative;
        }

        .order-card.completed {
            border-left-color: #28a745;
            background: #f8f9fa;
        }

        .order-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #e0e0e0;
        }

        .order-id {
            font-weight: bold;
            color: #8B4513;
            font-size: 1.2em;
        }

        .order-time {
            color: #666;
            font-size: 0.9em;
        }

        .input-group {
            margin-bottom: 15px;
        }

        .input-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
            color: #8B4513;
        }

        .input-group input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 16px;
        }

        .menu-admin-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
            margin: 5px 0;
            background: #f8f9fa;
            border-radius: 5px;
            border: 1px solid #e0e0e0;
        }

        .menu-admin-item.inactive {
            opacity: 0.5;
            background: #f1f1f1;
        }

        .completed-orders {
            margin-top: 40px;
            padding-top: 20px;
            border-top: 3px solid #28a745;
        }

        .completed-orders h3 {
            color: #28a745;
            margin-bottom: 20px;
        }

        .check-icon {
            font-size: 18px;
            margin-left: 10px;
        }

        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: #28a745;
            color: white;
            padding: 15px 20px;
            border-radius: 5px;
            z-index: 1000;
            display: none;
        }

@media (max-width: 768px) {
.menu-item {
display: inline-flex !important;
align-items: center !important;
justify-content: space-between !important;
}
.item-title {text-align: left !important}
}