:root {
    --gym-dark: #121212;
    --gym-panel: #1b1b1b;
    --gym-light: #ffffff;
    --gym-muted: #a7a7a7;
    --gym-green: #00ff88;
    --gym-orange: #ff6b00;
}

body {
    background: var(--gym-dark);
    color: var(--gym-light);
    font-family: 'Open Sans', Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Poppins', 'Roboto', sans-serif;
}

.gym-navbar, .gym-sidebar, .gym-card, .modal-content {
    background: rgba(27, 27, 27, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gym-hero {
    min-height: 82vh;
    background: radial-gradient(circle at 70% 20%, rgba(0,255,136,0.14), transparent 45%),
                linear-gradient(135deg, #080808, #141414);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Animated floating orbs behind hero */
.gym-hero::before {
    content: '';
    position: absolute;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(0,255,136,0.13), transparent 70%);
    border-radius: 50%;
    top: -120px;
    right: -80px;
    animation: heroOrb 9s ease-in-out infinite;
    pointer-events: none;
}

.gym-hero::after {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(0,255,136,0.07), transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    left: -60px;
    animation: heroOrb2 12s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(-60px, 50px) scale(1.15); }
    66%       { transform: translate(30px, -35px) scale(0.9); }
}

@keyframes heroOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(55px, -70px) scale(1.25); }
}

/* Particle canvas full-hero */
#hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Typewriter cursor */
.hero-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--gym-green);
    margin-left: 3px;
    vertical-align: middle;
    animation: cursorBlink 0.85s step-end infinite;
    border-radius: 2px;
}
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ── Hero text entrance animations ──────────────────────────────*/
@keyframes heroFadeInUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-anim {
    opacity: 0;
    animation: heroFadeInUp 0.75s ease forwards;
}
.hero-anim-1 { animation-delay: 0.1s; }
.hero-anim-2 { animation-delay: 0.3s; }
.hero-anim-3 { animation-delay: 0.55s; }
.hero-anim-4 { animation-delay: 0.75s; }

/* Badge pulse */
.badge-pulse {
    animation: badgePulse 2.5s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,136,0.45); }
    50%       { box-shadow: 0 0 0 10px rgba(0,255,136,0); }
}

/* Animated headline words */
.hero-word {
    color: var(--gym-green);
    position: relative;
    display: inline-block;
    animation: wordShimmer 4s ease-in-out infinite;
}
.hero-word:nth-child(2) { animation-delay: 1.3s; }
.hero-word:nth-child(3) { animation-delay: 2.6s; }

