/* نظام إدارة الجيم - Custom Styles */

* {
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container-fluid {
    flex: 1;
}

/* Login Page */
.login-container {
    max-width: 450px;
    margin: 100px auto;
}

.login-card {
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px 15px 0 0;
    text-align: center;
}

.login-header i {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Dashboard Cards */
.stat-card {
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    color: white;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.stat-card i {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0;
}

.stat-card p {
    margin: 0;
    opacity: 0.9;
}

.card-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-success {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.card-warning {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.card-danger {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.card-info {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

/* Tables */
.table-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table thead {
    background-color: #667eea;
    color: white;
}

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

/* Badges */
.badge {
    padding: 5px 10px;
    font-size: 0.85rem;
}

/* Buttons */
.btn {
    border-radius: 5px;
    padding: 8px 20px;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Forms */
.form-control, .form-select {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Flatpickr Date Picker Customization */
.flatpickr-calendar {
    font-family: 'Cairo', sans-serif !important;
    direction: rtl;
}

.flatpickr-months {
    direction: rtl;
}

.flatpickr-current-month {
    direction: rtl;
}

.flatpickr-weekdays {
    direction: rtl;
}

.flatpickr-days {
    direction: rtl;
}

.flatpickr-day {
    font-family: 'Cairo', sans-serif !important;
}

/* تنسيق حقل الإدخال البديل */
.flatpickr-input[readonly] {
    background-color: white !important;
    cursor: pointer;
}

input.flatpickr-input {
    direction: rtl;
    text-align: right;
}

/* Footer */
.footer {
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

/* Navbar */
.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

/* Charts */
.chart-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 15px;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-overlay.active {
    display: flex;
}

/* تنسيق القائمة العلوية بالأصفر الغامق */
.navbar {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
    color: #000000 !important;
}

.navbar-brand i {
    font-size: 1.5rem;
    margin-left: 8px;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 0 5px;
    padding: 8px 15px !important;
    color: #000000 !important;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: #000000 !important;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    color: #000000 !important;
}

.nav-link i {
    margin-left: 5px;
}

/* تنسيق القائمة المنسدلة للمستخدم */
.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s ease;
    color: #000000;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #ffbf00 0%, #ffd700 100%);
    color: #000000;
}

.dropdown-item i {
    margin-left: 8px;
    width: 20px;
}

/* لون النص في القائمة المنسدلة */
.dropdown-toggle {
    color: #000000 !important;
}

.dropdown-toggle:hover {
    color: #000000 !important;
}

/* شارة المدير */
.badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    margin-right: 5px;
}

