/* ===================================
   APEX TRAIN - Sport Training Center
   Theme: Professional Light Grey
   =================================== */

:root {
    /* Primary Colors - Grey Theme */
    --primary: #4A5568;        /* Slate Grey */
    --primary-dark: #2D3748;   /* Dark Grey */
    --primary-light: #718096;  /* Light Grey */
    --accent: #5A67D8;         /* Accent Blue */
    --secondary: #6B7280;      /* Medium Grey */
    
    /* Background Colors - ALL LIGHT GREY */
    --bg-primary: #F3F4F6;     /* Light Grey Background */
    --bg-secondary: #E5E7EB;   /* Very Light Grey */
    --bg-dark: #374151;        /* Dark Grey for footer only */
    --bg-card: #FFFFFF;        /* White for cards */
    
    /* Text Colors */
    --text-primary: #1F2937;   /* Almost Black */
    --text-secondary: #4B5563; /* Dark Grey */
    --text-muted: #9CA3AF;     /* Light Grey */
    --text-light: #FFFFFF;     /* White Text */
    
    /* Border & Divider */
    --border: #D1D5DB;         /* Light Border */
    --border-dark: #9CA3AF;    /* Medium Border */
    
    /* Status Colors */
    --success: #10B981;        /* Green */
    --danger: #EF4444;         /* Red */
    --warning: #F59E0B;        /* Orange */
    --info: #3B82F6;           /* Blue */
    
    /* Royal Blue for Header */
    --royal-blue: #1E3A8A;
}

/* ===================================
   Global Styles - LIGHT GREY EVERYWHERE
   =================================== */

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

body {
    font-family: 'Barlow', sans-serif;
    background: var(--bg-primary) !important; /* LIGHT GREY */
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    background: var(--bg-primary) !important; /* LIGHT GREY */
}

/* Remove any black backgrounds */
.bg-dark {
    background: var(--bg-dark) !important; /* Only for footer */
}

/* Force light backgrounds everywhere else */
section, div, main, article, aside {
    background: transparent !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }

.text-accent {
    color: var(--accent) !important;
}

/* ===================================
   Main Content - LIGHT GREY
   =================================== */

.main-content {
    min-height: calc(100vh - 80px);
    padding-top: 80px;
    background: var(--bg-primary) !important; /* LIGHT GREY */
}

.container, .container-fluid {
    background: transparent !important;
}

.py-5, .py-4, .py-3 {
    background: transparent !important;
}

/* ===================================
   Cards - WHITE ON LIGHT GREY
   =================================== */

.card {
    background: var(--bg-card) !important; /* WHITE */
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-light);
    padding: 1.25rem 1.5rem;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 1.5rem;
    background: var(--bg-card) !important; /* WHITE */
}

.card-footer {
    background: var(--bg-secondary) !important; /* LIGHT GREY */
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
    border-radius: 0 0 12px 12px;
}

/* ===================================
   Statistics Cards
   =================================== */

.stat-card {
    background: var(--bg-card) !important; /* WHITE */
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--text-light);
}

.stat-icon.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.stat-icon.bg-success {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
}

.stat-icon.bg-danger {
    background: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
}

.stat-icon.bg-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #FCD34D 100%);
}

.stat-icon.bg-info {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    color: var(--text-light);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: var(--text-light);
}

.btn-success {
    background: var(--success);
    border: none;
    color: white;
}

.btn-success:hover {
    background: #059669;
    color: white;
}

.btn-danger {
    background: var(--danger);
    border: none;
    color: white;
}

.btn-danger:hover {
    background: #DC2626;
    color: white;
}

.btn-warning {
    background: var(--warning);
    border: none;
    color: white;
}

.btn-warning:hover {
    background: #D97706;
    color: white;
}

.btn-info {
    background: var(--info);
    border: none;
    color: white;
}

.btn-info:hover {
    background: #2563EB;
    color: white;
}

/* ===================================
   Forms - WHITE INPUTS
   =================================== */

.form-control, .form-select {
    background: #FFFFFF !important; /* WHITE */
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: #FFFFFF !important; /* WHITE */
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(90, 103, 216, 0.25);
    color: var(--text-primary);
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* ===================================
   Tables - WHITE BACKGROUND
   =================================== */

.table {
    background: var(--bg-card) !important; /* WHITE */
    border-radius: 12px;
    overflow: hidden;
}

.table thead th {
    background: var(--bg-secondary) !important; /* LIGHT GREY */
    color: var(--text-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-dark);
    padding: 1rem;
}

.table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
    background: var(--bg-card) !important; /* WHITE */
}

.table tbody tr:hover {
    background: var(--bg-secondary) !important; /* LIGHT GREY ON HOVER */
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

.table-responsive {
    background: var(--bg-card) !important; /* WHITE */
    border-radius: 12px;
}

/* ===================================
   Badges
   =================================== */

.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.bg-success { background: var(--success) !important; color: white !important; }
.bg-danger { background: var(--danger) !important; color: white !important; }
.bg-warning { background: var(--warning) !important; color: white !important; }
.bg-info { background: var(--info) !important; color: white !important; }
.bg-primary { background: var(--primary) !important; color: white !important; }
.bg-secondary { background: var(--secondary) !important; color: white !important; }

/* ===================================
   Alerts - LIGHT BACKGROUNDS
   =================================== */

.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #D1FAE5 !important;
    color: #065F46;
}

.alert-danger {
    background: #FEE2E2 !important;
    color: #991B1B;
}

.alert-warning {
    background: #FEF3C7 !important;
    color: #92400E;
}

.alert-info {
    background: #DBEAFE !important;
    color: #1E40AF;
}

/* ===================================
   Dropdowns - WHITE BACKGROUND
   =================================== */

.dropdown-menu {
    background: var(--bg-card) !important; /* WHITE */
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
}

.dropdown-item:hover {
    background: var(--bg-secondary) !important; /* LIGHT GREY */
    color: var(--primary);
}

/* ===================================
   Footer - DARK GREY (NOT BLACK)
   =================================== */

footer {
    background: var(--bg-dark) !important; /* DARK GREY, NOT BLACK */
    color: var(--text-light);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 4px solid var(--accent);
}

/* ===================================
   Page Specific - LIGHT GREY BACKGROUNDS
   =================================== */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
}

/* Remove any dark/black backgrounds from sections */
section {
    background: transparent !important;
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 768px) {
    .stat-value {
        font-size: 2rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .card-body {
        padding: 1rem;
    }
}

/* ===================================
   Utilities
   =================================== */

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }

.bg-light { background: var(--bg-secondary) !important; }

.border { border-color: var(--border) !important; }

/* ===================================
   Force Light Grey Background Everywhere
   =================================== */

body, html, .main-content, .container, .container-fluid, 
.py-5, .py-4, .row, section, main {
    background: var(--bg-primary) !important; /* LIGHT GREY */
}

/* NO BLACK BACKGROUNDS ANYWHERE */
.bg-dark:not(footer) {
    background: var(--bg-secondary) !important;
}