@keyframes wordShimmer {
    0%,  40%, 100% { color: var(--gym-green); text-shadow: 0 0 6px rgba(0,255,136,0.35); }
    20%             { color: #ffffff;          text-shadow: 0 0 0   transparent; }
}

/* ── Scroll-reveal ───────────────────────────────────────────────*/
.reveal {
    opacity: 0;
    transform: translateY(44px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.10s; }
.reveal-d2 { transition-delay: 0.22s; }
.reveal-d3 { transition-delay: 0.34s; }

/* ── Stat counter card mini-glow on load ─────────────────────────*/
@keyframes statPop {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}
.stat-card {
    animation: statPop 0.6s ease forwards;
    opacity: 0;
}
.stat-card:nth-child(1) { animation-delay: 0.6s; }
.stat-card:nth-child(2) { animation-delay: 0.75s; }
.stat-card:nth-child(3) { animation-delay: 0.9s; }
.stat-card:nth-child(4) { animation-delay: 1.05s; }

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

.btn-accent {
    background: var(--gym-green);
    color: #050505;
    font-weight: 700;
    border: 0;
}

.btn-accent:hover {
    background: #00d874;
    color: #050505;
}

.btn-orange {
    background: var(--gym-orange);
    color: #ffffff;
    font-weight: 700;
}

.gym-card {
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    overflow: clip;
}

.gym-sidebar {
    min-height: 100vh;
    position: sticky;
    top: 0;
}

.gym-sidebar a {
    color: #d7d7d7;
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.35rem;
}

.gym-sidebar a:hover, .gym-sidebar a.active {
    background: rgba(0, 255, 136, 0.12);
    color: var(--gym-green);
}

.table {
    color: #f4f4f4;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255,255,255,0.03);
    --bs-table-hover-bg: rgba(0,255,136,0.05);
    --bs-table-border-color: rgba(255,255,255,0.08);
}

.table > :not(caption) > * > * {
    background-color: transparent;
    color: #f4f4f4;
    border-bottom-color: rgba(255,255,255,0.08);
}

.table thead th {
    color: var(--gym-green);
    border-bottom-color: rgba(0,255,136,0.25);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.table-responsive {
    background: transparent;
}

.form-control, .form-select {
    background: #101010;
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.form-control:focus, .form-select:focus {
    background: #101010;
    color: #ffffff;
    border-color: var(--gym-green);
    box-shadow: 0 0 0 0.25rem rgba(0, 255, 136, 0.15);
}

.form-control::placeholder {
    color: #666;
}

/* Footer links and text */
footer a {
    color: #b0b0b0 !important;
    text-decoration: none;
    transition: color .2s;
}

footer a:hover {
    color: var(--gym-green) !important;
}

footer .text-muted {
    color: #999 !important;
}

/* Badge helpers */
.badge-success  { background: rgba(0,255,136,.18);  color: #00ff88; }
.badge-danger   { background: rgba(255,80,80,.18);   color: #ff5050; }
.badge-warning  { background: rgba(255,180,0,.18);   color: #ffb400; }
.badge-info     { background: rgba(0,180,255,.18);   color: #00b4ff; }

/* Modal dark */
.modal-content {
    background: #1b1b1b;
    color: #f4f4f4;
    border: 1px solid rgba(255,255,255,0.10);
}

.modal-header, .modal-footer {
    border-color: rgba(255,255,255,0.08);
}

/* Accordion dark */
.accordion-item {
    background: #1b1b1b;
    border-color: rgba(255,255,255,0.08);
}

.accordion-button {
    background: #1b1b1b;
    color: #f4f4f4;
}

.accordion-button:not(.collapsed) {
    background: rgba(0,255,136,0.08);
    color: var(--gym-green);
    box-shadow: none;
}

.accordion-button::after {
    filter: invert(1);
}

/* Navbar avatar */
.nav-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gym-green);
}

.nav-avatar-initials {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gym-green);
    color: #050505;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* Profile avatar */
.profile-avatar-wrap {
    position: relative;
    display: inline-block;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gym-green);
}

.profile-avatar-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #2a2a2a;
    border: 3px solid var(--gym-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--gym-green);
    font-weight: 700;
}

/* Quill editor dark theme */
.ql-toolbar {
    background: #252525;
    border-color: rgba(255,255,255,0.16) !important;
    border-radius: 10px 10px 0 0;
}

.ql-container {
    background: #101010;
    border-color: rgba(255,255,255,0.16) !important;
    border-radius: 0 0 10px 10px;
    color: #f4f4f4;
    min-height: 200px;
    font-size: 15px;
}

.ql-editor {
    min-height: 180px;
}

.ql-toolbar .ql-stroke { stroke: #ccc; }
.ql-toolbar .ql-fill   { fill: #ccc; }
.ql-toolbar .ql-picker  { color: #ccc; }
.ql-toolbar button:hover .ql-stroke { stroke: var(--gym-green); }
.ql-toolbar button:hover .ql-fill   { fill:   var(--gym-green); }

/* Tablet + phone: compact editor */
@media (max-width: 991.98px) {
    .ql-toolbar.ql-snow {
        display: flex;
        flex-wrap: wrap;
        gap: 2px;
    }
    .ql-container {
        min-height: 140px !important;
    }
    .ql-editor {
        min-height: 120px !important;
    }
}

/* Phone only: even more compact */
@media (max-width: 575.98px) {
    .ql-container {
        min-height: 100px !important;
    }
    .ql-editor {
        min-height: 80px !important;
    }
}

/* ── Mobile navbar toggler fix ───────────────────────────────────
   Using a FontAwesome icon in the HTML (fa-bars) instead of the
   default SVG background-image to guarantee visibility on mobile. */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    min-width: 44px;
    min-height: 40px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.25) !important;
    outline: none;
}

/* ── Mobile dashboard top bar ────────────────────────────────────
   Shown instead of the sidebar on phones/tablets (< lg = 992px) */
.mobile-dash-bar {
    background: rgba(27,27,27,0.97);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 56px;         /* below the sticky navbar */
    z-index: 100;
    width: 100%;
}

.mobile-dash-menu {
    background: #1b1b1b !important;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    min-width: 200px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

.mobile-dash-menu .dropdown-item {
    color: #d7d7d7;
    padding: 0.6rem 1.1rem;
    font-size: 0.9rem;
}

.mobile-dash-menu .dropdown-item i {
    color: var(--gym-green);
    width: 18px;
}

.mobile-dash-menu .dropdown-item:hover,
.mobile-dash-menu .dropdown-item:focus {
    background: rgba(0,255,136,0.1);
    color: var(--gym-green);
}

/* ── Table horizontal scroll on mobile ───────────────────────────*/
@media (max-width: 991.98px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
    }

    /* Give the col-lg-2 no padding/height on mobile so it just wraps the top bar */
    .col-lg-2 {
        padding: 0 !important;
    }

    /* Prevent main content from overflowing viewport */
    main, .col-lg-10 {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Reduce card padding on small screens */
    .gym-card.p-4 {
        padding: 1rem !important;
    }

    /* Keep form inputs and rows from bursting out of cards */
    .gym-card .row {
        margin-left: 0;
        margin-right: 0;
    }

    .gym-card .row > [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Stat card numbers smaller on mobile */
    .gym-card h2 {
        font-size: 1.6rem;
    }
}

/* Dropdown items dark */
.dropdown-item:hover, .dropdown-item:focus {
    background: rgba(0,255,136,0.08);
    color: var(--gym-green);
}

/* ═══════════════════════════════════════════════════════════
   MOBILE NAVBAR — floating popup, instant open/close
═══════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
    .gym-navbar { position: relative; }

    /* Right-aligned half-width popup panel — no full-screen overlay */
    .gym-navbar .navbar-collapse,
    .gym-navbar .collapsing {
        position: absolute !important;
        top: 100%;
        right: 0 !important;
        left: auto !important;
        width: 52vw;
        min-width: 180px;
        z-index: 1060;
        background: #141414 !important;
        border-radius: 0 0 0 14px !important;
        box-shadow: -6px 10px 36px rgba(0,0,0,0.75);
        padding: 0.6rem 1.1rem 1.2rem !important;
        border-top: 2px solid var(--gym-green);
        border-left: 1px solid rgba(255,255,255,0.07);
        /* No animation — instant open/close */
        height: auto !important;
        overflow: visible !important;
        transition: none !important;
    }

    .gym-navbar .nav-link {
        padding: 0.6rem 0.25rem;
        font-size: 0.95rem;
    }
    .gym-navbar .navbar-nav { gap: 0 !important; }
}

/* ═══════════════════════════════════════════════════════════
   AUTH PAGES  (Login / Register split-screen)
═══════════════════════════════════════════════════════════ */
.auth-page {
    display: flex;
    min-height: calc(100vh - 58px);
}

/* Left image panel */
.auth-left {
    position: relative;
    flex: 0 0 42%;
    overflow: hidden;
}
.auth-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.auth-left-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(155deg, rgba(0,0,0,0.90) 0%, rgba(0,30,15,0.72) 100%);
    display: flex;
    align-items: center;
    padding: 3.5rem 3rem;
}
.auth-left-content { width: 100%; }

/* Stat icon circles on left panel */
.auth-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(0,255,136,0.12);
    border: 1px solid rgba(0,255,136,0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gym-green);
    font-size: 1rem;
    flex-shrink: 0;
}

/* Checkmark icons on register left panel */
.auth-check-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0,255,136,0.15);
    border: 1px solid rgba(0,255,136,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gym-green);
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* Right form panel */
.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: #0e0e0e;
    overflow-y: auto;
}
.auth-form-wrap {
    width: 100%;
    max-width: 420px;
}

/* Icon badge at top of form */
.auth-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(0,255,136,0.1);
    border: 1px solid rgba(0,255,136,0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gym-green);
    font-size: 1.3rem;
}

/* Input with leading icon */
.auth-input-wrap { position: relative; }
.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 2;
    font-size: 0.85rem;
    pointer-events: none;
}
.auth-input { padding-left: 2.6rem !important; }

