/* Premium Dark Glassmorphism Design System for Restaurant POS */

:root {
    --bg-dark: #090a0f;
    --bg-darker: #050608;
    --panel-bg: rgba(22, 28, 36, 0.65);
    --panel-bg-solid: #161c24;
    --border-glow: rgba(255, 102, 0, 0.15);
    --border-light: rgba(255, 255, 255, 0.06);
    --primary-orange: #ff6600;
    --primary-red: #d32f2f;
    --text-white: #ffffff;
    --text-muted: #919eab;
    --text-orange: #ffab00;
    --success-green: #22c55e;
    --warning-yellow: #ffc107;
    --shadow-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --glass-blur: blur(16px);
}

/* Core Styles */
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 15% 15%, rgba(255, 102, 0, 0.07) 0%, transparent 40%),
                      radial-gradient(circle at 85% 85%, rgba(211, 47, 47, 0.07) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-white);
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 102, 0, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-orange);
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
    border-color: rgba(255, 102, 0, 0.2);
    box-shadow: 0 12px 40px 0 rgba(255, 102, 0, 0.08);
}

/* Interactive Glowing Form Controls */
.form-glass {
    background: rgba(11, 12, 16, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-white) !important;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.25s ease;
}

.form-glass:focus {
    background: rgba(11, 12, 16, 0.85);
    border-color: var(--primary-orange);
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.2);
    outline: none;
}

/* Buttons */
.btn-glow-orange {
    background: linear-gradient(135deg, var(--primary-orange), #ff4500);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.25);
    transition: all 0.3s ease;
}

.btn-glow-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.45);
    opacity: 0.95;
    color: white;
}

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

.btn-glow-red {
    background: linear-gradient(135deg, var(--primary-red), #b71c1c);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.25);
    transition: all 0.3s ease;
}

.btn-glow-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.45);
    opacity: 0.95;
    color: white;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

/* Sidebar Styling */
.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: var(--bg-darker);
    border-right: 1px solid var(--border-light);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    margin-bottom: 2rem;
    color: var(--text-white);
    text-decoration: none;
}

.sidebar-logo i {
    font-size: 1.75rem;
    color: var(--primary-orange);
    text-shadow: 0 0 10px rgba(255, 102, 0, 0.4);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(255, 102, 0, 0.1);
    color: var(--primary-orange);
}

.sidebar-link i {
    font-size: 1.25rem;
    width: 20px;
    text-align: center;
}

/* Admin Dashboard Layout Content Wrapper */
.main-wrapper {
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-wrapper {
        margin-left: 0;
        padding: 1rem;
    }
}

/* POS Interface Styling */
.pos-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 1.5rem;
    height: calc(100vh - 120px);
}

.pos-products {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.pos-cart {
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (max-width: 1200px) {
    .pos-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    .pos-cart {
        height: 600px;
    }
}

/* Touch Friendly Cards */
.product-card {
    cursor: pointer;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card img {
    height: 140px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(211, 47, 47, 0.85);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.product-calories {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Table Grid Interface */
.table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.25rem;
}

.restaurant-table {
    aspect-ratio: 1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.restaurant-table:hover {
    transform: translateY(-5px) scale(1.03);
}

.table-empty {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-green);
    border-color: rgba(34, 197, 94, 0.3);
}
.table-empty:hover {
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.2);
}

.table-occupied {
    background: rgba(211, 47, 47, 0.1);
    color: #ff5252;
    border-color: rgba(211, 47, 47, 0.3);
}
.table-occupied:hover {
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.2);
}

.table-reserved {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-yellow);
    border-color: rgba(255, 193, 7, 0.3);
}
.table-reserved:hover {
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.2);
}

.table-bill_pending {
    background: rgba(0, 188, 212, 0.1);
    color: #00bcd4;
    border-color: rgba(0, 188, 212, 0.3);
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0.75; }
}

/* Category Slider */
.category-item {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.category-item:hover, .category-item.active {
    background: var(--primary-orange);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

/* Toast Container Overlay */
.toast-container-custom {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* Custom Additions for Extended Modules */

/* Delayed Cooking Cards Glow */
.bg-danger-glow {
    background: rgba(211, 47, 47, 0.15) !important;
    box-shadow: 0 0 15px rgba(211, 47, 47, 0.4) !important;
}

/* Pulsing Delay Animation */
.animate-pulse-slow {
    animation: pulse-slow 2s infinite ease-in-out;
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(211, 47, 47, 0.4);
    }
    50% {
        opacity: 0.85;
        box-shadow: 0 0 25px rgba(211, 47, 47, 0.7);
    }
}

/* Toast Glow alerts */
.border-orange-glow {
    border-color: rgba(255, 102, 0, 0.5) !important;
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.3) !important;
}
