﻿@font-face {
    font-family: 'IranianSans1';
    src: url("../fonts/IranianSans.eot");
    src: url('../fonts/IranianSans.woff2') format('woff2');
    src: url('../fonts/IranianSans.woff') format('woff');
    src: url('../fonts/IranianSans.ttf') format('truetype');
}

@font-face {
    font-family: 'IranianSansBold';
    src: url('../fonts/IranianSansBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
/* END Bold */
/* BEGIN Regular */
@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSans.eot') format('eot'), url('../fonts/IRANSans.ttf') format('truetype'), url('../fonts/IRANSans.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'yekanbakhfanum-bold';
    src: url('../fonts/yekan-bakh/yekanbakhfanum-bold.woff2') format('woff2');
}

@font-face {
    font-family: 'yekanbakhfanum-fat';
    src: url('../fonts/yekan-bakh/yekanbakhfanum-fat.woff2') format('woff2');
}
body {
    /*    background-color: #f8f9fa;*/
    font-family: 'yekanbakhfanum-bold', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    background-color: #f8f9fa;
 /*   padding-top: 50px; */
}

.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
/*    background: linear-gradient(135deg, #025599 0%, #0282db 100%);*/
}

.login-card {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-bottom: 30px;
}

.card-header {
    background-color: #197cce;
    text-align: center;
    /*    padding: 25px 20px;*/
    border-bottom: none;
    width: 100%;
}
/*
.logo-container {
    margin-bottom: 20px;
}*/

.logo {
/*    width: 120px;
    height: 120px;*/
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
 /*   border-radius: 50%;
    background: linear-gradient(135deg, #fdaf1b 0%, #ffdd80 100%);
    padding: 5px;*/
   /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);*/
}
.logo-container div {
    background-color: #197cce;
}

.logo img {
    padding: 10px 50px;
    /*max-width: 400px;
       height: 100px;
        border-radius: 50%;*/
    object-fit: cover;
    /*     border: 3px solid white;*/
}

.card-body {
    padding: 30px;
}

.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
    border-left: 1px solid #ced4da;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.form-control{
    font-size: .9rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
    border-right: 1px solid #ced4da;
}
.list .form-control {
    border-left: 1px solid #ced4da !important;
}
.form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.btn-primary {
    background-color: #197cce;
    border-color: #047948;
   /* padding: 12px;*/
    font-weight: 500;
}

    .btn-primary:hover {
        background-color: #014580;
        border-color: #014580;
    }

.footer {
    background: linear-gradient(359deg, var(--secondary-color, #025599) 0%, #025599 100%);
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: auto;
    font-size: 0.85rem;
    width: 100%;
}

    .footer a {
        color: #fbc357;
        text-decoration: none;
        font-weight: bold;
    }

        .footer a:hover {
            color: #ffc107;
            text-decoration: underline;
        }

.text-danger {
    font-size: 0.85rem;
}

.alert {
    border: none;
    border-radius: 8px;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

h4 {
    font-size: 1.2rem;
    margin-top: 15px;
    font-weight: 500;
}


.access-denied-card {
    width: 100%;
    max-width: 500px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: white;
}





.card-body {
    padding: 2rem;
/*    text-align: center;*/
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: none;
    border-radius: 10px;
    padding: 1.2rem;
    font-weight: 500;
}

.access-icon {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.action-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.access-denied-card img {
    width: 200px;
}
table.dataTable tbody th, table.dataTable tbody td {
    padding: 8px 5px !important;
}

.form-control::placeholder {
    color: #999; /* رنگ خاکستری روشن */
    opacity: 0.7; /* شفافیت - اختیاری */
}

/*.action-btn {
    white-space: nowrap;
    padding: 3px 8px !important;
    font-size: 0.78rem !important;
    line-height: 1.2 !important;
}*/

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #1abc9c;
    --light-color: #f8f9fa;
    --dark-color: #1c2833;
}



/* هدر جدید */
.main-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #025599 100%);
    padding: 0;
    position: sticky;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    color:#fff;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
/*    height: 70px;*/
    width: auto;
    margin-left: 15px;
}

.brand-text {
    color: white !important;
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0;
}

.nav-menu {
    /*display: flex;*/
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    margin: 0 5px;
}

.nav-link {
    /* color: rgba(255,255,255,0.85) !important; */
    padding: 0.8rem 1rem !important;
    border-radius: 4px;
    transition: all 0.3s;
    font-weight: 500;
}

    .nav-link:hover, .nav-link.active {
        /* color: white !important; */
        background-color: rgba(255,255,255,0.1);
        transform: translateY(-2px);
    }

.user-section {
    display: flex;
    align-items: center;
}

.user-info {
    color: white;
    margin-left: 15px;
    font-size: 0.9rem;
}



/* محتوای اصلی */
.content {
    /* background: #fff; */
    /* border-radius: 12px; */
    padding: 1rem;
    /* box-shadow: 0 5px 15px rgba(0,0,0,0.05); */
    min-height: 60vh;
    transition: all 0.3s;
    margin-top: 20px;
}

/*    .content:hover {
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }
*/

/* رسپانسیو */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        padding: 1rem;
    }

    .logo-container {
        margin-bottom: 15px;
    }

    .nav-menu {
        margin-bottom: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-item {
        margin: 5px;
    }

}



@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1500px;
    }
}

