:root {
    /* Color Palette - Dark Mode with Mint & Cyan */
    --bg-deep: #05070a;
    --bg-card: #12181f;
    --bg-surface: #1c252e;

    --text-primary: #ffffff;
    --text-secondary: #919eab;

    --accent-mint: #00ffcc;
    --accent-cyan: #00d4ff;
    --accent-red: #ff4842;
    --accent-warning: #ffab00;
    --accent-gold: #ffb800;

    --shadow-tactile: 0 12px 24px -4px rgba(0, 0, 0, 0.5);
    --radius-lg: 24px;
    --radius-md: 12px;

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --glass-bg: rgba(22, 28, 36, 0.8);
    --glass-border: rgba(255, 255, 255, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    transition: filter 0.5s ease;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-tactile);
    backdrop-filter: blur(20px);
}

.tactile-btn {
    background: var(--bg-surface);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    color: white;
    padding: 10px 20px;
    height: 48px;
    min-width: 120px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-tactile);
}

.tactile-btn:active,
.tactile-btn.active {
    transform: scale(0.98);
    background: rgba(0, 255, 204, 0.1);
    border-color: var(--accent-mint) !important;
    color: var(--accent-mint);
}

.tactile-btn.primary {
    background: linear-gradient(135deg, var(--accent-mint), var(--accent-cyan));
    color: var(--bg-deep);
    border: none;
}

.tactile-btn.danger {
    background: var(--accent-red);
    border: none;
}

/* Auth Screens */
#auth-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1a232e 0%, #05070a 100%);
}

.role-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 600px;
    padding: 40px;
}

.role-card {
    background: var(--bg-card);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.role-card:hover {
    border-color: var(--accent-mint);
    transform: translateY(-10px);
    background: rgba(0, 255, 204, 0.05);
}

.role-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* PIN Modal Pop-out */
#pin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.pin-container {
    width: 380px;
    padding: 40px;
    text-align: center;
    animation: popOut 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popOut {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.pin-display {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.pin-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--accent-mint);
    transition: all 0.2s;
}

.pin-dot.filled {
    background: var(--accent-mint);
    box-shadow: 0 0 15px var(--accent-mint);
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.keypad-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.1s;
}

.keypad-btn:active {
    background: var(--accent-mint);
    color: var(--bg-deep);
}

.role-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-left: 10px;
    text-transform: uppercase;
}

.role-cashier {
    background: rgba(0, 255, 204, 0.1);
    color: var(--accent-mint);
    border: 1px solid var(--accent-mint);
}

.role-kitchen {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
}

.role-admin {
    background: rgba(255, 184, 0, 0.1);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}

.role-waiter {
    background: rgba(255, 72, 66, 0.1);
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slideUp 0.4s ease-out;
}
/* --- Admin Redesign Styles --- */

.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.product-card-admin {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-card-admin:hover {
    transform: translateY(-5px);
    border-color: var(--accent-mint);
    box-shadow: 0 10px 30px -10px rgba(0, 255, 204, 0.2);
}

.admin-action-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.product-card-admin:hover .admin-action-overlay {
    opacity: 1;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--stat-color, var(--accent-mint));
}

.stat-icon-bg {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 8rem;
    opacity: 0.05;
    transform: rotate(-15deg);
    pointer-events: none;
}

