/* ==========================================================================
   SPORTS CITY CLUB ERP — Complete CSS Framework
   نادي المدينة الرياضية — إطار التنسيق
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #1a56db;
    --primary-dark: #1e40af;
    --primary-light: #dbeafe;
    --secondary: #6b7280;
    --secondary-dark: #4b5563;
    --success: #059669;
    --success-light: #ecfdf5;
    --danger: #dc2626;
    --danger-light: #fef2f2;
    --warning: #d97706;
    --warning-light: #fffbeb;
    --info: #2563eb;
    --info-light: #eff6ff;
    --bg: #f3f4f6;
    --bg-white: #ffffff;
    --bg-dark: #1f2937;
    --bg-darker: #111827;
    --text: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --text-white: #ffffff;
    --border: #e5e7eb;
    --border-dark: #d1d5db;
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,.1);
    --sidebar-width: 270px;
    --sidebar-collapsed: 0px;
    --header-height: 60px;
    --font-family: 'Segoe UI', Tahoma, 'Noto Sans Arabic', Arial, sans-serif;
    --transition: all 0.3s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-family); color: var(--text); background: var(--bg); line-height: 1.6; direction: rtl; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
h1,h2,h3,h4,h5,h6 { font-weight: 600; line-height: 1.3; color: var(--text); }
h1 { font-size: 1.75rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; } h5 { font-size: 1rem; } h6 { font-size: .875rem; }

/* ---------- Layout ---------- */
.app-wrapper { display: flex; min-height: 100vh; }
.main-content { flex: 1; margin-right: var(--sidebar-width); display: flex; flex-direction: column; min-height: 100vh; transition: var(--transition); }
.content-area { flex: 1; padding: 24px; }
.sidebar-collapsed .main-content { margin-right: 0; }

/* ---------- Guest Layout ---------- */
.guest-wrapper { min-height: 100vh; display: flex; justify-content: center; align-items: center; background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%); padding: 20px; }
.guest-container { width: 100%; max-width: 440px; }
.guest-card { background: var(--bg-white); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.guest-header { text-align: center; padding: 40px 30px 20px; background: var(--bg); border-bottom: 1px solid var(--border); }
.guest-logo { font-size: 3em; margin-bottom: 10px; }
.guest-header h1 { font-size: 1.5em; color: var(--text); margin-bottom: 4px; }
.guest-subtitle { color: var(--text-light); font-size: .9em; }
.guest-body { padding: 30px; }
.login-form .form-group:last-child { margin-top: 24px; }

/* ---------- Sidebar ---------- */
.sidebar {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-dark);
    color: var(--text-white);
    z-index: 1000;
    display: flex; flex-direction: column;
    transition: var(--transition);
    overflow: hidden;
}
.sidebar-header {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    min-height: var(--header-height);
}
.sidebar-logo { font-size: 1.8em; flex-shrink: 0; }
.sidebar-title { flex: 1; overflow: hidden; }
.sidebar-name { display: block; font-size: .95em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-subtitle { display: block; font-size: .7em; color: var(--text-lighter); white-space: nowrap; }
.sidebar-close { display: none; background: none; border: none; color: var(--text-white); font-size: 1.2em; cursor: pointer; padding: 4px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 0; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 4px; }
.nav-menu { padding: 0; }
.nav-item { margin: 2px 8px; }
.nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    color: rgba(255,255,255,.8);
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: none; background: none; width: 100%;
    text-align: right; font-size: .9em;
}
.nav-link:hover, .nav-item.active > .nav-link { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.nav-icon { font-size: 1.1em; width: 24px; text-align: center; flex-shrink: 0; }
.nav-text { flex: 1; }
.submenu-arrow { font-size: .7em; transition: transform .3s; }
.nav-item.active > .nav-link .submenu-arrow,
.nav-item.open > .nav-link .submenu-arrow { transform: rotate(-90deg); }
.submenu {
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
    padding-right: 24px;
}
.nav-item.open > .submenu,
.nav-item.active > .submenu { max-height: 500px; }
.submenu li a {
    display: block; padding: 8px 16px; color: rgba(255,255,255,.6);
    font-size: .85em; border-radius: var(--radius-sm); transition: var(--transition);
}
.submenu li a:hover, .submenu li a.active { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.5); z-index: 999;
}

