/* ===== Layout shell ===== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

\.app-wrap {
    flex: 1;
    display: flex;
    min-height: 0;
}

.app-content {
    display: flex;
    min-height: 100vh;
    margin: 0 !important; /* إزالة أي فجوة خارجية */
    padding: 0 !important;
}

.app-wrap {
    display: flex;
    min-height: calc(100vh - 56px); /* 56px هو ارتفاع الـ Navbar التقريبي */
    align-items: stretch;
}

/* القائمة الجانبية */
.app-sidebar {
    width: 260px;
    min-width: 260px;
    background: #0f172a;
    height: 100vh;
    position: sticky;
    top: 0;

    /* FIX: Remove 'left: 0'. Flexbox handles position automatically
       based on the 'dir' attribute in your HTML tag. */

    display: flex;
    flex-direction: column;
    z-index: 1000;

    /* FIX: Use 'border-inline-end'.
       In LTR (English): It acts as border-right.
       In RTL (Arabic): It acts as border-left. */
    border-inline-end: 1px solid #e2e8f0;
}

/* المحتوى الرئيسي */

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: #f5f7fb;

    /* Adding a small gap so content doesn't touch the sidebar */
    padding-inline-start: 0px;
}

.container-xxl {
    flex: 1 0 auto; /* هذا ما يدفع الفوتر للأسفل */
}

.footer {
    flex-shrink: 0; /* يمنع الفوتر من الانكماش أو التداخل */
    width: 100%;
}

.flex-grow-1 {
    flex-grow: 1; /* هذا سيجعل حاوية المحتوى تأخذ كل المساحة المتاحة وتدفع الفوتير للأسفل */
}

/* =========================
   Plans Cards (Dark + Soft Colors)
========================= */
.scroll-container {
    display: flex !important; /* تفعيل الفليكس بوكس */
    flex-wrap: nowrap !important; /* منع العناصر من النزول لسطر جديد */
    overflow-x: auto;
    overflow-y: hidden;
    gap: 20px; /* مسافة بين كل بطاقة وأخرى */
    padding-bottom: 20px; /* مساحة لشريط التمرير */
    -webkit-overflow-scrolling: touch;
}

/* تخصيص شكل شريط التمرير (Scrollbar) */
.scroll-container::-webkit-scrollbar {
    height: 6px;
}

.scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* 2. تصميم البطاقة الموحد */
.plan-card {
    background: #0b1220;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 22px;
    color: #fff;
    width: 380px !important; /* العرض الذي طلبته */
    min-width: 380px !important; /* ضمان عدم الانضغاط */
    flex-shrink: 0 !important;
    position: relative;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
    z-index: 1;
}

.plan-card:hover {
    transform: translateY(-4px);
}

.plan-card::before {
    content: "";
    position: absolute;
    inset: -120px;
    background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 55%);
    opacity: .65;
    pointer-events: none;
    z-index: 0;
}

.plan-card.exclusive {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, .30), 0 14px 34px rgba(0, 0, 0, .28);
}

.plan-card.premium {
    box-shadow: 0 0 0 2px rgba(34, 197, 94, .28), 0 14px 34px rgba(0, 0, 0, .28);
}

.plan-card.offer {
    box-shadow: 0 0 0 2px rgba(168, 85, 247, .28), 0 14px 34px rgba(0, 0, 0, .28);
}

.plan-name {
    font-size: 22px;
    font-weight: 700;
    margin: 6px 0 14px;
    white-space: normal;
    height: 3.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.plan-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    transition: all .2s;
}

.plan-action-btn:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

/* =========================
   DojoonGym Auth UI (FULL)
   ========================= */

/* -------- Base -------- */
:root {
    --bg: #eef0f3;
    --ink: #0f172a;
    --muted: #6b7280;

    --card: rgba(255, 255, 255, .72);
    --card-border: rgba(15, 23, 42, .08);

    --shadow: 0 18px 50px rgba(0, 0, 0, .18);
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, .12);

    --radius-xl: 26px;
    --radius-lg: 18px;
    --radius-md: 12px;

    --brand: #e11d48; /* red */
    --brand-dark: #be123c;
    --btn: #111827; /* near black */
    --btn-hover: #0b1220;

    --input-bg: rgba(255, 255, 255, .85);
    --input-border: rgba(15, 23, 42, .12);
    --input-focus: rgba(225, 29, 72, .25);
}

