﻿@import url('Vazirmatn-font-face.css');
/* =========================================================
   تنظیمات کلی سامانه
   ========================================================= */

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f5f7fa;
    color: #212529;
    direction: rtl;
    text-align: right;
    line-height: 1.8;
}

/* =========================================================
   نوار بالای سامانه
   ========================================================= */

.navbar-brand {
    font-weight: 700;
    font-size: 1.15rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
}

/* =========================================================
   عنوان‌ها
   ========================================================= */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* =========================================================
   جدول‌ها
   ========================================================= */

.table {
    vertical-align: middle;
}

    .table th {
        background-color: #0B3D5C;
        color: white;
        font-weight: 600;
        text-align: center;
        vertical-align: middle;
    }

    .table td {
        vertical-align: middle;
    }

.table-hover tbody tr:hover {
    background-color: #f1f5f9;
}

/* =========================================================
   کارت‌ها
   ========================================================= */

.card {
    margin-bottom: 1.5rem;
    border: none;
    border-radius: 12px;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
}

.card-header {
    font-weight: 600;
}
.bg-navy {
    background-color: #0B3D5C !important;
}

.border-navy {
    border-color: #0B3D5C !important;
}

/* =========================================================
   آکاردئون
   ========================================================= */

.accordion-button {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 500;
}

    .accordion-button:not(.collapsed) {
        background-color: #cfe2ff;
        color: #084298;
    }

/* =========================================================
   دکمه‌ها
   ========================================================= */

.btn {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 500;
    border-radius: 8px;
}
.btn-navy {
    background-color: #0B3D5C;
    border-color: #0B3D5C;
    color: #fff;
}

    .btn-navy:hover {
        background-color: #092c44;
        border-color: #092c44;
        color: #fff;
    }

/* =========================================================
   فرم‌ها
   ========================================================= */

.form-control,
.form-select {
    font-family: 'Vazirmatn', sans-serif;
    border-radius: 8px;
}

.form-label {
    font-weight: 600;
}

/* =========================================================
   پیام‌های سیستم
   ========================================================= */

.alert {
    border-radius: 10px;
}

/* =========================================================
   فوتر
   ========================================================= */

footer {
    margin-top: 3rem;    padding: 1rem 0;
    background-color: #e9ecef;
    text-align: center;
}

/* =========================================================
   اعداد و مبالغ
   ========================================================= */

.table td,
.table th {
    font-variant-numeric: tabular-nums;
}
/* =========================================================
   تنظیمات نوار منوی اصلی
   ========================================================= */

.navbar {
    background-color: #1e3a8a !important;
    min-height: 70px;
    padding: 0.5rem 1rem;
}

.navbar-brand {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.2rem;
    white-space: nowrap;
}

.navbar-nav {
    display: flex !important;
    align-items: center;
}

    .navbar-nav .nav-item {
        display: block !important;
    }

    .navbar-nav .nav-link {
        color: #ffffff !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
        align-items: center;
        gap: 6px;
        font-weight: 600;
        padding: 0.75rem 1rem !important;
        white-space: nowrap;
    }

        .navbar-nav .nav-link:hover {
            color: #ffffff !important;
            background-color: rgba(255, 255, 255, 0.12);
            border-radius: 8px;
        }

        .navbar-nav .nav-link i {
            color: #ffffff !important;
        }

.nav-user {
    color: #ffffff !important;
}

.btn-logout {
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    font-weight: 600;
    margin-right: 8px;
}

    .btn-logout:hover {
        color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.15);
    }

/* دکمه منوی موبایل */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}
@keyframes pulse-login {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.nav-link-pulse {
    animation: pulse-login 2s infinite;
    border-radius: 20px;
    padding: 0.4rem 1.2rem;
}