/* ---------- Header ---------- */
.top-header {
    display: flex; justify-content: space-between; align-items: center;
    height: var(--header-height);
    padding: 0 24px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: sticky; top: 0; z-index: 100;
}
.header-right, .header-left { display: flex; align-items: center; gap: 16px; }
.sidebar-toggle {
    display: none; background: none; border: none; cursor: pointer;
    padding: 6px; flex-direction: column; gap: 4px;
}
.sidebar-toggle span { display: block; width: 22px; height: 2px; background: var(--text); transition: var(--transition); }
.page-title { font-size: 1.1em; font-weight: 600; color: var(--text); }
.user-info { text-align: left; }
.user-name { display: block; font-size: .85em; font-weight: 600; }
.user-role { display: block; font-size: .75em; color: var(--text-light); }

/* Notifications */
.notification-wrapper { position: relative; }
.notification-btn {
    background: none; border: none; font-size: 1.3em; cursor: pointer;
    position: relative; padding: 6px;
}
.notification-badge {
    position: absolute; top: 0; left: 0;
    background: var(--danger); color: #fff;
    font-size: .65em; font-weight: 700;
    padding: 1px 5px; border-radius: 10px;
    min-width: 18px; text-align: center;
}
.notification-dropdown {
    display: none; position: absolute; left: 0; top: 100%;
    width: 350px; background: var(--bg-white);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    border: 1px solid var(--border); z-index: 200;
    max-height: 400px; overflow: hidden;
}
.notification-dropdown.show { display: block; }
.notification-dropdown-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.notification-dropdown-header h4 { font-size: .95em; }
.mark-all-read { font-size: .8em; color: var(--primary); }
.notification-list { max-height: 300px; overflow-y: auto; }
.notification-empty { padding: 30px; text-align: center; color: var(--text-light); }
.notification-dropdown-footer {
    padding: 10px 16px; text-align: center;
    border-top: 1px solid var(--border);
}
.notification-dropdown-footer a { font-size: .85em; }