/* Page background */
body {
    background: radial-gradient(900px 600px at 10% 10%, rgba(17, 24, 39, .06), transparent 60%),
    radial-gradient(900px 600px at 90% 90%, rgba(225, 29, 72, .06), transparent 60%),
    var(--bg) !important;
    color: var(--ink);
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid #e6e6e6;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-pill {
    position: relative;
    height: 50px;
    width: min(850px, 100%);
    border-radius: 999px;
    border: 1px solid #e6e6e6;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 8px 0 18px;
    gap: 6px;
}

.search-pill input,
.search-pill select {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    width: 100%;
    height: 100%;
    font-size: 16px;
    padding-right: 100px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.icon-btn:hover {
    background: #f2f3f5;
    color: #111;
}

.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

/* The big shell */
.auth-shell {
    width: min(1080px, 100%);
    min-height: 620px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(0, 0, 0, .06);
}

/* LEFT (Form side) */
.auth-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px;
    background: radial-gradient(700px 500px at 20% 10%, rgba(255, 255, 255, .65), transparent 60%),
    radial-gradient(700px 500px at 80% 90%, rgba(17, 24, 39, .06), transparent 60%),
    rgba(255, 255, 255, .55);
    backdrop-filter: blur(10px);
}

/* Form card */
.auth-card {
    width: min(420px, 100%);
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 26px;
}

/* Titles */
.auth-card h4 {
    font-weight: 800;
    letter-spacing: .2px;
}

.auth-card .text-muted {
    color: var(--muted) !important;
}

/* Labels */
.auth-card .form-label {
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

/* Inputs */
.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="email"],
.auth-card input[type="number"],
.auth-card .form-control {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    padding: 12px 12px;
    outline: none;
    box-shadow: none;
}

.auth-card input:focus,
.auth-card .form-control:focus {
    border-color: rgba(225, 29, 72, .35);
    box-shadow: 0 0 0 4px var(--input-focus);
    background: #fff;
}

/* Messages alerts inside card (optional nicer look) */
.auth-card .alert {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .06);
    background: rgba(255, 255, 255, .8);
}

/* Button */
.auth-btn {
    background: linear-gradient(135deg, var(--btn), #0f172a);
    border: 1px solid rgba(255, 255, 255, .10);
    color: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 700;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .18);
}

.auth-btn:hover {
    background: linear-gradient(135deg, var(--btn-hover), #0b1020);
    transform: translateY(-1px);
}

/* Links */
.auth-link {
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.auth-link:hover {
    color: var(--brand);
    text-decoration: underline;
}

html[dir="rtl"] .auth-shell {
    flex-direction: row-reverse;
}

html[dir="rtl"] .auth-card {
    text-align: right;
}

html[dir="rtl"] .auth-card input[type="text"],
html[dir="rtl"] .auth-card input[type="password"],
html[dir="rtl"] .auth-card input[type="email"],
html[dir="rtl"] .auth-card input[type="number"],
html[dir="rtl"] .auth-card .form-control {
    text-align: right;
}

/* RIGHT (Art / Gradient side) */
.auth-art {
    flex: 1.15;
    position: relative;
    padding: 44px;
    color: #f3f4f6;

    /* Grey + black + tiny red */
    background: radial-gradient(900px 650px at 70% 28%, rgba(225, 29, 72, .18), transparent 60%),
    radial-gradient(900px 650px at 45% 85%, rgba(180, 180, 180, .14), transparent 65%),
    linear-gradient(135deg, #0b0b0c, #151518 55%, #23232a);
}

/* Soft light overlay */
.auth-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 50%),
    radial-gradient(900px 600px at 20% 30%, rgba(255, 255, 255, .06), transparent 60%);
    pointer-events: none;
}

/* Inner content */
.auth-art__inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 18px;
}

