@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
}

#tck-catering-app {
    font-size: 14px;
}

/* --- Sticky Header & Nav --- */
.sticky-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1025;
    background-color: #f8f9fa;
    padding: 0.5rem 0;
}
body.admin-bar .sticky-header-wrapper { top: 32px; }

.portal-header, .category-nav-container { position: static; }

/* --- Category Navigation Bar --- */
#category-list { overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
#category-list::-webkit-scrollbar { display: none; }
#category-list .nav-link {
    white-space: nowrap;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 999px;
    transition: background-color 0.2s;
    color: #0d6efd;
}
#category-list .nav-link.active,
#category-list .nav-link:hover {
    background-color: #e9ecef;
    color: #0d6efd;
}
#category-list .nav-link.active { background-color: #0d6efd; color: #fff; }

/* --- Menu Sections --- */
#menu-container { padding: 0.5rem; }
.menu-category-section { padding-top: 120px; margin-top: -120px; margin-bottom: 1rem; }
.menu-category-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

/* --- Menu Item Cards --- */
.menu-item-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
@media(min-width:768px){ .menu-item-card { flex-direction: row; } }
.menu-item-card .img-container {
    flex-shrink: 0;
    height: 120px;
}
@media(min-width:768px){ .menu-item-card .img-container { flex-basis: 140px; height:auto; } }
.menu-item-card .img-container img { width:100%; height:100%; object-fit:cover; }
.menu-item-card .card-content {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.menu-item-card h4 { font-size:1rem; margin:0; font-weight:500; }
.menu-item-card .item-description { display:block; font-size:0.8rem; color:#6c757d; margin:0.25rem 0; }
.menu-item-card .item-footer {
    display:flex; justify-content:space-between; align-items:center; margin-top:auto;
}
.menu-item-card .item-price { font-size:1.1rem; font-weight:600; }

/* --- Quantity & Buttons --- */
.quantity-controls { display:flex; align-items:center; margin-top:0.5rem; }
.quantity-controls input { width:40px; font-size:0.85rem; padding:0.2rem; }

/* Stylish Add-to-Cart Buttons */
.open-options-btn,
.confirm-add-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: #fff;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease, transform 0.2s ease;
}

.open-options-btn:hover,
.confirm-add-btn:hover {
    background: linear-gradient(135deg, #feb47b, #ff7e5f);
    transform: translateY(-2px);
}

/* --- Compact View --- */ */
#tck-catering-app.compact-view .menu-item-card .img-container { display:none; }
#tck-catering-app.compact-view .menu-item-card {
    flex-direction:row; align-items:center; padding:0.25rem 0; margin-bottom:0.5rem;
}
#tck-catering-app.compact-view .card-content { flex-direction:row; justify-content:space-between; align-items:center; padding:0.25rem 0.5rem; }
#tck-catering-app.compact-view .item-description { display:none; }
#tck-catering-app.compact-view .item-min-qty { display:none; }
#tck-catering-app.compact-view .menu-category-section h2 { display:block; }
#toggle-view-btn { border-radius:0.25rem; }

/* --- Past Orders --- */
#past-orders-container .list-group-item { margin-bottom:0.75rem; border-radius:0.5rem; }