/* ---------- Cards ---------- */
.card { background: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; }
.card-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.card-header h3 { font-size: 1em; margin: 0; }
.card-body { padding: 20px; }
.card-footer { padding: 12px 20px; border-top: 1px solid var(--border); background: var(--bg); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 20px; border: 1px solid transparent; border-radius: var(--radius);
    font-size: .9em; font-weight: 600; cursor: pointer;
    transition: var(--transition); white-space: nowrap; text-decoration: none;
}
.btn:hover { text-decoration: none; opacity: .9; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-dark); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #047857; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #b45309; color: #fff; }
.btn-info { background: var(--info); color: #fff; }
.btn-info:hover { background: #1d4ed8; color: #fff; }
.btn-outline-primary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-outline-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-outline-danger:hover { background: var(--danger); color: #fff; }
.btn-outline-secondary { background: transparent; color: var(--secondary); border-color: var(--border-dark); }
.btn-outline-secondary:hover { background: var(--secondary); color: #fff; }
.btn-sm { padding: 4px 12px; font-size: .8em; }
.btn-lg { padding: 12px 28px; font-size: 1em; }
.btn-block { display: flex; width: 100%; }
.inline-form { display: inline; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9em; color: var(--text); }
.form-control {
    width: 100%; padding: 10px 14px;
    border: 1px solid var(--border-dark); border-radius: var(--radius);
    font-size: .9em; color: var(--text); background: var(--bg-white);
    transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,.15); }
.form-control:disabled, .form-control[readonly] { background: var(--bg); cursor: not-allowed; color: var(--text-light); }
.form-control.error { border-color: var(--danger); }
.form-error { font-size: .8em; color: var(--danger); margin-top: 4px; }
.form-select { appearance: auto; }
textarea.form-control { min-height: 80px; resize: vertical; }
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check input[type="checkbox"],
.form-check input[type="radio"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-col { flex: 1; min-width: 200px; }
.form-hint { font-size: .8em; color: var(--text-light); margin-top: 4px; }
.required::after { content: ' *'; color: var(--danger); }

/* ---------- Tables ---------- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--bg); font-weight: 600; font-size: .85em; color: var(--text-light); white-space: nowrap; }
.data-table tbody tr:hover { background: rgba(26,86,219,.03); }
.data-table-striped tbody tr:nth-child(even) { background: var(--bg); }
.data-table-compact th, .data-table-compact td { padding: 8px 12px; font-size: .85em; }
.data-table .actions { white-space: nowrap; display: flex; gap: 6px; }
.table-responsive { overflow-x: auto; }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex; align-items: center; padding: 3px 10px;
    border-radius: 20px; font-size: .78em; font-weight: 600;
}
.badge-primary { background: var(--primary-light); color: var(--primary-dark); }
.badge-secondary { background: #f3f4f6; color: var(--secondary); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-info { background: var(--info-light); color: var(--info); }

/* ---------- Alerts ---------- */
.alert {
    padding: 14px 20px; border-radius: var(--radius); margin-bottom: 16px;
    display: flex; align-items: flex-start; gap: 12px;
    border: 1px solid transparent; animation: slideDown .3s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.alert-success { background: var(--success-light); color: #065f46; border-color: #a7f3d0; }
.alert-danger { background: var(--danger-light); color: #991b1b; border-color: #fecaca; }
.alert-warning { background: var(--warning-light); color: #92400e; border-color: #fde68a; }
.alert-info { background: var(--info-light); color: #1e40af; border-color: #bfdbfe; }
.alert-message { flex: 1; }
.alert-close { background: none; border: none; cursor: pointer; font-size: 1.1em; padding: 0; opacity: .7; }
.alert-close:hover { opacity: 1; }
.alert .error-list { margin-top: 8px; padding-right: 20px; list-style: disc; }
.alert .error-list li { margin-bottom: 4px; }
.alert-dismissible { position: relative; }

/* ---------- Grid ---------- */
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.col { flex: 1; }
.col-1 { flex: 0 0 calc(8.33% - 20px); } .col-2 { flex: 0 0 calc(16.66% - 20px); }
.col-3 { flex: 0 0 calc(25% - 20px); } .col-4 { flex: 0 0 calc(33.33% - 15px); }
.col-5 { flex: 0 0 calc(41.66% - 20px); } .col-6 { flex: 0 0 calc(50% - 10px); }
.col-7 { flex: 0 0 calc(58.33% - 20px); } .col-8 { flex: 0 0 calc(66.66% - 15px); }
.col-9 { flex: 0 0 calc(75% - 20px); } .col-10 { flex: 0 0 calc(83.33% - 20px); }
.col-11 { flex: 0 0 calc(91.66% - 20px); } .col-12 { flex: 0 0 100%; }

/* ---------- Modal ---------- */
.modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.5); z-index: 2000;
    justify-content: center; align-items: center;
}
.modal.show { display: flex; }
.modal-content {
    background: var(--bg-white); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg); width: 90%; max-width: 500px;
    animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1.1em; }
.modal-close { background: none; border: none; font-size: 1.3em; cursor: pointer; color: var(--text-light); }
.modal-body { padding: 20px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--border); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab-item {
    padding: 10px 20px; cursor: pointer; font-weight: 600; font-size: .9em;
    color: var(--text-light); border-bottom: 2px solid transparent;
    margin-bottom: -2px; white-space: nowrap; transition: var(--transition);
}
.tab-item:hover { color: var(--primary); }
.tab-item.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---------- Pagination ---------- */
.pagination-wrapper { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 10px; }
.pagination-info { font-size: .85em; color: var(--text-light); }
.pagination { display: flex; gap: 4px; align-items: center; }
.page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 4px 10px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: .85em; color: var(--text); background: var(--bg-white);
    transition: var(--transition); text-decoration: none;
}
.page-link:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); text-decoration: none; }
.page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-link.disabled { opacity: .4; pointer-events: none; }

/* ---------- Stats Cards ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-bottom: 20px; }
.stats-card {
    background: var(--bg-white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); padding: 20px;
    display: flex; align-items: center; gap: 16px;
    border-right: 4px solid var(--primary);
    transition: var(--transition);
}
.stats-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stats-card-primary { border-right-color: var(--primary); }
.stats-card-success { border-right-color: var(--success); }
.stats-card-danger { border-right-color: var(--danger); }
.stats-card-warning { border-right-color: var(--warning); }
.stats-card-info { border-right-color: var(--info); }
.stats-card-icon { font-size: 2em; flex-shrink: 0; }
.stats-card-info { flex: 1; }
.stats-card-value { font-size: 1.5em; font-weight: 700; color: var(--text); }
.stats-card-label { font-size: .85em; color: var(--text-light); }
.stats-card-subtitle { font-size: .75em; color: var(--text-lighter); margin-top: 2px; }
.stats-card-link { display: flex; align-items: center; gap: 16px; color: inherit; text-decoration: none; width: 100%; }
.stats-card-link:hover { text-decoration: none; }

/* ---------- Activity List ---------- */
.activity-list { display: flex; flex-direction: column; gap: 1px; }
.activity-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-info { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.activity-user { font-weight: 600; font-size: .85em; }
.activity-action { font-size: .85em; color: var(--text-light); }
.activity-target { font-size: .85em; color: var(--primary); }
.activity-time { font-size: .78em; color: var(--text-lighter); white-space: nowrap; }

/* ---------- Empty State ---------- */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-light); }
.empty-state p { font-size: 1.1em; }

/* ---------- Filter Form ---------- */
.filter-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; padding: 16px; background: var(--bg); border-radius: var(--radius); }
.filter-form .form-group { margin-bottom: 0; }
.filter-form .form-control { min-width: 180px; }

/* ---------- Dropdown ---------- */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    display: none; position: absolute; left: 0; top: 100%;
    min-width: 180px; background: var(--bg-white);
    border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); z-index: 100;
}
.dropdown-menu.show { display: block; }
.dropdown-item { display: block; padding: 10px 16px; color: var(--text); font-size: .9em; }
.dropdown-item:hover { background: var(--bg); text-decoration: none; }

