/* Iron Core Fitness & Gym Management ERP - Modern Dark Fitness Design System */

:root {
    --gym-bg: #090d16;
    --gym-surface: #111827;
    --gym-card: #1f2937;
    --gym-card-hover: #263346;
    --gym-orange: #ea580c;
    --gym-orange-glow: #f97316;
    --gym-crimson: #e11d48;
    --gym-emerald: #10b981;
    --gym-sky: #0284c7;
    --gym-purple: #8b5cf6;
    --gym-amber: #f59e0b;
    --border-dark: #374151;
    --border-subtle: #1f2937;
    --text-white: #f9fafb;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(234, 88, 12, 0.35);
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--gym-bg);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ======================================================== */
/* 1. GYM TOP NAVBAR                                        */
/* ======================================================== */
.gym-navbar {
    background: #0f172a;
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--gym-orange);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    padding-right: 18px;
    border-right: 1px solid var(--border-dark);
}

.brand-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ea580c 0%, #b91c1c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.4);
}

.brand-text h1 {
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
}
.brand-text span {
    font-size: 10px;
    color: var(--gym-orange-glow);
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

/* Nav Toolbar & Segmented Buttons */
.nav-links-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    background: #1e293b;
    border: 1px solid var(--border-dark);
    color: #cbd5e1;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-btn:hover {
    background: #334155;
    color: #ffffff;
    border-color: #475569;
    transform: translateY(-1px);
}

.nav-btn.active {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    border-color: #f97316;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
    font-weight: 900;
}

.nav-right-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* ======================================================== */
/* 2. MAIN CONTAINER & CARDS                                */
/* ======================================================== */
.main-wrapper {
    flex: 1;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 24px;
}

.gym-card {
    background: var(--gym-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.card-header-title {
    font-size: 15px;
    font-weight: 900;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ======================================================== */
/* 3. DATA TABLES & FORMS                                   */
/* ======================================================== */
.data-table-wrap {
    overflow-x: auto;
}

.gym-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}
.gym-table th {
    background: #111827;
    color: #9ca3af;
    padding: 10px 12px;
    border-bottom: 2px solid var(--border-dark);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 11px;
}
.gym-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-dark);
    color: #e5e7eb;
}
.gym-table tr:hover {
    background: #283548;
}

.gym-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    transition: all 0.2s;
}
.gym-input:focus {
    border-color: var(--gym-orange);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.25);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.badge-green { background: #064e3b; color: #6ee7b7; border: 1px solid #059669; }
.badge-amber { background: #78350f; color: #fde68a; border: 1px solid #d97706; }
.badge-red { background: #881337; color: #fecdd3; border: 1px solid #e11d48; }
.badge-blue { background: #0c4a6e; color: #7dd3fc; border: 1px solid #0284c7; }
.badge-purple { background: #4c1d95; color: #d8b4fe; border: 1px solid #8b5cf6; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-primary { background: linear-gradient(135deg, #ea580c, #c2410c); color: #ffffff; border-color: #ea580c; }
.btn-primary:hover { background: #ea580c; box-shadow: var(--shadow-glow); }
.btn-emerald { background: #059669; color: #ffffff; }
.btn-emerald:hover { background: #047857; }
.btn-danger { background: #e11d48; color: #ffffff; }
.btn-danger:hover { background: #be123c; }
.btn-navy { background: #1e293b; color: #ffffff; border-color: #334155; }
.btn-navy:hover { background: #334155; }
.btn-outline { background: transparent; border-color: var(--border-dark); color: #cbd5e1; }
.btn-outline:hover { background: #1e293b; color: #ffffff; border-color: #64748b; }
.btn-sm { padding: 5px 10px; font-size: 11.5px; }

/* Pulsing Online Dot */
.live-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulseGlow 1.8s infinite;
}
@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ======================================================== */
/* 4. LOCKER TILES & BARCODE SCANNER BOX                    */
/* ======================================================== */
.lockers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 12px;
}

.locker-box {
    border-radius: var(--radius);
    padding: 12px;
    text-align: center;
    border: 1.5px solid var(--border-dark);
    background: #111827;
    transition: all 0.2s;
}
.locker-box.available {
    border-color: #059669;
    background: #064e3b22;
}
.locker-box.occupied {
    border-color: #e11d48;
    background: #88133722;
}