/* Terms / privacy checkbox box */
.auth-terms-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 0.85rem 1rem;
}

/* "or" divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.1rem 0;
    color: #555;
    font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

/* Tablet: centered card on background image, not full-width stretch */
@media (max-width: 991.98px) {
    .auth-left { display: none !important; }
    .auth-page {
        background: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1200&q=70') center/cover no-repeat;
        justify-content: center;
        align-items: center;
        padding: 2rem 1.25rem;
    }
    .auth-right {
        background: rgba(10,10,10,0.95);
        border-radius: 20px;
        border: 1px solid rgba(255,255,255,0.07);
        box-shadow: 0 24px 64px rgba(0,0,0,0.6);
        max-width: 500px;
        width: 100%;
        padding: 2.5rem 2rem;
        align-items: flex-start;
    }
    .auth-form-wrap {
        max-width: 100% !important;
        width: 100%;
    }
}
/* Phone: tighter padding, full width inside card */
@media (max-width: 575.98px) {
    .auth-page { padding: 1rem 0.75rem; align-items: flex-start; }
    .auth-right { padding: 1.75rem 1.25rem; border-radius: 16px; }
}

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE MOBILE & TABLET IMPROVEMENTS
═══════════════════════════════════════════════════════════ */

/* ── Hero mosaic: always keep overflow clipped ────────────── */
.hero-mosaic-wrap {
    overflow: hidden;
    border-radius: 16px;
}