/* ---------- Progress ---------- */
.progress { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 4px; transition: width .6s ease; }
.progress-bar-success { background: var(--success); }
.progress-bar-danger { background: var(--danger); }
.progress-bar-warning { background: var(--warning); }
.progress-bar-primary { background: var(--primary); }

/* ---------- Loading ---------- */
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay { position: absolute; inset: 0; background: rgba(255,255,255,.8); display: flex; justify-content: center; align-items: center; z-index: 50; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .85em; color: var(--text-light); }
.breadcrumb a { color: var(--primary); }
.breadcrumb .separator::before { content: '/'; margin: 0 4px; }

/* ---------- Tooltip ---------- */
[data-tooltip] { position: relative; cursor: help; }
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute; bottom: 100%; right: 50%; transform: translateX(50%);
    background: var(--bg-darker); color: #fff; padding: 6px 10px;
    border-radius: var(--radius-sm); font-size: .78em;
    white-space: nowrap; pointer-events: none; opacity: 0;
    transition: opacity .2s;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ---------- Status Indicators ---------- */
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 6px; }
.status-active .status-dot, .status-dot-success { background: var(--success); }
.status-inactive .status-dot, .status-dot-danger { background: var(--danger); }
.status-pending .status-dot, .status-dot-warning { background: var(--warning); }

