/* فارسی: اندازه‌های نوار بالا/پایین رو اینجا می‌تونی دستی تغییر بدی */
:root {
    --topbar-h: 56px;
    --bottombar-h: 70px;
}

html,
body {
    height: 100%;
}

body {
    /* background: #0b0d12; */
    /* color: #fff; */
    overflow: hidden;
    /* فارسی: اسکرول کل صفحه رو می‌بندیم تا داخل main کنترل بشه */
}

/* Top bar (Action bar) */
.app-topbar {
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(18, 18, 22, .55);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    z-index: 1030;
}

.app-title {
    font-weight: 700;
    letter-spacing: .3px;
    user-select: none;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:active {
    transform: scale(.98);
}

/* Offcanvas */
.app-offcanvas {
    width: 80vw;
    /* فارسی: اینجا 80% صفحه تنظیم شده */
    max-width: 80vw;
    background: rgba(18, 18, 22, .96);
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, .10);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
}

.menu-item:hover {
    background: rgba(255, 255, 255, .08);
}

/* Bottom nav */
.app-bottombar {
    height: var(--bottombar-h);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(18, 18, 22, .55);
    border-top: 1px solid rgba(255, 255, 255, .08);
    z-index: 1030;
}

.bottom-btn {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bottom-btn.active {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .18);
}

/* Main wrapper (between top and bottom) */
.app-main {
    position: relative;
    height: 100vh;
    padding-top: var(--topbar-h);
    padding-bottom: var(--bottombar-h);
}

/* Auth modal (glass) */
.auth-modal .modal-content {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(18, 18, 22, .86);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
}

.auth-modal .form-control {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
}

.auth-modal .form-control:focus {
    box-shadow: none;
    border-color: rgba(255, 255, 255, .22);
}

.auth-modal .btn-close {
    filter: invert(1);
}

.auth-modal .alert {
    background: rgba(255, 0, 0, .12);
    border: 1px solid rgba(255, 0, 0, .25);
    color: #fff;
}

.auth-modal .btn-primary {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .18);
}

.auth-modal .btn-primary:hover {
    background: rgba(255, 255, 255, .20);
    border-color: rgba(255, 255, 255, .24);
}

.auth-modal .btn-link {
    color: rgba(255, 255, 255, .85);
}

.auth-modal .btn-link:hover {
    color: #fff;
}

/* Floating alerts */
.app-alert {
    position: fixed;
    top: calc(var(--topbar-h) + 10px);
    left: 12px;
    right: 12px;
    z-index: 1040;
}

/* .offcanvas-backdrop.show {
    backdrop-filter: blur(8px) saturate(120%);
    background-color: rgba(0,0,0,.25);
} */
/* خود پنل آفکنوس (اون سفیدِ داخلش) */
.offcanvas {
    background: rgba(255, 255, 255, .25) !important;
    /* سفیدِ نیمه شفاف */
    backdrop-filter: blur(5px) saturate(130%);
    -webkit-backdrop-filter: blur(4px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, .35);
}

/* اگر هدر/بادی جداست، اینم کمک می‌کنه */
.offcanvas .offcanvas-header,
.offcanvas .offcanvas-body {
    background: transparent !important;
}
