﻿/* ================= Pelak Fonts (TTF) ================= */
@font-face {
    font-family: Pelak;
    src: url('../Fonts/PelakFA-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Pelak;
    src: url('../Fonts/PelakFA-light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Pelak;
    src: url('../Fonts/PelakFA-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Pelak;
    src: url('../Fonts/PelakFA-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #f6f8fc;
    --card: #ffffff;
    --line: #e6ebf5;
    --text: #0b1220;
    --muted: #64748b;
    /* Light Blue Theme */
    --blue: #38bdf8;
    --blue2: #0ea5e9;
    --blueSoft: #eef7ff;
    --blueLine: #cfe9ff;
    --shadow: 0 18px 55px rgba(15,23,42,.08);
}

html, body {
    height: 100%;
}

body {
    font-family: Pelak,system-ui !important;
    background: radial-gradient(1000px 500px at 80% -10%, rgba(56,189,248,.18), transparent 60%), radial-gradient(900px 500px at 10% 10%, rgba(14,165,233,.10), transparent 55%), linear-gradient(180deg, #ffffff, var(--bg));
    color: var(--text);
}

a {
    color: var(--text);
    text-decoration: none;
}

.small-muted {
    color: var(--muted);
    font-size: .92rem;
}

.hr-line {
    border-top: 1px solid var(--line);
}

.navbar {
    background: rgba(255,255,255,.85) !important;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(56,189,248,.28), rgba(56,189,248,.07));
    border: 1px solid var(--blueLine);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #0b1220;
}

.card {
    background: var(--card) !important;
    border: 1px solid var(--line) !important;
    border-radius: 18px !important;
    box-shadow: var(--shadow);
}

    .card.soft {
        box-shadow: none;
    }

.form-control, .form-select {
    background: #fff !important;
    border: 1px solid var(--line) !important;
    color: var(--text) !important;
    border-radius: 14px !important;
}

    .form-control:focus, .form-select:focus {
        border-color: rgba(56,189,248,.65) !important;
        box-shadow: 0 0 0 .2rem rgba(56,189,248,.18) !important;
    }

    .form-control::placeholder {
        color: #94a3b8;
    }

.btn {
    border-radius: 14px !important;
}

.btn-primary {
    background: linear-gradient(90deg, var(--blue2), var(--blue)) !important;
    border: 0 !important;
    color: #fff !important;
}

.btn-outline-light {
    border-color: var(--line) !important;
    color: var(--text) !important;
    background: #fff !important;
}

    .btn-outline-light:hover {
        background: var(--blueSoft) !important;
        border-color: var(--blueLine) !important;
    }

.badge-soft {
    background: var(--blueSoft);
    border: 1px solid var(--blueLine);
    color: #0369a1;
    border-radius: 999px;
    padding: .35rem .6rem;
    font-weight: 700;
}

.table {
    color: var(--text);
}

    .table thead th {
        border-bottom: 1px solid var(--line) !important;
        background: #f3f7ff;
        color: #0f172a;
    }

    .table td, .table th {
        border-color: var(--line) !important;
    }

.table-hover tbody tr:hover {
    background: var(--blueSoft);
}

.list-group-item {
    background: #fff !important;
    color: var(--text) !important;
    border-color: var(--line) !important;
    border-radius: 14px !important;
    margin-bottom: 8px;
}

.list-group-item-action:hover {
    background: var(--blueSoft) !important;
    border-color: var(--blueLine) !important;
}

.kpi {
    background: linear-gradient(135deg, rgba(56,189,248,.18), rgba(56,189,248,.05));
    border: 1px solid var(--blueLine);
    border-radius: 18px;
    padding: 14px;
}

@media (max-width: 576px) {
    .brand-badge {
        width: 34px;
        height: 34px;
        border-radius: 12px
    }
}

#toast-container {
    top: 70px !important;
}

.notyf {
    top: 70px !important;
}
/* SweetAlert2 */
.swal2-container {
    z-index: 2147483647 !important;
}

/* اگر از Toastr استفاده می‌کنی */
#toast-container {
    z-index: 2147483647 !important;
}

/* اگر از Notyf استفاده می‌کنی */
.notyf {
    z-index: 2147483647 !important;
}
