html {
  font-size: 14px;
  font-family: IRANSansX, 'Vazirmatn', Arial, sans-serif;
}

.text-violet {
    color: #7c3aed !important;
}

.btn-violet {
    background-color: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}

.btn-violet:hover, .btn-violet:focus {
    background-color: #6d28d9;
    border-color: #6d28d9;
    color: #fff;
}

.btn-outline-violet {
    color: #7c3aed;
    border-color: #7c3aed;
}

.btn-outline-violet:hover, .btn-outline-violet:focus {
    background-color: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* ── Sidebar layout ──────────────────────────────────────────────────────── */
.layout-wrapper {
    display: flex;
    align-items: flex-start;
    min-height: calc(100vh - 56px - 60px);
}

.user-sidebar {
    width: 220px;
    min-width: 220px;
    background: #fff;
    border-left: 1px solid #e9ecef;
    min-height: calc(100vh - 56px);
    padding: 1.25rem 0 2rem 0;
    position: sticky;
    top: 0;
}

/* Hide the static sidebar on small screens; use offcanvas instead */
@media (max-width: 991.98px) {
    .layout-wrapper > .d-none.d-lg-flex > .user-sidebar,
    .layout-wrapper > .user-sidebar {
        display: none !important;
    }
}

/* Always show sidebar when it's inside the offcanvas body */
.offcanvas-body .user-sidebar {
    display: flex !important;
    width: 100%;
    min-width: 0;
    min-height: unset;
    position: static;
    border-left: none;
    padding-top: .5rem;
}

/* Offcanvas sidebar link styles — re-declare to beat Bootstrap resets */
.offcanvas-body .sidebar-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem 1.25rem;
    color: #344054 !important;
    text-decoration: none !important;
    font-size: 1rem;
    border-right: 3px solid transparent;
}

.offcanvas-body .sidebar-link i {
    width: 1.1rem;
    text-align: center;
    color: #7c3aed;
    font-size: .9rem;
    flex-shrink: 0;
}

.offcanvas-body .sidebar-link:hover,
.offcanvas-body .sidebar-link:active {
    background: #f5f3ff;
    color: #7c3aed !important;
}

.offcanvas-body .sidebar-link:hover i,
.offcanvas-body .sidebar-link:active i {
    color: #7c3aed;
}

.offcanvas-body .sidebar-link.active {
    background: #f5f3ff;
    color: #7c3aed !important;
    border-right-color: #7c3aed;
    font-weight: 600;
}

.offcanvas-body .sidebar-link.active i {
    color: #7c3aed;
}

.offcanvas-body .sidebar-section-title {
    font-size: .75rem;
    font-weight: 700;
    color: #7c3aed;
    padding: .4rem 1.25rem .1rem 1.25rem;
    letter-spacing: .04em;
}

/* Mobile full-screen offcanvas — only on phones */
.offcanvas-mobile-fullscreen {
    width: 320px !important;
    max-width: 320px !important;
    position: fixed !important;
}

@media (max-width: 575.98px) {
    .offcanvas-mobile-fullscreen {
        width: 100dvw !important;
        max-width: 100dvw !important;
    }
}

.layout-content {
    flex: 1;
    min-width: 0;
    padding: 0 1.25rem;
}

.sidebar-section-title {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: #7c3aed;
    padding: .25rem 1.25rem .1rem 1.25rem;
    text-transform: uppercase;
}

.sidebar-nav {
    padding: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem 1.25rem;
    color: #344054;
    text-decoration: none;
    font-size: .9rem;
    border-right: 3px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
}

.sidebar-link i {
    width: 1.1rem;
    text-align: center;
    color: #7c3aed;
    font-size: .85rem;
    flex-shrink: 0;
    transition: color .15s;
}

.sidebar-link:hover {
    background: #f5f3ff;
    color: #7c3aed;
}

.sidebar-link:hover i {
    color: #7c3aed;
}

.sidebar-link.active {
    background: #f5f3ff;
    color: #7c3aed;
    border-right-color: #7c3aed;
    font-weight: 600;
}

.sidebar-link.active i {
    color: #7c3aed;
}


/* RTL: form floating placeholders */
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ── GLightbox overrides ─────────────────────────────────────────────────────
   Force LTR on the overlay; hard-pin buttons; swap SVGs for FA icons.
─────────────────────────────────────────────────────────────────────────── */
/* Force LTR on the overlay so GLightbox's own JS/CSS coordinates are sane */
.glightbox-container {
    direction: ltr !important;
}

/* Always visible — no hover needed on any device */
.glightbox-container .gnext,
.glightbox-container .gprev,
.glightbox-container .gclose {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Hard-pin close button: top-right corner of the viewport */
.glightbox-container .gclose {
    position: fixed !important;
    top: 15px !important;
    right: 15px !important;
    left: auto !important;
    z-index: 99999 !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(255,255,255,.9) !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hard-pin previous (left) arrow */
.glightbox-container .gprev {
    position: fixed !important;
    top: 50% !important;
    left: 15px !important;
    right: auto !important;
    transform: translateY(-50%) !important;
    z-index: 99999 !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255,255,255,.9) !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hard-pin next (right) arrow */
.glightbox-container .gnext {
    position: fixed !important;
    top: 50% !important;
    right: 15px !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    z-index: 99999 !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255,255,255,.9) !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hide GLightbox's hardcoded SVG icons */
.glightbox-container .gprev svg,
.glightbox-container .gnext svg,
.glightbox-container .gclose svg {
    display: none !important;
}

/* Inject Font Awesome icons via pseudo-elements */
.glightbox-container .gprev::before,
.glightbox-container .gnext::before,
.glightbox-container .gclose::before {
    font-family: "Font Awesome 6 Pro" !important;
    font-weight: 900 !important;
    font-size: 18px !important;
    color: #000 !important;
    opacity: 1 !important;
}

.glightbox-container .gprev::before {
    content: "\f053"; /* fa-chevron-left */
}

.glightbox-container .gnext::before {
    content: "\f054"; /* fa-chevron-right */
}

.glightbox-container .gclose::before {
    content: "\f00d"; /* fa-times */
}

/* Style Font Awesome icons inside GLightbox nav/close buttons */
.glightbox-container .gnext i,
.glightbox-container .gprev i,
.glightbox-container .gclose i {
    font-size: 18px !important;
    color: #000 !important;
    opacity: 1 !important;
}

/* GLightbox button size and hover effect (desktop) */
@media (min-width: 992px) {
    .glightbox-container .gbtn {
        background-color: rgba(255, 255, 255, 0.9) !important;
        border-radius: 50%;
        width: 52px;
        height: 52px;
        transition: background-color 0.2s ease, transform 0.2s ease;
    }

    .glightbox-container .gbtn:hover,
    .glightbox-container .gbtn:focus {
        background-color: rgba(255, 255, 255, 1) !important;
        transform: scale(1.05);
    }
}

/* Hide the description / caption bar completely */
.glightbox-container .gdesc-inner,
.glightbox-container .gslide-description {
    display: none !important;
}