/* Brand top-left on art */
.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 900;
    letter-spacing: .5px;
    color: #fff;

    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(8px);
}

.auth-title {
    font-size: 18px;
    font-weight: 800;
}

.auth-sub {
    font-size: 13px;
    opacity: .85;
}

.auth-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.auth-bubbles span {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    filter: blur(2px);
    opacity: .18;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .25), transparent 60%);
    border: 1px solid rgba(255, 255, 255, .08);
}

.auth-bubbles span:nth-child(1) {
    top: 18%;
    left: 18%;
    transform: rotate(12deg);
}

.auth-bubbles span:nth-child(2) {
    top: 55%;
    left: 55%;
    width: 280px;
    height: 280px;
}

.auth-bubbles span:nth-child(3) {
    top: 10%;
    left: 62%;
    width: 180px;
    height: 180px;
    opacity: .12;
}

/* message inside auth card */
.auth-card .alert {
    border-radius: 12px;
    font-size: 13px;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid rgba(0, 0, 0, .08);
    background: rgba(255, 255, 255, .78);
    color: #1f2937;
}

/* success style (soft green) */
.auth-card .alert-success {
    border-color: rgba(34, 197, 94, .25);
    background: rgba(34, 197, 94, .08);
    color: #14532d;
}

/* warning / error */
.auth-card .alert-danger {
    border-color: rgba(239, 68, 68, .25);
    background: rgba(239, 68, 68, .08);
    color: #7f1d1d;
}

/* -------- Responsive -------- */
@media (max-width: 992px) {
    .auth-shell {
        flex-direction: column;
        min-height: auto;
    }

    .auth-art {
        min-height: 260px;
    }

    .auth-form {
        padding: 26px;
    }
}

.page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

.page-head h4 {
    font-weight: 700;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    white-space: nowrap;
}

/* ===== Soft SaaS Dashboard (Light) ===== */
:root {
    --bg: #f6f8fc;
    --card: #ffffff;
    --border: #e9eef6;
    --text: #0f172a;
    --muted: #64748b;

    --brand: #0ea5e9; /* sky */
    --brand2: #1e40af; /* dark blue */
    --warn: #f59e0b; /* amber but soft */
    --success: #22c55e;
    --danger: #ef4444;
}

.dashboard {
    background: var(--bg);
    border-radius: 18px;
    padding: 18px;
}

.kpi {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.kpi .label {
    color: var(--muted);
    font-size: .85rem;
    margin-bottom: 6px;
}

.kpi .value {
    color: var(--text);
    font-weight: 800;
    font-size: 1.6rem;
    line-height: 1.2;
}

.kpi .sub {
    color: var(--muted);
    font-size: .8rem;
    margin-top: 6px;
}

.kpi .badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-inline-end: 8px;
}

.dot-sky {
    background: var(--brand);
}

.dot-blue {
    background: var(--brand2);
}

.dot-amber {
    background: var(--warn);
}

.dot-green {
    background: var(--success);
}

.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
    overflow: hidden;
}

.panel-h {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-h .title {
    font-weight: 700;
    color: var(--text);
}

.panel-b {
    padding: 14px 16px;
}

.chart-box {
    height: 320px;
}

.table-soft th {
    color: var(--muted);
    font-weight: 700;
    font-size: .85rem;
    border-bottom: 1px solid var(--border) !important;
}

.table-soft td {
    border-bottom: 1px solid var(--border) !important;
}

.dash-wrapper {
    background: #f8f9fd;
    padding: 25px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-title {
    color: #131220;
    font-weight: 600;
    margin-bottom: 25px;
}

.top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 20px;
    margin-bottom: 25px;
}

.dashboard-top-section {
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 18px;
    background: radial-gradient(650px 260px at 15% 10%, rgba(75, 73, 172, 0.08), transparent 70%),
    radial-gradient(650px 260px at 85% 90%, rgba(204, 76, 88, 0.07), transparent 70%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.96));
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.dash-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: 0.3s;
}