/* ── Tablet (≤ 991px) ─────────────────────────────────────── */
@media (max-width: 991.98px) {

    /* Hero mosaic — fix badge overflow, move inset */
    .hero-badge.hero-badge-bl { left: 8px  !important; }
    .hero-badge.hero-badge-tr { right: 8px !important; }
    .hero-badge.hero-badge-mr { right: 8px !important; }

    /* Shrink mosaic images on tablet */
    .hero-mosaic-wrap img[style*="height:260px"] { height: 190px !important; }
    .hero-mosaic-wrap img[style*="height:126px"] { height: 95px  !important; }
    .hero-mosaic-wrap img[style*="height:145px"] { height: 110px !important; }

    /* Hero: remove fixed tall height, compact vertically */
    section.gym-hero,
    .gym-hero {
        min-height: 0 !important;
        height: auto !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
        align-items: flex-start;
    }

    /* Scale down the large headline */
    .gym-hero h1,
    .gym-hero h1.display-3 {
        font-size: clamp(1.9rem, 7.5vw, 2.8rem) !important;
        line-height: 1.15 !important;
        margin-bottom: 0.25rem !important;
    }

    /* Scale down the typewriter animated text */
    .hero-typed-wrap {
        font-size: clamp(1.65rem, 7vw, 2.4rem) !important;
        min-height: 1.4em !important;
    }

    /* Tighten hero sub-text */
    .gym-hero .lead {
        font-size: 0.95rem !important;
        margin-top: 0.75rem !important;
        margin-bottom: 1rem !important;
    }

    /* Gallery images — slightly shorter on tablet */
    img.gallery-strip-img {
        height: 190px !important;
        width: 100% !important;
    }

    /* Motivation banner — reduce height */
    .home-banner {
        height: 260px !important;
    }

    /* Stats banner image — reduce height */
    .stats-banner img,
    .stats-banner > img {
        height: 190px !important;
        object-fit: cover !important;
    }

    /* Stats numbers — smaller on tablet */
    .stats-banner .row h2 {
        font-size: 1.6rem !important;
    }

    /* Feature cards — slightly shorter image */
    img.feature-card-img {
        height: 120px !important;
        width: 100% !important;
    }

    /* Plan card cover image */
    img.plan-card-img {
        height: 160px !important;
        width: 100% !important;
    }

    /* Section heading sizes */
    main h2.fw-bold,
    main h2.display-6 {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
    }

    /* Tighten section spacing */
    main .mt-5 { margin-top: 2.5rem !important; }
}

