/* ========================================
   CSS VARIABLES - From Template
======================================== */
:root {
    /* Background Colors */
    --bg-primary: #121417;
    --bg-secondary: #1A1F24;
    --bg-card: #1E2329;
    --bg-elevated: #252B33;

    /* Accent Colors */
    --court-blue: #1F3B4D;
    --court-blue-hover: #2A4F66;
    --turf-green: #2E6F5E;
    --turf-green-hover: #3A8C75;
    --line-white: #E8F1F2;
    --ball-yellow: #D9FF00;
    --ball-yellow-hover: #E5FF33;

    /* Text Colors */
    --text-primary: #E8F1F2;
    --text-secondary: #8A9199;
    --text-muted: #5A6370;

    /* Status Colors */
    --status-free: #4A5568;
    --status-ordering: #1F3B4D;
    --status-waiting: #D9FF00;
    --status-closed: #2E6F5E;
    --status-alert: #DC2626;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(217, 255, 0, 0.15);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    /* Spacing */
    --sidebar-width: 260px;
    --sidebar-collapsed: 70px;
    --header-height: 70px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

/* ========================================
   RESET & BASE
======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========================================
   UTILITY CLASSES
======================================== */
.text-yellow { color: var(--ball-yellow); }
.text-green { color: #5FC9A8; }
.text-blue { color: #5BA3C9; }
.text-red { color: #F87171; }
.text-muted { color: var(--text-secondary); }
.font-mono { font-family: 'SF Mono', 'Fira Code', monospace; }

/* ========================================
   BADGES
======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-lg);
    font-size: 12px;
    font-weight: 600;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.badge.pending { background: rgba(217, 255, 0, 0.15); color: var(--ball-yellow); }
.badge.pending .badge-dot { background: var(--ball-yellow); }

.badge.preparing { background: rgba(31, 59, 77, 0.5); color: #5BA3C9; }
.badge.preparing .badge-dot { background: #5BA3C9; }

.badge.delivered { background: rgba(46, 111, 94, 0.4); color: #5FC9A8; }
.badge.delivered .badge-dot { background: #5FC9A8; }

.badge.cancelled { background: rgba(220, 38, 38, 0.2); color: #F87171; }
.badge.cancelled .badge-dot { background: #F87171; }

.badge.active { background: rgba(46, 111, 94, 0.4); color: #5FC9A8; }
.badge.active .badge-dot { background: #5FC9A8; }

.badge.inactive { background: rgba(74, 85, 104, 0.5); color: var(--text-secondary); }
.badge.inactive .badge-dot { background: var(--text-secondary); }

.badge.low-stock { background: rgba(220, 38, 38, 0.2); color: #F87171; }
.badge.low-stock .badge-dot { background: #F87171; }

.badge.ok { background: rgba(46, 111, 94, 0.4); color: #5FC9A8; }
.badge.ok .badge-dot { background: #5FC9A8; }

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--ball-yellow);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--ball-yellow-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid rgba(232, 241, 242, 0.1);
}

.btn-secondary:hover {
    background: var(--bg-card);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

/* ========================================
   FORMS
======================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(232, 241, 242, 0.1);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--ball-yellow);
    background: var(--bg-card);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* ========================================
   CARDS
======================================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 22px;
    border: 1px solid rgba(232, 241, 242, 0.06);
    transition: var(--transition-fast);
}

.card:hover {
    border-color: rgba(232, 241, 242, 0.12);
}

/* ========================================
   FLASH MESSAGES
======================================== */
.flash-messages {
    margin-bottom: 1rem;
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.flash.error {
    background: rgba(220, 38, 38, 0.2);
    color: #F87171;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.flash.success {
    background: rgba(46, 111, 94, 0.3);
    color: #5FC9A8;
    border: 1px solid rgba(46, 111, 94, 0.4);
}

.flash.info {
    background: rgba(31, 59, 77, 0.5);
    color: #5BA3C9;
    border: 1px solid rgba(31, 59, 77, 0.6);
}
