/* 
 * Sports Academy Management System Custom CSS
 * Theme: Modern Emerald & Midnight Sports Styling (RTL)
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&display=swap');

:root {
    --bs-font-sans-serif: 'Cairo', system-ui, -apple-system, sans-serif;
    --academy-primary: #0f172a;
    --academy-secondary: #1e293b;
    --academy-accent: #10b981;
    --academy-accent-hover: #059669;
    --academy-gold: #f59e0b;
    --academy-light-bg: #f8fafc;
    --academy-card-bg: #ffffff;
    --academy-border: #e2e8f0;
}

body {
    font-family: 'Cairo', sans-serif !important;
    background-color: var(--academy-light-bg);
    color: #334155;
    direction: rtl;
    text-align: right;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Glassmorphism & Modern Navbar */
.navbar-academy {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-academy .navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: #ffffff !important;
}

.navbar-academy .nav-link {
    color: #cbd5e1 !important;
    font-weight: 600;
    padding: 0.6rem 1rem !important;
    transition: all 0.25s ease;
    border-radius: 8px;
}

.navbar-academy .nav-link:hover,
.navbar-academy .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(16, 185, 129, 0.15);
}

/* Custom Buttons */
.btn-academy-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-weight: 700;
    border: none;
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.btn-academy-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-academy-dark {
    background: #0f172a;
    color: #ffffff;
    font-weight: 700;
    border: none;
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-academy-dark:hover {
    background: #1e293b;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Modern Cards */
.academy-card {
    background: var(--academy-card-bg);
    border: 1px solid var(--academy-border);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    overflow: hidden;
}

.academy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
    color: #ffffff;
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Stat Cards */
.stat-card {
    border-radius: 16px;
    padding: 24px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.stat-card.bg-stat-primary {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.stat-card.bg-stat-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.stat-card.bg-stat-warning {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.stat-card.bg-stat-info {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
}

.stat-icon {
    font-size: 2.8rem;
    opacity: 0.25;
    position: absolute;
    left: 20px;
    bottom: 15px;
}

/* Upload Dropzone styling */
.receipt-upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 30px;
    text-align: center;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.25s ease;
}

.receipt-upload-box:hover {
    border-color: var(--academy-accent);
    background-color: #f0fdf4;
}

/* Badges soft background */
.bg-success-subtle { background-color: #d1fae5 !important; color: #047857 !important; }
.bg-warning-subtle { background-color: #fef3c7 !important; color: #b45309 !important; }
.bg-danger-subtle { background-color: #fee2e2 !important; color: #b91c1c !important; }
.bg-secondary-subtle { background-color: #f1f5f9 !important; color: #475569 !important; }
.bg-info-subtle { background-color: #e0f2fe !important; color: #0369a1 !important; }

/* Tables */
.table-custom {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.table-custom tbody tr {
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.table-custom tbody tr:hover {
    background-color: #f8fafc;
}

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

/* Footer */
footer {
    margin-top: auto;
    background: #0f172a;
    color: #94a3b8;
}