.dash-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(75, 73, 172, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-header h3 {
    font-size: 1.1rem;
    color: #333;
}

.chart-box {
    height: 120px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    border-top: 1px solid #f1f1f1;
    padding-top: 10px;
}

.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.table-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table th {
    text-align: left;
    padding: 12px;
    color: #888;
    border-bottom: 1px solid #eee;
}

.custom-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.badge-paid {
    background: #e7f9ed;
    color: #28a745;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
}

.dot {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}


.plan-wrapper {
    background: #f8f9fd;
    padding: 30px;
    min-height: 100vh;
}

.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

/* KPI Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.stat-card small {
    color: #888;
    font-size: 0.85rem;
    display: block;
}

.stat-card strong {
    font-size: 1.5rem;
    color: #4b49ac;
}

/* Main Grid */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 25px;
}

.info-card, .members-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.detail-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #f8f9fa;
    padding-bottom: 10px;
}

.detail-item label {
    color: #888;
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.detail-item span {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.badge-active {
    background: #e7f9ed;
    color: #28a745;
    padding: 5px 15px;
    border-radius: 20px;
}

.badge-inactive {
    background: #feecef;
    color: #f35c86;
    padding: 5px 15px;
    border-radius: 20px;
}

.btn-back-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    color: #4b49ac;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-back-arrow i {
    font-size: 1.4rem; /* Makes the arrow visible */
}

.btn-back-arrow:hover {
    background-color: #4b49ac;
    color: #ffffff;
    transform: translateX(-3px); /* Subtle nudge to the left on hover */
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 193, 7, .55);
    color: #ffc107;
    background: transparent;
    font-weight: 700;
    cursor: pointer;
    transition: .15s ease-in-out;
}

.chip:hover {
    background: rgba(255, 193, 7, .08);
}

.chip.active {
    background: #ffc107;
    color: #111;
    border-color: #ffc107;
}

{
    border: 1.5px solid #edf2f7
;
    border-radius: 12px
;
    padding: 12px
;
    background-color: #fdfdfd
;
    transition: 0.2s
;
}

.custom-input:focus {
    border-color: #cc4c58;
    box-shadow: 0 0 0 4px rgba(204, 76, 88, 0.1);
    background-color: #fff;
    outline: none;
}


.btn-back-arrow {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b49ac;
}

.camera-display {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/3;
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid #f8f9fa;
    margin: 0 auto;
}

#camVideo, #previewImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Premium Outline Button for Cancel */
.btn-cancel-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0; /* Soft border */
    color: #64748b; /* Professional slate grey */
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 120px; /* Ensures buttons have a similar 'presence' */
}

.btn-cancel-outline:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
    transform: translateY(-1px);
}

/* Ensure Save Button height matches */
.btn-save-red {
    background-color: #cc4c58;
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 35px;
    border-radius: 12px;
    transition: 0.3s;
    min-width: 140px;
    cursor: pointer;
}

.btn-save-red:hover {
    background-color: #b33d48;
    box-shadow: 0 8px 15px rgba(204, 76, 88, 0.2);
}

/* Back Arrow Style */
.btn-back-modern {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f7;
    color: #4a5568;
    transition: 0.2s;
}

.btn-back-modern:hover {
    background: #f8fafc;
    transform: translateX(-3px);
    color: #000;
}

/* Profile Image Square Style */
.profile-sq-frame {
    width: 140px;
    height: 140px;
    border-radius: 35px;
    overflow: hidden;
    background: #f7fafc;
    border: 4px solid #fff;
}

.profile-sq-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Cards & Icons */
.pro-card-box {
    padding: 35px 20px;
    border: 1px dashed #e2e8f0;
    border-radius: 20px;
    background: #fdfdfd;
    text-align: center;
    height: 100%;
    transition: 0.3s;
}

.icon-sq-bg {
    width: 55px;
    height: 55px;
    background: #f8fafc;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 15px;
}

/* Biography Section Style */
.bio-section {
    background-color: #f8fafc;
    border: 1px solid #edf2f7;
    padding: 1.5rem;
    border-radius: 20px;
    margin-top: 2rem;
}

