/* ================================================================
   Golden Swimming Academy — Custom Styles
   RTL Arabic-first design
   ================================================================ */

/* ── Fonts ────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&display=swap');

:root {
    --gs-primary:   #0d6efd;
    --gs-secondary: #6c757d;
    --gs-accent:    #ffc107;
    --gs-dark:      #212529;
    --gs-light-bg:  #f8f9fa;
    --bs-font-sans-serif: 'Tajawal', system-ui, -apple-system, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
}

body {
    font-family: 'Tajawal', system-ui, sans-serif;
    background-color: #ffffff;
    color: #212529;
}

/* ── Admin Layout ─────────────────────────────────────────────── */
#wrapper {
    overflow-x: hidden;
}

#sidebar-wrapper {
    transition: width .3s ease;
    overflow-y: auto;
    position: sticky;
    top: 0;
    height: 100vh;
}

#page-content-wrapper {
    overflow-x: hidden;
}

/* Sidebar nav active */
.list-group-item-action.active,
.list-group-item-action:hover {
    background-color: rgba(255, 193, 7, 0.12) !important;
    color: #ffc107 !important;
    border-right: 3px solid #ffc107;
}

/* ── Cards & Shadows ──────────────────────────────────────────── */
.card {
    border-radius: .75rem;
}

.shadow-sm {
    box-shadow: 0 .125rem .5rem rgba(0,0,0,.075) !important;
}

/* ── Hover lift effect ────────────────────────────────────────── */
.hover-lift {
    transition: transform .2s ease, box-shadow .2s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.12) !important;
}

/* ── Navbar ───────────────────────────────────────────────────── */
.navbar-brand {
    font-size: 1.3rem;
    font-weight: 900;
}

/* ── Hero Section ─────────────────────────────────────────────── */
.hero-section {
    background-attachment: fixed;
    position: relative;
}

/* ── Blazor Error ─────────────────────────────────────────────── */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,.2);
    display: none;
    left: 0;
    padding: .6rem 1.25rem .7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: .75rem;
    top: .5rem;
}

/* ── Pagination RTL ───────────────────────────────────────────── */
.pagination {
    direction: ltr;
}

/* ── Tables ───────────────────────────────────────────────────── */
.table > thead > tr > th {
    font-weight: 600;
    white-space: nowrap;
    font-size: .875rem;
}

/* ── Forms ────────────────────────────────────────────────────── */
.form-label {
    font-weight: 500;
    font-size: .9rem;
}

/* ── Badges ───────────────────────────────────────────────────── */
.badge {
    font-weight: 500;
    font-size: .78rem;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
    font-weight: 500;
    border-radius: .5rem;
}

/* ── Footer ───────────────────────────────────────────────────── */
footer a:hover {
    color: #ffc107 !important;
    transition: color .2s;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    #sidebar-wrapper {
        width: 0 !important;
        position: fixed;
        z-index: 999;
    }
    #sidebar-wrapper.show {
        width: 260px !important;
    }
}

/* ── Loading Spinner ──────────────────────────────────────────── */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ── Product Cards ────────────────────────────────────────────── */
.product-card img {
    transition: transform .3s ease;
}
.product-card:hover img {
    transform: scale(1.05);
}

/* ── Active NavLink ───────────────────────────────────────────── */
a.active.nav-link {
    font-weight: 700;
    color: #fff !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}