/* ---------- Toast ---------- */
.toast-container { position: fixed; top: 80px; left: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
    padding: 14px 20px; border-radius: var(--radius); color: #fff;
    box-shadow: var(--shadow-lg); animation: slideInLeft .3s ease;
    min-width: 280px; display: flex; justify-content: space-between; align-items: center;
}
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-warning { background: var(--warning); }
.toast-info { background: var(--info); }
.toast-close { background: none; border: none; color: #fff; cursor: pointer; font-size: 1.1em; opacity: .8; }

/* ---------- Spacing Utilities ---------- */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.mr-1 { margin-right: 8px; } .ml-1 { margin-left: 8px; }
.p-1 { padding: 8px; } .p-2 { padding: 16px; } .p-3 { padding: 24px; }
.pt-1 { padding-top: 8px; } .pt-2 { padding-top: 16px; }
.pb-1 { padding-bottom: 8px; } .pb-2 { padding-bottom: 16px; }
.px-1 { padding-left: 8px; padding-right: 8px; } .px-2 { padding-left: 16px; padding-right: 16px; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }

/* ---------- Text Utilities ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-muted { color: var(--text-light); }
.text-sm { font-size: .85em; }
.text-lg { font-size: 1.15em; }
.text-bold { font-weight: 700; }
.font-mono { font-family: 'Courier New', monospace; }

/* ---------- Display Utilities ---------- */
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.w-100 { width: 100%; }
.w-50 { width: 50%; }
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.hidden { display: none !important; }
.cursor-pointer { cursor: pointer; }
.float-left { float: left; }
.float-right { float: right; }
.no-wrap { white-space: nowrap; }

/* ---------- Wizard / Stepper ---------- */
.stepper { display: flex; gap: 0; margin-bottom: 30px; overflow-x: auto; }
.step {
    flex: 1; text-align: center; padding: 12px 8px; position: relative;
    font-size: .8em; color: var(--text-light); min-width: 100px;
}
.step::after { content: ''; position: absolute; top: 20px; left: 0; width: 50%; height: 2px; background: var(--border); }
.step::before { content: ''; position: absolute; top: 20px; right: 0; width: 50%; height: 2px; background: var(--border); }
.step:first-child::before { display: none; }
.step:last-child::after { display: none; }
.step-number {
    display: inline-flex; width: 32px; height: 32px; border-radius: 50%;
    background: var(--border); color: var(--text-light);
    align-items: center; justify-content: center;
    font-weight: 700; margin-bottom: 6px; position: relative; z-index: 1;
}
.step.active .step-number { background: var(--primary); color: #fff; }
.step.completed .step-number { background: var(--success); color: #fff; }
.step.active { color: var(--primary); font-weight: 600; }
.step.completed { color: var(--success); }
.step-label { display: block; white-space: nowrap; }

/* ---------- Member Profile Tabs ---------- */
.profile-header { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 24px; padding: 20px; background: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.profile-photo { width: 100px; height: 100px; border-radius: var(--radius-lg); background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 2.5em; flex-shrink: 0; overflow: hidden; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { flex: 1; }
.profile-name { font-size: 1.3em; font-weight: 700; margin-bottom: 4px; }
.profile-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-light); font-size: .85em; }

/* ---------- File Upload ---------- */
.file-upload-area {
    border: 2px dashed var(--border-dark); border-radius: var(--radius);
    padding: 30px; text-align: center; cursor: pointer;
    transition: var(--transition); color: var(--text-light);
}
.file-upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.file-name { font-size: .85em; color: var(--text); margin-top: 8px; }

/* ---------- Print ---------- */
@media print {
    .sidebar, .top-header, .sidebar-overlay, .app-footer, .no-print,
    .btn, .filter-form, .pagination-wrapper { display: none !important; }
    .main-content { margin: 0 !important; }
    .content-area { padding: 0 !important; }
    .card { box-shadow: none; border: 1px solid #ddd; }
    body { background: #fff; }
}
.print-only { display: none; }
@media print { .print-only { display: block; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .col-6 { flex: 0 0 100%; }
    .col-4 { flex: 0 0 calc(50% - 10px); }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.show { display: block; }
    .sidebar-close { display: block; }
    .sidebar-toggle { display: flex; }
    .main-content { margin-right: 0; }
    .content-area { padding: 16px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .row { gap: 12px; }
    .col-4, .col-6, .col-8 { flex: 0 0 100%; }
    .form-row { flex-direction: column; gap: 0; }
    .top-header { padding: 0 12px; }
    .page-title { font-size: .95em; }
    .notification-dropdown { width: 300px; left: -100px; }
    .filter-form { flex-direction: column; align-items: stretch; }
    .filter-form .form-control { min-width: auto; }
    .data-table th, .data-table td { padding: 8px; font-size: .85em; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .user-info { display: none; }
}
