
*,
*:before,
*:after {
margin: 0;
padding: 0;
box-sizing: border-box;
}

/* برای مرورگرهای مبتنی بر Firefox */
* {
scrollbar-color: #4a6de5 #4a6de5; /* رنگ اسکرولبار و پس‌زمینه */
scrollbar-width: thin; /* عرض اسکرولبار */
}

/* برای مرورگرهای مبتنی بر WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
width: 10px; /* عرض اسکرولبار */
height: 10px; /* ارتفاع اسکرولبار (برای اسکرولبار افقی) */
}

::-webkit-scrollbar-track {
background: #4a6de5; /* رنگ پس‌زمینه اسکرولبار */
border-radius: 5px; /* گرد کردن گوشه‌ها */
}

::-webkit-scrollbar-thumb {
background: #4a6de5; /* رنگ اسکرولبار */
border-radius: 5px; /* گرد کردن گوشه‌ها */
}

::-webkit-scrollbar-thumb:hover {
background: #4a6de5; /* رنگ اسکرولبار هنگام hover */
}


@font-face {
font-family: iransans;
font-style: normal;
font-weight: normal;
src: url("../fonts/IRANSansWeb_Medium.eot");
src: url("../fonts/IRANSansWeb_Medium.eot?#iefix") format("embedded-opentype"), url("../fonts/IRANSansWeb_Medium.woff2") format("woff2"), url("../fonts/IRANSansWeb_Medium.woff") format("woff"), url("../fonts/IRANSansWeb_Medium.ttf") format("truetype");
}

html,body{
    overflow-x: hidden;
    height: 100%;
    margin: 0;
}

:root {
    /* رنگ‌بندی اصلی */
    --primary-color: #1e3c72;
    --primary-light: #6c8ef5;
    --primary-dark: #4a6de5;
    --bg-color: #f0f0f3;
    --text-color: #333333;
    --text-muted: #6c757d;
    --shadow-light: #ffffff;
    --shadow-dark: #d1d9e6;
    --fontfamily: iransans;
    
    /* سایه‌های نئومورفیک */
    --neumorphic-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
    --neumorphic-shadow-inset: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
    --neumorphic-shadow-sm: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
    --neumorphic-shadow-lg: 15px 15px 30px var(--shadow-dark), -15px -15px 30px var(--shadow-light);
    
    /* transition */
    --transition: all 0.3s ease;
}

/* تنظیمات پایه */
body {
    font-family: var(--fontfamily);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height:100vh;
    display:-ms-flexbox;
    display:-webkit-box;
    display:flex;
    flex-direction: column;
}

/* تایپوگرافی */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}


/* سایدبار */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    background: #1e2a3a;
    color: #fff;
    transition: all 0.3s;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar .logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #2c3e50;
}

.sidebar .logo img {
    max-width: 120px;
}

.sidebar .nav-link {
    color: #b0c4de;
    padding: 12px 20px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}

.sidebar .nav-link:hover{
    background-color: #2c3e50;
    color: #fff;
}

.sidebarActive{
    background-color: #2c3e50;
    color: #fff; 
}

.sidebar .nav-link i {
    font-size: 1.2rem;
    width: 24px;
}

/* محتوای اصلی */
.main-content {
    margin-right: 250px;
    padding: 20px;
    transition: all 0.3s;
    flex: 1 0 auto;
}

/* هدر بالای صفحه */
.topbar {
    background: #fff;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar .toggle-sidebar {
    font-size: 1.5rem;
    cursor: pointer;
    color: #1e2a3a;
}

/* کارت‌های آمار */
.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stat-card .info h5 {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.stat-card .info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.stat-card .icon {
    width: 50px;
    height: 50px;
    background: #e9ecef;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #1e2a3a;
}

/* جداول */
.table-wrapper {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 20px;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.table td, .table th {
    vertical-align: middle;
    white-space: nowrap; /* برای جلوگیری از شکستن در حالت عادی، اما responsive wrapper اجازه اسکرول می‌دهد */
}

.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    margin: 0 2px;
}

/* مدال */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
}

/* فوتر */
footer {
    margin-top: 30px;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .sidebar {
        right: -250px;
    }
    .sidebar.show {
        right: 0;
    }
    .main-content {
        margin-right: 0;
    }
    .topbar .toggle-sidebar {
        display: block;
    }
}

@media (min-width: 769px) {
    .topbar .toggle-sidebar {
        display: none;
    }
}