
@font-face {
    font-family: 'Yekan';
    src: url('/fonts/Yekan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanPlus';
    src: url('/fonts/BYekanPlus.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    font-family: 'YekanPlus', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


/*html, body {*/
    /* font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
   */
    /*font-family: 'Yekan', Helvetica, Arial, sans-serif;
}*/

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEi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I2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.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;
}


/* =========================
   RED8 Header (PRO)
   ========================= */
.red8-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #121212;
    border-bottom: 1px solid rgba(255,255,255,.06);
    backdrop-filter: blur(14px);
}

    .red8-header.scrolled {
        background: rgba(8,8,8,.65);
        border-bottom-color: rgba(192,39,44,.20);
    }

.red8-header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

/* Brand */
.red8-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    min-width: 200px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 30% 30%, rgba(192,39,44,.35), rgba(255,255,255,.05));
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 10px 25px rgba(0,0,0,.35);
}

.brand-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(192,39,44,.25));
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-name {
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 1.05rem;
}

.brand-tagline {
    font-size: .78rem;
    color: rgba(255,255,255,.55);
    margin-top: 4px;
}

/* Desktop nav */
.red8-nav {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
}

@media (min-width: 992px) {
    .red8-nav {
        display: flex;
    }
}

.red8-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-weight: 700;
    transition: all .25s ease;
}

    .red8-link:hover {
        color: #fff;
        background: rgba(255,255,255,.06);
        transform: translateY(-1px);
    }

    /* NavLink active class = "active" by default in Blazor */
    .red8-link.active {
        color: #fff;
        background: rgba(192,39,44,.14);
        border: 1px solid rgba(192,39,44,.28);
    }

        .red8-link.active::after {
            content: "";
            position: absolute;
            left: 14px;
            right: 14px;
            bottom: 6px;
            height: 2px;
            border-radius: 2px;
            background: linear-gradient(90deg, transparent, #C0272C, transparent);
            opacity: .9;
        }

/* Actions */
.red8-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-red8-primary,
.btn-red8-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .25s ease;
}

.btn-red8-primary {
    color: #fff;
    background: linear-gradient(135deg, #C0272C 0%, #7d1114 100%);
    box-shadow: 0 14px 30px rgba(192,39,44,.22);
}

    .btn-red8-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 18px 38px rgba(192,39,44,.28);
    }

.btn-red8-ghost {
    color: rgba(255,255,255,.88);
    background: rgba(255,255,255,.03);
    border-color: rgba(255,255,255,.08);
}

    .btn-red8-ghost:hover {
        background: rgba(255,255,255,.06);
        color: #fff;
    }

/* Burger */
.red8-burger {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.03);
    color: #fff;
    display: grid;
    place-items: center;
}

    .red8-burger i {
        font-size: 1.4rem;
    }

/* Mobile drawer */
.red8-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 1001;
}

    .red8-backdrop.show {
        opacity: 1;
        pointer-events: auto;
    }

.red8-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(86vw, 360px);
    background: linear-gradient(180deg, rgba(10,10,10,.98), rgba(14,6,6,.98));
    border-left: 1px solid rgba(255,255,255,.08);
    transform: translateX(105%);
    transition: transform .28s ease;
    z-index: 1002;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .red8-drawer.open {
        transform: translateX(0);
    }

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
}

.drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .drawer-brand img {
        width: 36px;
        height: 36px;
        object-fit: contain;
        filter: drop-shadow(0 10px 18px rgba(192,39,44,.25));
    }

.drawer-title {
    font-weight: 900;
    letter-spacing: 1.5px;
}

.drawer-sub {
    font-size: .78rem;
    color: rgba(255,255,255,.55);
    margin-top: 2px;
}

.drawer-close {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.03);
    color: #fff;
    display: grid;
    place-items: center;
}

.drawer-links {
    padding: 10px;
    border-radius: 18px;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 14px;
    text-decoration: none;
    color: rgba(255,255,255,.85);
    font-weight: 800;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.06);
    transition: all .2s ease;
}

    .drawer-link:hover {
        background: rgba(255,255,255,.05);
        transform: translateY(-1px);
    }

    .drawer-link.active {
        background: rgba(192,39,44,.15);
        border-color: rgba(192,39,44,.28);
        color: #fff;
    }

.drawer-cta {
    display: none;
    margin-top: auto;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.06);
}

/* Ensure RTL icons spacing */
.red8-link i, .drawer-link i {
    margin-left: 2px;
}



/* =========================
   RED8 Simple Footer
   ========================= */
.red8-footer-simple {
    background: linear-gradient(180deg, #121212 0%, #120506 100%);
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
}

.footer-simple-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 22px;
    padding: 28px 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.footer-simple-title {
    margin: 0 0 22px;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
}

.footer-simple-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 28px;
    margin-bottom: 22px;
}