.h1, h1 {
    font-size: 1.5rem;
}


/* استایل‌های منوی کاربر */
.user-dropdown-toggle {
    background: transparent;
    border: none;
    color: white !important;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s;
}

    .user-dropdown-toggle:hover {
        /*  background-color: rgba(255,255,255,0.1); */
        transform: scale(1.1);
    }

/* .user-dropdown-toggle:focus {
             box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25);
                    }*/

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 180px;
}

.dropdown-item {
    padding: 0.6rem 1rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

    .dropdown-item:hover {
        background-color: #f8f9fa;
        transform: translateX(-3px);
    }

    .dropdown-item.text-danger:hover {
        background-color: #f8d7da;
    }

.dropdown-header {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
}


/* تب‌های منو - استایل غیر دکمه‌ای */
.tabs-container {
    position: fixed;
    top: 80px;
    right: 0;
    left: 0;
    z-index: 1029;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 0;
    border-bottom: 1px solid #e9ecef;
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 3rem;
    overflow-y: hidden;
}

    .nav-scroller .nav {
        display: flex;
        flex-wrap: nowrap;
        padding-bottom: 1rem;
        margin-top: -1px;
        overflow-x: auto;
        text-align: center;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding: 0 1rem;
    }

.nav-underline {
    gap: 0;
}

    .nav-underline .nav-link {
        color: #6c757d;
        border-bottom: 3px solid transparent;
        border-radius: 0;
        padding: 0.8rem 1.2rem !important;
        font-weight: 500;
        transition: all 0.3s ease;
        margin-bottom: -1px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: fit-content;
    }

        .nav-underline .nav-link i {
            margin-left: 8px;
            font-size: 1.1rem;
        }

        .nav-underline .nav-link:hover {
            color: var(--primary-color);
            background-color: transparent;
            border-bottom-color: #b3d7ff;
        }

        .nav-underline .nav-link.active {
            color: var(--primary-color);
            background-color: transparent;
            border-bottom-color: var(--primary-color);
            font-weight: 600;
        }

            .nav-underline .nav-link.active::after {
                content: '';
                position: absolute;
                bottom: -3px;
                right: 0;
                left: 0;
                height: 3px;
                background: var(--primary-color);
            }



/* مخفی کردن اسکرول بار اما فعال نگه داشتن اسکرول */
.nav-scroller .nav::-webkit-scrollbar {
    display: none;
}

.nav-scroller .nav {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


.sorting_disabled::after, .sorting_disabled::before {
    display: none !important;
}

/* حالت اسکرول برای موبایل */
@media (max-width: 768px) {
    .nav-scroller .nav {
        padding: 0 0.5rem;
    }

    .nav-underline .nav-link {
        padding: 0.7rem 0.8rem !important;
        font-size: 0.85rem;
    }

        .nav-underline .nav-link i {
            margin-left: 5px;
            font-size: 1rem;
        }
    .brand-text {
        font-size: 1.1rem;
    }

/*    .logo {
        height: 40px;
    }*/

    .nav-tabs .nav-link {
        padding: 0.5rem 0.7rem !important;
        font-size: 0.85rem;
    }

}


.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* سایدبار */
/*.sidebar {
    width: 280px;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    z-index: 100000;
    background: linear-gradient(359deg, var(--secondary-color) 0%, #025599 100%);
    color: #fff;
    transition: all 0.3s;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    overflow-y: auto;
}*/

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #34495e;
}

    .sidebar-header h3 {
        font-size: 1.1rem;
        margin: 10px 0 0;
    }

.sidebar .nav-menu {
    padding: 20px 0;
}

.sidebar .nav-link {
    padding: 12px 20px;
    color: #ecf0f1;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    border-right: 3px solid transparent;
}

    .sidebar .nav-link:hover {
        background: linear-gradient(135deg, #ffffff30 0%, #ffffff20 100%);
        border-right-color: #3498db;
    }

    .sidebar .nav-link.active {
        background: linear-gradient(135deg, #ffffff30 0%, #ffffff20 100%);
        border-right-color: #3498db;
        color: #fff;
    }

    .sidebar .nav-link i {
        width: 24px;
        font-size: 1.2rem;
    }

/* محتوای اصلی */
/*.content-wrapper {
    width: 100%;
    margin-right: 280px;
    transition: all 0.3s;
}
*/
/*
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
*/
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .logo-container .logo {
        height: 45px;
        width: auto;
    }
.login-container .logo-container .logo {
    height: auto;
}
.brand-text {
    font-size: 1.2rem;
    margin: 0;
    color: #2c3e50;
}

.date-text {
    color: #e2e9ea;
    font-size: 0.9rem;
}

.user-section .dropdown-toggle {
    background: none;
    border: none;
    color: #2c3e50;
}

/* دکمه همبرگری برای موبایل */
.mobile-toggle {
    display: none;
    background: #2c3e50;
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

/* محتوای صفحه */
.container-fluid {
    padding: 20px;
}


/* ماسک برای موبایل */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .sidebar {
        right: -280px;
    }

        .sidebar.active {
            right: 0;
        }

    .content-wrapper {
        margin-right: 0;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .brand-text {
        font-size: 0.9rem;
    }

    .logo {
        height: 35px;
    }

    .date-text {
        display: none;
    }
}

/* اسکرول سایدبار */
.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: #2c3e50;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 5px;
}

.welcome-card {
    background: linear-gradient(135deg, #0144ea 0%, #d80b7a 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}


.brand-text {
    font-size: 1.3rem;
    margin: 0;
    background: #fff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}


.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 15px;
    float: left;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    margin: 10px 0;
    color: #2d1b4e;
}

.stat-label {
    color: #fff;
    margin: 0;
}

.stat-trend {
    font-size: 0.8rem;
    margin-top: 8px;
}

/* بخش نمودارها */
.chart-container {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    height: 100%;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d1b4e;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

/* جدول */
.table-custom {
    background: white;
/*    border-radius: 20px;*/
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

    .table-custom thead {
        background-color: #197cce;
        color: white;
    }

    .table-custom th {
        padding: 15px;
        font-weight: 600;
        border: none;
    }

    .table-custom td {
        padding: 12px 15px;
        vertical-align: middle;
    }

.badge-gender {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-male {
    background: #cfe2ff;
    color: #084298;
}

.badge-female {
    background: #f8d7da;
    color: #851b2c;
}

.btn-action {
    padding: 5px 10px;
    margin: 0 3px;
    border-radius: 8px;
}


/* کارت‌های آماری با رنگ‌بندی جدید */
.stat-card {
    background: linear-gradient(145deg, #f0f7ff 0%, #e8f0fe 100%);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(2, 85, 153, 0.15);
    transition: all 0.3s;
    margin-bottom: 20px;
    height: 100%;
    border: 1px solid rgba(2, 85, 153, 0.2);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(2, 85, 153, 0.25);
    background: linear-gradient(145deg, #3d6194 0%, #e0ecfc 100%);
}

/* تنظیم فوتر برای ماندن در پایین */


.wrapper {
    display: flex;
    flex: 1;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d1b4e;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

.stat-card1 {
    background: linear-gradient(317deg, #0144ea 0%, #94cbff 100%);
    color: white;
}

.stat-card2 {
    background: linear-gradient(317deg, #44d103 0%, #c7f185 100%);
    color: white;
}

.stat-card3 {
    background: linear-gradient(317deg, #c40451 0%, #ea8cda 100%);
    color: white;
}

.stat-card4 {
    background: linear-gradient(317deg, #d08303 0%, #ebf000 100%);
    color: white;
}

.form-select.is-invalid:not([multiple]):not([size]), .form-select.is-invalid:not([multiple])[size="1"], .was-validated .form-select:invalid:not([multiple]):not([size]), .was-validated .form-select:invalid:not([multiple])[size="1"] {
    background-repeat: no-repeat;
}


@media (max-width: 768px) {
    .content-wrapper {
        margin-right: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .brand-text {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}