.online-status {
    position: absolute;
    bottom: 10px;
    right: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 4px solid #fff;
}

.profile-sq-frame {
    width: 140px;
    height: 140px;
    border-radius: 35px;
    overflow: hidden;
    background: #f7fafc;
    border: 4px solid #fff;
}

.profile-sq-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Status Dot */
.online-status {
    position: absolute;
    bottom: 10px;
    right: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 4px solid #fff;
}

/* Info Cards & Icons */
.pro-card-box {
    padding: 35px 20px;
    border: 1px dashed #e2e8f0;
    border-radius: 20px;
    background: #fdfdfd;
    text-align: center;
    height: 100%;
    transition: 0.3s;
}

.pro-card-box:hover {
    border-style: solid;
    background: #fff;
    transform: translateY(-3px);
}

.icon-sq-bg {
    width: 55px;
    height: 55px;
    background: #f8fafc;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 15px;
}

/* Biography Section */
.bio-section-modern {
    background-color: #f8fafc;
    border: 1px solid #edf2f7;
    padding: 1.5rem;
    border-radius: 20px;
    margin-top: 1rem;
}

.btn-remove-dashed-custom {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: transparent;
    border: 1px dashed #d9534f; /* الإطار المنقط الأحمر */
    border-radius: 6px;
    color: #d9534f;
    font-size: 11px; /* خط صغير وواضح */
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
}

.btn-remove-dashed-custom:hover {
    background-color: #fff5f5;
    border-style: solid;
}

.dash-wrapper {
    padding: 40px 30px; /* زيادة الهوامش الجانبية والعلوية */
    background-color: #f8f9fa;
}

/* التحكم في المسافة بين البطاقات في الشبكة العلوية */
.top-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px !important; /* زيادة المسافة بين بطاقات الإحصائيات */
    margin-bottom: 35px;
}

/* تحسين شكل البطاقة */
.dash-card, .table-card {
    background: #ffffff;
    border-radius: 16px !important; /* زوايا أكثر نعومة */
    padding: 25px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important; /* ظل خفيف جداً */
    border: none !important;
    transition: transform 0.3s ease;
}

.dash-card:hover {
    transform: translateY(-5px);
}

.bottom-grid {
    margin-top: 35px;
    gap: 30px !important;
}

.custom-table td, .custom-table th {
    padding: 15px 10px !important;
}

/* الكود الخاص بك مع إضافة بسيطة للاتساق */
.sport-checkbox-group div#id_activities {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    padding: 10px !important;
}

.sport-checkbox-group div#id_activities > div {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

.sport-checkbox-group label {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0 !important;
    color: #181c32 !important;
    cursor: pointer !important;
}

/* تعديل بسيط هنا ليتوافق مع الحجم الموحد */
.sport-checkbox-group input[type="checkbox"] {
    margin-right: 8px !important;
    width: 20px !important; /* جعلناه 20 ليطابق بقية الموقع */
    height: 20px !important;
}

.profile-sq-frame {
    width: 140px;
    height: 140px;
    border-radius: 35px;
    overflow: hidden;
    background: #f7fafc;
    border: 4px solid #fff;
}

.profile-sq-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* نقطة الحالة */
.online-status {
    position: absolute;
    bottom: 10px;
    right: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 4px solid #fff;
}

/* صناديق المعلومات المهنية */
.pro-card-box {
    padding: 30px 15px;
    border: 1px dashed #e2e8f0;
    border-radius: 20px;
    background: #fdfdfd;
    text-align: center;
    height: 100%;
    transition: 0.3s;
}

.pro-card-box:hover {
    border-style: solid;
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
}

/* الأيقونات الملونة */
.icon-sq-bg {
    width: 55px;
    height: 55px;
    background: #f8fafc;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 15px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
}

:root {
    --gym-green: #9ab973;
    --gym-gray: #f8f9fa; /* لون خلفية أغمق قليلاً ليبرز بياض الصناديق */
    --text-dark: #2d3436;
    --text-muted: #6c757d;
}