/* ── Phone only (≤ 575px) ─────────────────────────────────── */
@media (max-width: 575.98px) {

    /* Hero mosaic — further shrink on phone */
    .hero-mosaic-wrap img[style*="height:260px"] { height: 150px !important; }
    .hero-mosaic-wrap img[style*="height:126px"] { height: 72px  !important; }
    .hero-mosaic-wrap img[style*="height:145px"] { height: 88px  !important; }

    /* Smaller badge text on phone */
    .hero-badge h4 { font-size: 1rem !important; }
    .hero-badge small { font-size: 0.7rem !important; }

    /* Even more compact hero */
    section.gym-hero,
    .gym-hero {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .gym-hero h1,
    .gym-hero h1.display-3 {
        font-size: 1.75rem !important;
    }

    .hero-typed-wrap {
        font-size: 1.9rem !important;
    }

    /* Hero buttons — compact on phone */
    .gym-hero .d-flex.flex-wrap .btn-lg {
        font-size: 0.875rem !important;
        padding: 0.55rem 1.1rem !important;
    }

    /* Gallery — shorter on phone (2-col grid) */
    img.gallery-strip-img {
        height: 145px !important;
    }

    /* Motivation banner — compact on phone, auto height */
    .home-banner {
        height: auto !important;
        min-height: 200px !important;
    }
    .home-banner h2 {
        font-size: 1.3rem !important;
        margin-bottom: 0.5rem !important;
    }
    .home-banner p.text-white-50 {
        display: none !important;
    }
    .home-banner .btn-lg {
        font-size: 0.875rem !important;
        padding: 0.5rem 1.4rem !important;
    }

    /* Stats banner — auto height on phone */
    .stats-banner,
    div.stats-banner {
        height: auto !important;
    }
    .stats-banner img,
    .stats-banner > img {
        height: 200px !important;
    }
    .stats-banner .row h2 {
        font-size: 1.35rem !important;
    }
    .stats-banner .row p.small {
        font-size: 0.7rem !important;
    }

    /* Feature cards — image height */
    img.feature-card-img {
        height: 110px !important;
    }

    /* Plan card cover image */
    img.plan-card-img {
        height: 140px !important;
    }

    /* BMI range labels — prevent overflow */
    #bmi-calculator .d-flex.justify-content-between {
        font-size: 0.6rem !important;
        flex-wrap: wrap;
        gap: 2px;
    }

    /* Tighter section spacing */
    main .mt-5 { margin-top: 2rem !important; }
    main .mb-5 { margin-bottom: 2rem !important; }
}

/* ════════════════════════════════════════════════════════════
   GLOBAL READABILITY — dark theme text contrast fixes
   Bootstrap's defaults target light backgrounds; these ensure
   every text element is legible on our #121212 background.
════════════════════════════════════════════════════════════ */

/* Bootstrap 5 CSS variable used by .text-muted */
:root {
    --bs-secondary-color:     #c2c2c2;
    --bs-body-color:          #e4e4e4;
    --bs-body-secondary-color:#c2c2c2;
}

/* .text-muted — used everywhere for sub-headings, descriptions */
.text-muted {
    color: #bdbdbd !important;
}

/* Plain <p> and <li> that carry no text-* class */
p:not([class*="text-"]),
li:not([class*="text-"]) {
    color: #d6d6d6;
}

/* .small / <small> helper text */
.small,
small {
    color: #b8b8b8;
}

/* .text-white-50 is rgba(255,255,255,.5) — too faint on dark */
.text-white-50 {
    color: rgba(255, 255, 255, 0.72) !important;
}

/* Ensure label text in forms is readable */
.form-label,
label {
    color: #d8d8d8;
}

/* Input group text (e.g. ₹ prefix, search icon bg) */
.input-group-text {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.16);
    color: #c0c0c0;
}

/* Dropdown menus */
.dropdown-menu {
    background: #1b1b1b;
    border-color: rgba(255, 255, 255, 0.10);
}
.dropdown-item {
    color: #d0d0d0;
}
.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(0, 255, 136, 0.08);
    color: var(--gym-green);
}

/* Pagination on dark */
.page-link {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.12);
    color: #c8c8c8;
}
.page-link:hover {
    background: rgba(0, 255, 136, 0.12);
    border-color: rgba(0, 255, 136, 0.25);
    color: var(--gym-green);
}
.page-item.active .page-link {
    background: var(--gym-green);
    border-color: var(--gym-green);
    color: #050505;
}
.page-item.disabled .page-link {
    background: #181818;
    color: #555;
    border-color: rgba(255, 255, 255, 0.06);
}

/* Alert text — ensure readable inside dark cards */
.alert {
    --bs-alert-color: #e0e0e0;
}
