﻿/* تعریف فونت وزیرمتن به صورت محلی */
@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/vazirmatn/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* اعمال فونت به کل سیستم */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video, input, button, select, textarea,
.brand-text, .nav-link, .small-box, .btn, .dropdown-item, .breadcrumb {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* بهبود ظاهر داشبورد */
.app-content-header {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.app-footer {
    padding: 1rem;
    font-size: 0.9rem;
}

/* small box icon */
.small-box-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 3rem;
    opacity: 0.2;
}

/* کمی تمیزتر شدن cardها */
.card {
    border-radius: 14px;
    overflow: hidden;
}

.small-box {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}
/* Users page header */
.users-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Keep long data grids compact while preserving normal page scrolling. */
.app-content .table-responsive {
    max-height: 560px;
    overflow-y: auto;
    overflow-x: auto;
}

.app-content .table-responsive thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bs-body-bg);
    box-shadow: 0 1px 0 var(--bs-border-color);
}

.app-content .table-responsive table {
    min-width: 720px;
}

/* Shared dark dashboard theme */
body {
    background: #252a2f !important;
    color: #e9ecef;
}

.app-main,
.app-content,
.app-content-header {
    background: #252a2f;
}

.card,
.dashboard-panel {
    background: #202428;
    color: #e9ecef;
    border-color: #3b4249;
}

.card-header {
    background: #202428;
    border-bottom-color: #3b4249;
}

.table {
    --bs-table-bg: #202428;
    --bs-table-color: #e9ecef;
    --bs-table-border-color: #3b4249;
}

.table-light {
    --bs-table-bg: #343a40;
    --bs-table-color: #fff;
}

.table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: rgba(255, 255, 255, .06);
    color: #fff;
}

.form-control,
.form-select,
textarea.form-control {
    background-color: #2b3035;
    border-color: #4b545c;
    color: #f8f9fa;
}

.form-control:focus,
.form-select:focus {
    background-color: #30363b;
    color: #fff;
    border-color: #0d6efd;
}

.form-control::placeholder {
    color: #adb5bd;
}

.list-group-item {
    background-color: #202428;
    color: #e9ecef;
    border-color: #3b4249;
}

.text-muted {
    color: #adb5bd !important;
}

.breadcrumb-item.active {
    color: #ced4da;
}

.employee-summary-card {
    background: linear-gradient(135deg, #202428, #2d3339);
    border: 1px solid #3b4249;
}

.users-page-heading {
    flex: 1 1 auto;
    min-width: 0;
}

.users-page-heading .card-title {
    display: block;
    float: none !important;
    width: 100%;
    margin: 0 0 .25rem;
    line-height: 1.8;
}

.users-page-heading .text-muted {
    display: block;
    clear: both;
    line-height: 1.8;
}

.users-page-action {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .users-page-header {
        align-items: stretch;
    }

    .users-page-action {
        width: 100%;
    }
}