.modern-analytics-container {
    background-color: var(--gym-gray);
    padding: 24px;
    min-height: 100vh;
}

/* الصندوق الأبيض البارز */
.modern-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    padding: 24px;
    margin-bottom: 24px;
    display: block;
}

.metric-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-top: 5px;
}

.chart-container {
    position: relative;
    height: 350px;
    width: 100%;
}

/* تنسيق إضافي للأزرار */
.btn-white {
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
}

/* ملصق الأيام المتبقية الصغير بجانب الاسم */
.compact-expiry-badge {
    display: inline-flex;
    align-items: center;
    background-color: #fdf2f2; /* أحمر خفيف جداً */
    color: #3f4c59; /* اللون البني/الأحمر للأيام */
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    font-size: 0.8rem;
    font-weight: 600;
}

.compact-expiry-badge i {
    font-size: 0.9rem;
}

.compact-expiry-badge strong {
    margin-left: 4px;
    font-weight: 800;
}

@media print {
    .sidebar, .navbar, .btn, .print-button, .sidebar-wrapper, header, footer {
        display: none !important;
    }

    .main-content, .container-fluid, main {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        /* Change from absolute to static */
        position: static !important;
        overflow: visible !important;
        display: block !important;
    }

    /* Force the cards to show up clearly */
    .card {
        border: 1px solid #eee !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        display: block !important;
        visibility: visible !important;
    }
}

/* تنسيق المساحة الفارغة */
.border-dashed {
    border: 2px dashed #e9ecef !important; /* حدود منقطة تعطي شكلاً احترافياً */
    background-color: #fcfcfc;
    min-height: 200px;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.5rem;
}

/* تعديل بسيط لضمان عرض البطاقات */
.flex-shrink-0 {
    flex-shrink: 0 !important;
}

/* تحويل Checkbox إلى Switch أنيق في Bootstrap */
.form-check-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important; /* عرض ثابت */
    height: 20px !important; /* ارتفاع ثابت يضمن الشكل المربع */
    cursor: pointer;
    background-color: #fff;
    border: 2px solid #cbd5e0 !important; /* حدود واضحة */
    border-radius: 4px !important; /* زوايا منحنية بسيطة */
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

/* شكل علامة الصح عند التفعيل */
.form-check-input:checked {
    background-color: #3b82f6 !important; /* اللون الأزرق الظاهر في نظامك */
    border-color: #3b82f6 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
    background-size: 100% 100%;
}

.auth-wrap {
    background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
    url("../images/brand/gym.jpg") !important;
    background-size: cover !important;
    background-position: center !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.auth-shell {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

/* إخفاء أي ترقيم تلقائي إنجليزي يظهر من النظام */
nav[aria-label="Table navigation"],
.pagination:not(.manual-pagination) {
    display: none !important;
}

/* تنسيق أزرار الترقيم يدوياً */
.manual-pagination .page-link {
    border-radius: 8px !important;
    margin: 0 4px;
    padding: 8px 16px;
    color: #344767; /* لون النص الرمادي الغامق */
    border: 1px solid #dee2e6; /* إطار خفيف */
    background-color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

/* تصميم الرقم النشط (اللون الأسود) */
.manual-pagination .page-item.active .page-link {
    background-color: #000 !important; /* الخلفية السوداء */
    color: #fff !important; /* النص أبيض */
    border-color: #000 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* تأثير الحوّم (Hover) */
.manual-pagination .page-link:hover:not(.active) {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

/* Show/hide password toggle icon */
.password-toggle-wrapper {
    position: relative;
}

.password-toggle-wrapper input {
    padding: 12px;
    padding-inline-end: 40px;
}

.password-toggle-wrapper .toggle-password-btn {
    position: absolute;
    top: 50%;
    inset-inline-end: 10px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
}

.password-toggle-wrapper .toggle-password-btn:hover {
    color: #343a40;
}

.password-toggle-wrapper .toggle-password-btn i {
    font-size: 1.1rem;
}