.footer-simple-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.9;
}

    .footer-simple-item i {
        color: #C0272C;
        font-size: 1rem;
    }

    .footer-simple-item a {
        color: rgba(255, 255, 255, 0.82);
        text-decoration: none;
        transition: color 0.25s ease;
    }

        .footer-simple-item a:hover {
            color: #fff;
        }

.footer-simple-bottom {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

    .footer-simple-bottom p {
        margin: 0;
        color: rgba(255, 255, 255, 0.48);
        font-size: 0.88rem;
    }

@media (max-width: 768px) {
    .footer-simple-box {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .footer-simple-items {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .footer-simple-item {
        justify-content: flex-start;
        text-align: right;
    }

    .footer-simple-title {
        margin-bottom: 18px;
    }
}


.red8-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    outline: none;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

    .red8-input:focus {
        border-color: #C0272C;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 0 12px rgba(192, 39, 44, 0.25);
    }


    input.red8-input,
    .red8-input.form-control,
    input[type="text"].red8-input,
    input[type="password"].red8-input {
        background-color: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.10) !important;
        color: #fff !important;
        box-shadow: none !important;
    }



/* ============================
   RED 8 ADMIN LAYOUT
   ============================ */

.red8-admin-shell {
    min-height: 100vh;
    display: flex;
    background: radial-gradient(circle at top right, rgba(192, 39, 44, 0.14), transparent 35%), linear-gradient(135deg, #070707 0%, #120607 55%, #000 100%);
    color: #fff;
}

/* Sidebar */
.red8-admin-sidebar {
    width: 280px;
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.03);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.red8-admin-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

/*.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #C0272C, #7d0f13);
    box-shadow: 0 12px 28px rgba(192, 39, 44, 0.3);
    font-weight: 900;
}*/

.brand-title {
    font-weight: 900;
    font-size: 1.05rem;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

.red8-admin-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.red8-admin-link {
    padding: 12px 14px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

    .red8-admin-link:hover,
    .red8-admin-link.active {
        background: rgba(192, 39, 44, 0.14);
        border-color: rgba(192, 39, 44, 0.3);
        color: #fff;
        transform: translateX(-4px);
    }

.red8-admin-sidebar-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.admin-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #27d17f;
    box-shadow: 0 0 10px rgba(39, 209, 127, 0.7);
}

/* Main */
.red8-admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.red8-admin-topbar {
    height: 76px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

    .topbar-left h1 {
        font-size: 1.1rem;
        margin: 0;
        font-weight: 800;
    }

.topbar-menu-btn,
.topbar-chip,
.topbar-logout {
    border: 0;
    border-radius: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
}

.topbar-logout {
    background: linear-gradient(135deg, #C0272C, #7d0f13);
}

.topbar-actions {
    display: flex;
    gap: 10px;
}

.red8-admin-content {
    padding: 24px;
    flex: 1;
}

/* Dashboard */
.red8-dashboard {
    display: grid;
    gap: 24px;
}

.dashboard-hero {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(14px);
}

.dashboard-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(192, 39, 44, 0.15);
    color: #ffb3b5;
    letter-spacing: 1px;
    font-size: 0.75rem;
}

.dashboard-hero h2 {
    margin: 0 0 10px;
    font-size: 2rem;
    font-weight: 900;
}

.dashboard-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
}

.dashboard-hero-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(192, 39, 44, 0.18);
    filter: blur(100px);
    top: -40px;
    left: -40px;
    pointer-events: none;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-stat-card,
.dashboard-action-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 22px;
    padding: 20px;
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
    color: #fff;
    text-decoration: none;
}

    .dashboard-stat-card:hover,
    .dashboard-action-card:hover {
        transform: translateY(-4px);
        border-color: rgba(192, 39, 44, 0.3);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    }

    .dashboard-stat-card span {
        display: block;
        color: rgba(255, 255, 255, 0.6);
        margin-bottom: 10px;
    }

    .dashboard-stat-card strong {
        font-size: 2rem;
        font-weight: 900;
        display: block;
        margin-bottom: 6px;
        color: #fff;
    }

    .dashboard-stat-card small {
        color: #ff8b8e;
    }

.dashboard-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-action-card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 800;
}

.dashboard-action-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
}

/* Responsive */
@media (max-width: 992px) {
    .red8-admin-shell {
        flex-direction: column;
    }

    .red8-admin-sidebar {
        width: 100%;
        min-height: auto;
    }

    .dashboard-stats-grid,
    .dashboard-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .red8-admin-topbar {
        flex-direction: column;
        height: auto;
        gap: 12px;
        padding: 16px;
        align-items: flex-start;
    }

    .dashboard-stats-grid,
    .dashboard-actions-grid {
        grid-template-columns: 1fr;
    }
}
