/* فونت فارسی */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    line-height: 1.6;
    direction: rtl;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

/* انیمیشن پس‌زمینه فقط برای صفحه ورود */
body.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

body.login-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,20 L22,26 L28,26 L23,30 L25,36 L20,32 L15,36 L17,30 L12,26 L18,26 Z" fill="rgba(255,255,255,0.1)"/><path d="M80,40 L81.5,45 L86.5,45 L82.5,48 L84,53 L80,50 L76,53 L77.5,48 L73.5,45 L78.5,45 Z" fill="rgba(255,255,255,0.08)"/><path d="M40,80 L41,84 L45,84 L42,86 L43,90 L40,88 L37,90 L38,86 L35,84 L39,84 Z" fill="rgba(255,255,255,0.06)"/><path d="M70,70 L72,75 L77,75 L73,78 L75,83 L70,80 L65,83 L67,78 L63,75 L68,75 Z" fill="rgba(255,255,255,0.12)"/><path d="M10,60 L11.5,65 L16.5,65 L12.5,68 L14,73 L10,70 L6,73 L7.5,68 L3.5,65 L8.5,65 Z" fill="rgba(255,255,255,0.09)"/><path d="M60,20 L61,24 L65,24 L62,26 L63,30 L60,28 L57,30 L58,26 L55,24 L59,24 Z" fill="rgba(255,255,255,0.07)"/><path d="M30,50 L31.5,55 L36.5,55 L32.5,58 L34,63 L30,60 L26,63 L27.5,58 L23.5,55 L28.5,55 Z" fill="rgba(255,255,255,0.11)"/><path d="M90,80 L91.5,85 L96.5,85 L92.5,88 L94,93 L90,90 L86,93 L87.5,88 L83.5,85 L88.5,85 Z" fill="rgba(255,255,255,0.08)"/></svg>');
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

/* انیمیشن پس‌زمینه */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 25%, #45b7d1 50%, #96ceb4 75%, #feca57 100%);
    background-size: 300% 300%;
    animation: headerGradient 8s ease infinite;
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
    flex-shrink: 0;
    z-index: 1000;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.header:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

@keyframes headerGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.header .container {
    max-width: none;
    margin: 0;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header h1 i {
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.9);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.header .user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header .user-info span {
    font-size: 1rem;
    font-weight: 600;
}

.header .logout-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.header .logout-btn:hover {
    background: linear-gradient(135deg, #ee5a24, #ff6b6b);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    color: white;
    text-decoration: none;
}

.header .header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header .notification-btn {
    background: none;
    color: #00b894;
    border: none;
    padding: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 1.4rem;
}

.header .notification-btn i {
    font-size: 1.6rem;
}

.header .notification-btn:hover {
    color: #00cec9;
    text-decoration: none;
}

/* Navigation Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(108, 92, 231, 0.1);
    width: 100%;
    flex-shrink: 0;
    z-index: 999;
}

.navbar .container {
    max-width: none;
    margin: 0;
    padding: 0 25px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 0;
}

.navbar li {
    position: relative;
}

.navbar a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin: 0.5rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.navbar a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.1), transparent);
    transition: left 0.5s;
}

.navbar a:hover::before {
    left: 100%;
}

.navbar a:hover {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.3);
}

.navbar a.active {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
    position: relative;
}

.navbar a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 2px;
}

.navbar a i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.navbar a:hover i {
    transform: scale(1.1);
}

/* تاریخ و ساعت شمسی در navigation bar */
#persianDateTime {
    font-size: 16px;
    color: #6c5ce7;
    font-weight: bold;
    margin-left: 20px;
    white-space: nowrap;
    direction: ltr;
    text-align: left;
}

/* Container */
.container {
    max-width: none;
    margin: 0;
    padding: 0 40px;
    width: 100%;
}

/* Main Content */
main.container {
    flex: 1;
    padding: 20px 40px;
    margin: 0;
    max-width: none;
    width: 100%;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    color: #ddd;
    padding: 3rem 0 1rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    width: 100%;
    flex-shrink: 0;
    z-index: 100;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

footer .container {
    max-width: none;
    margin: 0;
    padding: 0 25px;
    width: 100%;
}

footer .footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

footer .footer-brand {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
}

footer .footer-brand i {
    color: #6c5ce7;
    font-size: 1.5rem;
    margin-left: 0.5rem;
}

footer hr {
    border-color: #636e72;
    margin: 2rem 0 1rem;
}

footer .footer-copyright {
    text-align: center;
    color: #2d3436;
    font-size: 0.9rem;
    font-weight: 600;
}

@keyframes heartbeat {
    0%, 50%, 100% {
        transform: scale(1);
    }
    25%, 75% {
        transform: scale(1.1);
    }
}

/* اطمینان از نمایش درست layout */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
}

/* قوانین قدیمی پاک شده */

.header, .navbar, footer {
    flex-shrink: 0 !important;
    width: 100% !important;
}

main.container {
    flex: 1 !important;
    overflow: visible !important;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

/* انیمیشن کارت‌ها فقط برای صفحه ورود */
body.login-page .card {
    animation: cardFloat 6s ease-in-out infinite;
}

body.login-page .card:nth-child(odd) {
    animation-delay: -2s;
}

body.login-page .card:nth-child(even) {
    animation-delay: -4s;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(0.5deg); }
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
    padding: 1.5rem 2rem;
    font-weight: 700;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.card-body {
    padding: 2rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.form-group label i {
    color: #6c5ce7;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.15);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

/* انیمیشن فیلدهای فرم فقط برای صفحه ورود */
body.login-page .form-control:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 0.3rem rgba(255, 107, 107, 0.25);
    transform: translateY(-3px) scale(1.02);
    animation: inputGlow 0.6s ease-in-out;
}

@keyframes inputGlow {
    0% { box-shadow: 0 0 0 0.3rem rgba(255, 107, 107, 0.25); }
    50% { box-shadow: 0 0 0 0.5rem rgba(255, 107, 107, 0.4); }
    100% { box-shadow: 0 0 0 0.3rem rgba(255, 107, 107, 0.25); }
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

/* استایل آیکون چشم برای رمز عبور */
.password-toggle {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    z-index: 10;
    padding: 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: #495057;
    background: rgba(0, 0, 0, 0.05);
}

.password-toggle i {
    font-size: 14px;
}

/* فیلد رمز عبور با آیکون چشم */
input[type="password"] {
    padding-right: 40px !important;
}

/* استایل فیلدهای مبلغ */
input[data-format="currency"] {
    pointer-events: auto !important;
    user-select: text !important;
    cursor: text !important;
    background-color: white !important;
    color: #2c3e50 !important;
    border: 2px solid #e9ecef !important;
    width: 100% !important;
    min-width: unset !important;
    font-family: 'Courier New', monospace !important;
    font-size: 16px !important;
    padding: 12px 15px !important;
    line-height: 1.5 !important;
}

input[data-format="currency"]:focus {
    border-color: #6c5ce7 !important;
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.15) !important;
    outline: none !important;
}

input[data-format="currency"]:hover {
    border-color: #6c5ce7 !important;
}

input[data-format="currency"]::placeholder {
    color: #999 !important;
    font-family: inherit !important;
}

/* اطمینان از عملکرد صحیح فیلدهای مبلغ */
.monetary-input {
    pointer-events: auto !important;
    user-select: text !important;
    cursor: text !important;
    background-color: white !important;
}

/* نمایش فیلدهای مبلغ با فونت مونوسپیس برای خوانایی بهتر */
input[data-format="currency"] {
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* استایل checkbox برای بخش غیرنقدی */
.form-check-input {
    width: 20px !important;
    height: 20px !important;
    margin-left: 8px !important;
    cursor: pointer !important;
    border: 2px solid #6c5ce7 !important;
    border-radius: 4px !important;
}

.form-check-input:checked {
    background-color: #6c5ce7 !important;
    border-color: #6c5ce7 !important;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.25) !important;
    border-color: #6c5ce7 !important;
}

.form-check-label {
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #2c3e50 !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

/* استایل دکمه حذف اقلام غیرنقدی */
.btn.btn-outline-danger.btn-sm {
    padding: 8px 12px !important;
    font-size: 14px !important;
    border-width: 2px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.btn.btn-outline-danger.btn-sm:hover {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
    transform: scale(1.05) !important;
}

.btn.btn-outline-danger.btn-sm i {
    font-size: 12px !important;
}

/* استایل بخش "بلی" برای غیرنقدی */
.noncash-section-header {
    padding: 15px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
}

.noncash-section-header .form-check {
    border: 2px solid #6c5ce7 !important;
    border-radius: 8px !important;
    padding: 8px 15px !important;
    background: white !important;
}

.noncash-section-header .form-check:hover {
    border-color: #5a4fcf !important;
    background: #f8f7ff !important;
}

.noncash-section-header .form-check-label:last-child {
    font-weight: 600 !important;
    color: #6c5ce7 !important;
}

/* استایل کارت اقلام غیرنقدی */
.noncash-item {
    transition: all 0.3s ease !important;
    background-color: #f8f9fa !important;
    border-left: 4px solid #6c5ce7 !important;
}

.noncash-item:hover {
    background-color: #e9ecef !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.noncash-item h6 {
    color: #6c5ce7 !important;
    font-weight: 600 !important;
}

.item-number {
    color: #dc3545 !important;
    font-weight: bold !important;
}

/* استایل کارت خیرها */
.donor-entry {
    transition: all 0.3s ease !important;
    background-color: #f8f9fa !important;
    border-left: 4px solid #28a745 !important;
}

.donor-entry:hover {
    background-color: #e9ecef !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.donor-entry h6 {
    color: #28a745 !important;
    font-weight: 600 !important;
}

.donor-number {
    color: #dc3545 !important;
    font-weight: bold !important;
}

/* بهینه‌سازی کارت سلام مدیر سیستم */
.welcome-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3) !important;
}

.welcome-card .card-body {
    color: white !important;
}

.welcome-card h2 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-card p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* کارت‌های مدیریت داشبورد */
.dashboard-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.dashboard-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #667eea;
    transition: all 0.3s ease;
}

.dashboard-card:hover i {
    color: #764ba2;
    transform: scale(1.1);
}

.dashboard-card h5 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1rem;
}

.dashboard-card p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.dashboard-card .btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

/* Select Fields - حذف کامل آیکون‌های اضافی */
select.form-control,
select.form-select,
select {
    padding-right: 0.75rem !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: initial !important;
    background-size: initial !important;
}

/* حذف کامل hover effects برای آیکون‌ها */
select.form-control:hover,
select.form-select:hover,
select:hover {
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: initial !important;
    background-size: initial !important;
}

/* حذف focus effects برای آیکون‌ها */
select.form-control:focus,
select.form-select:focus,
select:focus {
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: initial !important;
    background-size: initial !important;
}

/* حذف کامل تمام آیکون‌های اضافی dropdown - Global Override */
* select,
* select.form-control,
* select.form-select,
* select:not([data-limited]),
* select[data-limited],
* .form-group select,
* .card select,
* .modal select,
* .container select,
* .row select,
* .col-* select {
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: initial !important;
    background-size: initial !important;
    background-attachment: initial !important;
}

/* حذف تمام hover و focus effects */
* select:hover,
* select:focus,
* select:active,
* select:visited {
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: initial !important;
    background-size: initial !important;
    background-attachment: initial !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0.25rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Anchor button styles - فقط برای داشبورد ادمین اصلی */
body.admin-dashboard-page .dashboard-card a.btn {
    height: 96px;
    transform: matrix(1.0475, 0, 0, 1.0475, 0, 0);
}

/* حذف استایل بزرگ برای بقیه صفحات - دکمه‌های عادی */
a.btn {
    height: auto;
    transform: none;
    padding: 0.75rem 1.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    position: relative;
    overflow: hidden;
    transform: scale(1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* انیمیشن دکمه‌ها فقط برای صفحه ورود */
body.login-page .btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 50%, #45b7d1 100%);
    background-size: 200% 200%;
    animation: buttonGradient 3s ease infinite;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

@keyframes buttonGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.6);
    color: white;
    text-decoration: none;
    animation: buttonPulse 0.6s ease-in-out;
}

@keyframes buttonPulse {
    0% { transform: translateY(-5px) scale(1.05); }
    50% { transform: translateY(-8px) scale(1.1); }
    100% { transform: translateY(-5px) scale(1.05); }
}

.btn-success {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* انیمیشن دکمه‌های success فقط برای صفحه ورود */
body.login-page .btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    background-size: 200% 200%;
    animation: successGradient 4s ease infinite;
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4);
}

@keyframes successGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-success:hover {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(17, 153, 142, 0.6);
    color: white;
    text-decoration: none;
    animation: buttonPulse 0.6s ease-in-out;
}

.btn-danger {
    background: linear-gradient(135deg, #e17055 0%, #fdcb6e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(225, 112, 85, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* انیمیشن دکمه‌های danger فقط برای صفحه ورود */
body.login-page .btn-danger {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    background-size: 200% 200%;
    animation: dangerGradient 3.5s ease infinite;
    box-shadow: 0 6px 20px rgba(255, 65, 108, 0.4);
}

@keyframes dangerGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 65, 108, 0.6);
    color: white;
    text-decoration: none;
    animation: buttonPulse 0.6s ease-in-out;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
    color: #212529;
    text-decoration: none;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
    color: white;
    text-decoration: none;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.table th,
.table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(78, 205, 196, 0.1) 100%);
    transform: scale(1.01);
}

.table .actions {
    white-space: nowrap;
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 5px;
}

.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-dismissible {
    position: relative;
    padding-right: 50px;
}

.btn-close {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    opacity: 1;
}

.btn-close:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

/* Statistics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.stat-card .label {
    color: #666;
    font-size: 0.9rem;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    max-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.login-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="30" r="1" fill="rgba(255,255,255,0.06)"/><circle cx="60" cy="25" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="35" r="1.5" fill="rgba(255,255,255,0.07)"/><circle cx="90" cy="20" r="2.5" fill="rgba(255,255,255,0.09)"/><circle cx="25" cy="50" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="45" cy="55" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="65" cy="60" r="1" fill="rgba(255,255,255,0.06)"/><circle cx="85" cy="45" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="95" cy="65" r="1" fill="rgba(255,255,255,0.04)"/><circle cx="15" cy="80" r="2.5" fill="rgba(255,255,255,0.09)"/><circle cx="35" cy="85" r="1" fill="rgba(255,255,255,0.06)"/><circle cx="55" cy="90" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="75" cy="80" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="85" cy="95" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="95" cy="75" r="1" fill="rgba(255,255,255,0.04)"/></svg>');
    animation: float 25s ease-in-out infinite reverse;
    opacity: 0.6;
    pointer-events: none;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="3" fill="rgba(255,255,255,0.15)"/><circle cx="30" cy="20" r="2" fill="rgba(255,255,255,0.12)"/><circle cx="50" cy="15" r="4" fill="rgba(255,255,255,0.18)"/><circle cx="70" cy="25" r="2.5" fill="rgba(255,255,255,0.14)"/><circle cx="90" cy="10" r="3.5" fill="rgba(255,255,255,0.16)"/><circle cx="15" cy="40" r="2" fill="rgba(255,255,255,0.13)"/><circle cx="35" cy="45" r="3" fill="rgba(255,255,255,0.17)"/><circle cx="55" cy="50" r="2.5" fill="rgba(255,255,255,0.15)"/><circle cx="75" cy="35" r="4" fill="rgba(255,255,255,0.19)"/><circle cx="85" cy="55" r="2" fill="rgba(255,255,255,0.11)"/><circle cx="5" cy="70" r="3.5" fill="rgba(255,255,255,0.16)"/><circle cx="25" cy="75" r="2" fill="rgba(255,255,255,0.14)"/><circle cx="45" cy="80" r="3" fill="rgba(255,255,255,0.18)"/><circle cx="65" cy="70" r="2.5" fill="rgba(255,255,255,0.15)"/><circle cx="85" cy="85" r="4" fill="rgba(255,255,255,0.17)"/><circle cx="95" cy="65" r="2" fill="rgba(255,255,255,0.12)"/></svg>');
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
    }
    25% { 
        transform: translateY(-15px) rotate(90deg) scale(1.1); 
    }
    50% { 
        transform: translateY(-30px) rotate(180deg) scale(0.9); 
    }
    75% { 
        transform: translateY(-15px) rotate(270deg) scale(1.05); 
    }
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.login-card h2 i {
    color: #6c5ce7;
    animation: bounce 2s infinite;
}

/* Modern Login Logo Styles */
.login-logo-wrapper {
    margin-bottom: 2rem;
}

.modern-logo {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-circle-bg {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 20px 40px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.logo-circle-bg:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 25px 50px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.logo-circle-bg::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 50%;
    z-index: -1;
}

.logo-circle-bg i {
    font-size: 3.2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Ring removed for cleaner design */

@keyframes subtleGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

/* Old logo animations removed for modern design */

/* Password Input with Toggle Eye Icon */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-control {
    padding-left: 45px;
}

.password-toggle-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.3s ease;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: #6c5ce7;
}

.password-toggle-btn:focus {
    outline: none;
    color: #6c5ce7;
}

.password-toggle-btn i {
    font-size: 1.1rem;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.toast-notification {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 10px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
    min-width: 300px;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    word-wrap: break-word;
}

.toast-close {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: inherit;
    opacity: 0.8;
    transition: all 0.2s ease;
    flex-shrink: 0;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.toast-close i {
    font-size: 14px;
}

/* Toast Types */
.toast-success {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    border-left: 4px solid #00a085;
}

.toast-error {
    background: linear-gradient(135deg, #e17055, #fdcb6e);
    color: white;
    border-left: 4px solid #d63031;
}

.toast-warning {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    color: white;
    border-left: 4px solid #e17055;
}

.toast-info {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    border-left: 4px solid #5a4fcf;
}

/* Responsive */
@media (max-width: 768px) {
    #toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast-notification {
        min-width: auto;
        max-width: none;
    }
}

/* انیمیشن‌های اضافی */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.scale-in {
    animation: scaleIn 0.5s ease-out;
}

.card-hover-effect {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-effect:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.table-hover-animation {
    background: linear-gradient(135deg, #f8f9ff, #ffffff) !important;
    transform: scale(1.01);
    transition: all 0.3s ease;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleAnimation 0.6s linear;
    pointer-events: none;
}

@keyframes rippleAnimation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #6c5ce7;
    font-weight: 600;
}

.loading-spinner i {
    font-size: 2rem;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a4fcf, #9c88fd);
}

/* کارت‌های آمار پیشرفته */
.stats-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid #e9ecef;
    text-decoration: none;
    color: inherit;
}

.clickable-card {
    cursor: pointer;
}

.clickable-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2) !important;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #e17055;
}

.rejected-card::before {
    background: linear-gradient(135deg, #e17055, #fdcb6e);
}

.inventory-card::before {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
}

.finance-card::before {
    background: linear-gradient(135deg, #00b894, #00cec9);
}

.completed-card::before {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.management-card::before {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.user-requests-card::before {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.pending-card::before {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
}

.stats-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.rejected-card .stats-icon {
    background: linear-gradient(135deg, #e17055, #fdcb6e);
}

.inventory-card .stats-icon {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
}

.finance-card .stats-icon {
    background: linear-gradient(135deg, #00b894, #00cec9);
}

.completed-card .stats-icon {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.management-card .stats-icon {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.user-requests-card .stats-icon {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.pending-card .stats-icon {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
}

.stats-content {
    flex: 1;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #495057;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.stats-description {
    font-size: 0.9rem;
    color: #adb5bd;
    margin: 0;
}

.stats-arrow {
    font-size: 1.5rem;
    color: #dee2e6;
    transition: all 0.3s ease;
}

.stats-card:hover .stats-arrow {
    color: #e17055;
    transform: translateX(-5px);
}

/* استایل‌های صفحات ادمین */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.page-header .header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.page-header .header-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-header .header-text h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header .header-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0.5rem 0 0;
    font-weight: 400;
}

.page-header .header-actions {
    position: relative;
    z-index: 2;
}

.page-header .stats-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    font-size: 1.1rem;
}

/* فیلتر مدرن */
.filter-card {
    border: 2px solid #e3f2fd;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.modern-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.modern-label i {
    color: #667eea;
    font-size: 0.9rem;
}

.modern-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background-color: #fafbfc;
    font-weight: 500;
    background-image: none !important;
}

.modern-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    background-color: white;
    transform: translateY(-1px);
}

.modern-input {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background-color: #fafbfc;
}

.modern-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    background-color: white;
    transform: translateY(-1px);
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-group .modern-input {
    border-radius: 10px 0 0 10px;
    border-left: 2px solid #e9ecef;
    border-right: none;
    padding-left: 1rem;
    padding-right: 3rem;
}

.search-btn {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px 0 0 10px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: scale(1.05);
}

/* دکمه‌های مدرن */
.modern-btn-primary {
    background: linear-gradient(135deg, #e17055, #fdcb6e);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.modern-btn-primary:hover::before {
    left: 100%;
}

.modern-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(225, 112, 85, 0.4);
    color: white;
}

/* عنوان انیمیشن‌دار */
.animated-title {
    color: #333;
    font-weight: 700;
    margin-bottom: 0.5rem;
    animation: slideInDown 1s ease-out 0.3s both;
}

.animated-subtitle {
    animation: slideInUp 1s ease-out 0.5s both;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* فیلدهای ورود انیمیشن‌دار */
.animated-form {
    animation: fadeInUp 1s ease-out 0.7s both;
}

.animated-label {
    color: #555;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.animated-input {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(255, 255, 255, 0.9);
}

.animated-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
}

.animated-input:hover {
    border-color: #667eea;
    transform: translateY(-1px);
}

/* دکمه انیمیشن‌دار */
.animated-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.animated-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.animated-button:active {
    transform: translateY(-1px) scale(0.98);
}

.animated-button.loading {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: not-allowed;
}

.animated-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.animated-button:hover::before {
    left: 100%;
}

.animated-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.animated-button:active::after {
    width: 300px;
    height: 300px;
}

/* دکمه toggle انیمیشن‌دار */
.animated-toggle {
    border-radius: 0 12px 12px 0;
    border: 2px solid #e9ecef;
    border-right: none;
    transition: all 0.3s ease;
}

.animated-toggle:hover {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

/* انیمیشن فوکوس */
.mb-3.focused .animated-label,
.mb-4.focused .animated-label {
    color: #667eea;
    transform: translateY(-2px);
}

.mb-3.focused .animated-input,
.mb-4.focused .animated-input {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* انیمیشن Ripple Effect */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleAnimation 0.6s linear;
    pointer-events: none;
}

@keyframes rippleAnimation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* کارت ورود قدیمی */
.login-card {
    border: none;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.login-card .card-body {
    border-radius: 15px;
}

/* نوار ناوبری */
.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* کارت‌های آمار */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    border: none;
}

/* دکمه‌ها */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

/* فرم‌ها */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
}

/* جداول */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table thead th {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border: none;
    font-weight: 600;
}

.table tbody tr {
    transition: background-color 0.3s ease;
}

/* وضعیت‌ها */
.status-badge {
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-completed {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* انیمیشن‌های اضافی */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* انیمیشن اعلان‌ها */
.alert {
    transition: all 0.3s ease;
    animation: slideInFromTop 0.5s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    #toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast-notification {
        min-width: auto;
        max-width: none;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
}

/* اسکرول بار سفارشی - Removed to prevent conflicts */

/* تایپوگرافی */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #2c3e50;
}

.text-primary {
    color: #007bff !important;
}

.text-success {
    color: #28a745 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

/* لودینگ */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Filters */
.filters {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.filters .form-row {
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
}

.filters .form-group {
    flex: 1;
    min-width: 200px;
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .navbar ul {
        flex-direction: column;
    }
    
    .filters .form-row {
        flex-direction: column;
    }
    
    .filters .form-group {
        min-width: 100%;
    }
    
    .table {
        font-size: 12px;
    }
    
    .table th,
    .table td {
        padding: 8px;
    }
}

/* Custom checkbox styles */
.checkbox-group {
    display: flex;
    gap: 15px;
    margin: 10px 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification styles */
.notification {
    background: white;
    border-left: 4px solid #667eea;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.notification.unread {
    background: #f8f9ff;
    border-left-color: #ff6b6b;
}

.notification h6 {
    color: #333;
    margin-bottom: 5px;
}

.notification p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.notification .time {
    color: #999;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Excel-like table styling */
.excel-table {
    border: 1px solid #ddd;
    border-collapse: collapse;
    width: 100%;
    font-size: 16px;
}

.excel-table th,
.excel-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    background: white;
}

.excel-table th {
    background: #f0f0f0;
    font-weight: bold;
}

.excel-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

/* Form validation */
.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.valid-feedback {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Persian date picker styling */
.persian-date-input {
    direction: ltr;
    text-align: center;
}

/* Persian date picker dropdown styling */
.persian-date-picker-container {
    display: flex;
    gap: 5px;
    align-items: center;
    direction: rtl;
}

.persian-date-picker-container select {
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: initial !important;
    background-size: initial !important;
    padding-right: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.persian-date-picker-container select:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.25);
    outline: none;
}

.persian-year {
    width: 100px !important;
}

.persian-month {
    width: 120px !important;
}

.persian-day {
    width: 80px !important;
}

/* Clickable cards */
.clickable-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.clickable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.clickable-card:hover small {
    opacity: 1 !important;
}

/* Dropdown styling */
.dropdown-menu {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none !important;
    position: absolute;
    z-index: 1000;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 0.5rem 0;
}

.dropdown-menu.show {
    display: block !important;
    opacity: 1;
    visibility: visible;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
    text-decoration: none;
    display: block;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    text-decoration: none;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: block !important;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 500px;
}

.modal-content {
    background-color: white !important;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    z-index: 10000 !important;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem 0;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.modal-header h5 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid #dee2e6;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    gap: 0.5rem;
}

/* اطمینان از قابل نوشتن بودن فیلدها در modal */
.modal input.form-control:not([readonly]):not([disabled]),
.modal textarea.form-control:not([readonly]):not([disabled]),
.modal select.form-control:not([readonly]):not([disabled]) {
    pointer-events: auto !important;
    user-select: text !important;
    cursor: text !important;
    background-color: white !important;
    color: #2c3e50 !important;
    border: 2px solid #e9ecef !important;
    z-index: 10001 !important;
    position: relative !important;
    background-image: none !important;
}

.modal input.form-control:focus:not([readonly]):not([disabled]),
.modal textarea.form-control:focus:not([readonly]):not([disabled]),
.modal select.form-control:focus:not([readonly]):not([disabled]) {
    pointer-events: auto !important;
    user-select: text !important;
    cursor: text !important;
    background-color: white !important;
    color: #2c3e50 !important;
    border-color: #6c5ce7 !important;
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.15) !important;
    z-index: 10001 !important;
    position: relative !important;
}

/* کارت‌های قابل کلیک */
.clickable-card {
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.clickable-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.clickable-card:hover::before {
    opacity: 1;
}

.clickable-card:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.clickable-card h3,
.clickable-card p,
.clickable-card small {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.clickable-card:hover h3 {
    transform: scale(1.1);
}

.clickable-card:hover p {
    transform: translateX(5px);
}

.clickable-card:hover small {
    opacity: 1 !important;
    transform: translateX(5px);
}

/* Analytics Cards */
.analytics-card-total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
}

.analytics-card-approved {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
}

.analytics-card-pending {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
}

.analytics-card-rejected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Persian Date Picker */
.persian-date-picker {
    position: relative;
    display: inline-block;
    width: 100%;
}

.persian-date-input {
    cursor: pointer;
    background-color: white;
    direction: ltr;
    text-align: center;
}

.persian-calendar {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    padding: 10px;
    min-width: 250px;
    display: none;
}

.persian-calendar.show {
    display: block;
}

/* Persian Date Dropdowns */
.persian-date-dropdowns {
    display: flex;
    gap: 2px;
    align-items: center;
}

.persian-date-dropdowns select {
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 0.8rem;
    background-color: white;
    background-image: none !important;
}

.persian-date-dropdowns select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Add Target Page - Wider Container */
body.add-target-page .container,
body.add-target-page main.container {
    max-width: 95% !important;
    width: 95% !important;
    margin: 0 auto !important;
}

body.add-target-page .card {
    width: 100% !important;
    max-width: none !important;
    min-height: 80vh !important;
    height: auto !important;
}

body.add-target-page .card-body {
    min-height: 70vh !important;
    padding: 2rem !important;
}

body.add-target-page .table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
}

body.add-target-page .excel-table {
    min-width: 100% !important;
    width: 100% !important;
}

/* Table height for add target page */
body.add-target-page #targetsTable .table-responsive {
    max-height: 60vh !important;
    min-height: 50vh !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
}

body.add-target-page #targetsTable {
    min-height: 55vh !important;
    height: auto !important;
}

/* Custom scrollbar for targets table */
body.add-target-page #targetsTable .table-responsive::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

body.add-target-page #targetsTable .table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

body.add-target-page #targetsTable .table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

body.add-target-page #targetsTable .table-responsive::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

body.add-target-page #targetsTable .table-responsive::-webkit-scrollbar-corner {
    background: #f1f1f1;
}

/* Firefox scrollbar styles */
body.add-target-page #targetsTable .table-responsive {
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f1f1;
}

/* Additional spacing for add target page */
body.add-target-page .form-group {
    margin-bottom: 2rem !important;
}

body.add-target-page .btn-group {
    margin-top: 2rem !important;
    padding: 1rem 0 !important;
}

/* Smooth scrolling for targets table */
body.add-target-page #targetsTable .table-responsive {
    scroll-behavior: smooth !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Table container styling */
body.add-target-page #targetsTable {
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* User Selection Dropdown - Force visibility */
#user_id {
    background-color: white !important;
    color: black !important;
    border: 1px solid #ccc !important;
    font-size: 14px !important;
}

#user_id option {
    background-color: white !important;
    color: black !important;
    padding: 5px !important;
    font-size: 14px !important;
}

select#user_id {
    background-color: white !important;
    color: black !important;
}

select#user_id option {
    background-color: white !important;
    color: black !important;
}

/* Force input fields to be interactive */
.excel-table input:not([readonly]):not([disabled]),
.excel-table select:not([readonly]):not([disabled]),
.excel-table textarea:not([readonly]):not([disabled]) {
    pointer-events: auto !important;
    user-select: text !important;
    cursor: text !important;
    background-color: white !important;
    border: 1px solid #ccc !important;
    position: relative !important;
    z-index: 10 !important;
}

/* اطمینان از قابل نوشتن بودن فیلدها در همه جا */
input.form-control:not([readonly]):not([disabled]),
textarea.form-control:not([readonly]):not([disabled]),
select.form-control:not([readonly]):not([disabled]),
input.form-select:not([readonly]):not([disabled]),
select.form-select:not([readonly]):not([disabled]) {
    pointer-events: auto !important;
    user-select: text !important;
    cursor: text !important;
    background-color: white !important;
    color: #2c3e50 !important;
    border: 2px solid #e9ecef !important;
}

input.form-control:focus:not([readonly]):not([disabled]),
textarea.form-control:focus:not([readonly]):not([disabled]),
select.form-control:focus:not([readonly]):not([disabled]),
input.form-select:focus:not([readonly]):not([disabled]),
select.form-select:focus:not([readonly]):not([disabled]) {
    pointer-events: auto !important;
    user-select: text !important;
    cursor: text !important;
    background-color: white !important;
    color: #2c3e50 !important;
    border-color: #6c5ce7 !important;
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.15) !important;
}

.excel-table input[type="number"],
.excel-table input[type="text"] {
    pointer-events: auto !important;
    user-select: text !important;
    cursor: text !important;
    position: relative !important;
    z-index: 10 !important;
    background-color: white !important;
}

/* Override any conflicting styles */
.excel-table input,
.excel-table select,
.excel-table textarea {
    pointer-events: auto !important;
    user-select: text !important;
    cursor: text !important;
    background-color: white !important;
    border: 1px solid #ccc !important;
    position: relative !important;
    z-index: 10 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.excel-table select {
    cursor: pointer !important;
}

/* Custom Dropdown Styles */
.custom-dropdown .dropdown-display:hover {
    border-color: #0056b3 !important;
    background-color: #f8f9fa !important;
}

.custom-dropdown .dropdown-option:hover {
    background-color: #007bff !important;
    color: white !important;
}

.custom-dropdown .dropdown-option:last-child {
    border-bottom: none !important;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px;
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
}

.calendar-nav:hover {
    background-color: #f0f0f0;
}

.calendar-title {
    font-weight: bold;
    font-size: 14px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day-header {
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    padding: 5px;
    background-color: #f8f9fa;
}

.calendar-day {
    text-align: center;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
}

.calendar-day:hover {
    background-color: #e3f2fd;
}

.calendar-day.selected {
    background-color: #2196f3;
    color: white;
}

.calendar-day.other-month {
    color: #ccc;
}

.table-responsive {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 70vh;
    position: relative;
}

/* Table scrollbar - Removed to prevent blue horizontal bar */

/* استایل‌های پیشرفته - بخش اول */
/* فاصله 10 پیکسل از راست و چپ صفحه */
.container-fluid {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

@media (max-width: 768px) {
    .container-fluid {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    .container {
        padding: 0 5px !important;
    }
    
    /* بهبود جدول برای موبایل */
    .table-responsive {
        font-size: 0.8rem;
        max-height: 60vh;
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        position: relative;
    }
    
    .table {
        min-width: 800px; /* حداقل عرض برای جدول */
        margin-bottom: 0;
    }
    
    /* اسکرول بار سفارشی برای موبایل */
    .table-responsive::-webkit-scrollbar {
        height: 8px;
        width: 8px;
    }
    
    .table-responsive::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .table-responsive::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }
    
    .table-responsive::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.3rem;
        white-space: nowrap;
        font-size: 0.8rem;
    }
    
    /* دکمه‌های کوچک‌تر برای موبایل */
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    /* کارت‌ها برای موبایل */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    /* هدر برای موبایل */
    .card-header {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* نوار ناوبری برای موبایل */
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    /* بهبود برای صفحات کوچک‌تر */
    @media (max-width: 480px) {
        .table-responsive {
            font-size: 0.7rem;
            max-height: 50vh;
            min-width: 100%;
        }
        
        .table {
            min-width: 900px; /* عرض بیشتر برای موبایل */
        }
        
        .table th,
        .table td {
            padding: 0.3rem 0.2rem;
            font-size: 0.7rem;
        }
        
        .btn-sm {
            padding: 0.2rem 0.4rem;
            font-size: 0.7rem;
        }
        
        .card-body {
            padding: 0.5rem;
        }
        
        .card-header {
            padding: 0.5rem;
            font-size: 0.8rem;
        }
        
        /* اسکرول بار بهتر برای موبایل */
        .table-responsive::-webkit-scrollbar {
            height: 12px;
            width: 12px;
        }
        
        .table-responsive::-webkit-scrollbar-thumb {
            background: #007bff;
            border-radius: 6px;
        }
    }
}
    
    main.container {
        padding: 15px 8px !important;
    }
}

/* استایل‌های section header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-bottom: 2px solid #e9ecef;
}

.section-title {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.section-subtitle {
    margin: 0.5rem 0 0 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.section-actions {
    margin-top: 0.5rem;
}

/* استایل‌های اعلان‌ها پیشرفته */
.notifications-list {
    max-height: none;
    overflow-y: visible;
}

/* Fix for dropdown overflow issues - Complete Solution */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Fix all containers to allow dropdown overflow */
.container,
.container-fluid,
.row,
.col,
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-auto, .col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
.col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-auto,
.col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md-auto,
.col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
.col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-auto {
    overflow: visible !important;
}

/* Fix cards and modals */
.card,
.card-body,
.modal,
.modal-dialog,
.modal-content,
.modal-body {
    overflow: visible !important;
}

/* Fix form elements */
.form-group {
    position: relative;
    z-index: 1;
    overflow: visible !important;
}

.form-group select {
    position: relative;
    z-index: 10;
    overflow: visible !important;
}

/* Ensure dropdown options are fully visible */
select {
    overflow: visible !important;
}

select option {
    background: white !important;
    color: #333 !important;
    padding: 8px 12px !important;
    border: none !important;
    display: block !important;
    width: 100% !important;
    z-index: 9999 !important;
    position: relative !important;
    height: auto !important;
    min-height: 35px !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

/* Fix for Bootstrap dropdown issues */
.dropdown,
.dropdown-menu {
    overflow: visible !important;
    z-index: 9999 !important;
}

/* Fix for any hidden overflow */
main,
section,
article,
div,
span,
p {
    overflow: visible !important;
}

/* Specific fix for new user form page */
body:has(.container-fluid) .container-fluid,
body:has(.card) .card,
body:has(.form-group) .form-group {
    overflow: visible !important;
    position: relative !important;
}

/* Force dropdown visibility on new user page */
body:has([href*="admin/users/new"]) * {
    overflow: visible !important;
}

/* Emergency fix for all select elements */
select,
select *,
select option,
select option * {
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    visibility: visible !important;
    display: block !important;
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
}

.notification-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 15px;
    background: #fff;
    transition: all 0.3s ease;
}

.notification-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.notification-unread {
    border-left: 4px solid #ffc107;
    background: #fffbf0;
    color: #000000;
}

.notification-content {
    display: flex;
    flex-direction: column;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.notification-title {
    display: flex;
    align-items: center;
    flex: 1;
}

.notification-title h6 {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.notification-time {
    color: #6c757d;
    font-size: 0.875rem;
}

.notification-body {
    margin-bottom: 10px;
}

.notification-body p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

.notification-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-status .badge {
    font-size: 0.75rem;
}

.notification-actions .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* دکمه غیرفعال */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* نوار ناوبری مدرن */
.modern-navbar {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
}

.modern-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white !important;
    transition: all 0.3s ease;
}

.modern-brand:hover {
    transform: translateY(-2px);
    color: white !important;
}

.brand-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    color: white;
}

.brand-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(10deg);
    color: white;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 400;
}

.modern-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9) !important;
    position: relative;
    overflow: hidden;
    font-weight: 600;
}

.modern-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.modern-nav-link:hover::before {
    left: 100%;
}

.modern-nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    transform: translateY(-2px);
}

.logout-nav-link:hover {
    background: rgba(220, 53, 69, 0.8) !important;
    color: white !important;
    transform: translateY(-2px);
}

.modern-nav-link i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.modern-nav-link:hover i {
    transform: scale(1.1);
}

/* استایل اعلان‌ها */
/* استایل‌های اعلان منتقل شده به انتهای فایل */

/* استایل کاربر */
.user-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    color: white;
}

.user-link:hover .user-avatar {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    color: white;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
}

.user-role {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* منوی کشویی مدرن */
.modern-dropdown {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 200px;
}

.modern-dropdown-item {
    padding: 0.7rem 1rem;
    color: #495057;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    display: block;
}

.modern-dropdown-item:hover {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    text-decoration: none;
}

.modern-dropdown-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    margin: 0 0.5rem 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.logout-item:hover {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24) !important;
    color: white !important;
}

/* Fix admin dropdown button shadow and positioning - Enhanced */
.navbar .nav-link.dropdown-toggle {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    text-shadow: none !important;
    filter: none !important;
}

.navbar .nav-link.dropdown-toggle:focus {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    text-shadow: none !important;
    filter: none !important;
}

.navbar .nav-link.dropdown-toggle:active {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    text-shadow: none !important;
    filter: none !important;
}

.navbar .nav-link.dropdown-toggle:hover {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    text-shadow: none !important;
    filter: none !important;
}

/* Ensure consistent appearance across all superadmin pages */
.navbar .nav-link.dropdown-toggle.active {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    text-shadow: none !important;
    filter: none !important;
}

/* Additional specificity for Bootstrap overrides */
.navbar-nav .nav-link.dropdown-toggle {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    text-shadow: none !important;
    filter: none !important;
}

.navbar-nav .nav-link.dropdown-toggle:focus,
.navbar-nav .nav-link.dropdown-toggle:active,
.navbar-nav .nav-link.dropdown-toggle:hover,
.navbar-nav .nav-link.dropdown-toggle.active {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    text-shadow: none !important;
    filter: none !important;
}

/* Fix dropdown positioning to appear directly under the button */
.navbar .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    margin-top: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    background: white !important;
    z-index: 1000 !important;
    min-width: 200px !important;
}

/* Fix dropdown arrow positioning */
.navbar .nav-link.dropdown-toggle::after {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
    vertical-align: middle !important;
}

/* Ensure dropdown items have proper styling */
.navbar .dropdown-menu .dropdown-item {
    padding: 0.75rem 1rem !important;
    color: #495057 !important;
    transition: all 0.3s ease !important;
    border-radius: 0 !important;
}

.navbar .dropdown-menu .dropdown-item:hover {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe) !important;
    color: white !important;
}

.navbar .dropdown-menu .dropdown-divider {
    margin: 0.5rem 0 !important;
    border-color: #e9ecef !important;
}

/* Additional overrides for complete shadow removal */
.navbar .nav-link.dropdown-toggle,
.navbar-nav .nav-link.dropdown-toggle,
.navbar .nav-item .nav-link.dropdown-toggle {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

/* Override any Bootstrap button styles */
.navbar .nav-link.dropdown-toggle.btn,
.navbar .nav-link.dropdown-toggle[role="button"] {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

/* Ensure consistent styling across all states */
.navbar .nav-link.dropdown-toggle:focus,
.navbar .nav-link.dropdown-toggle:active,
.navbar .nav-link.dropdown-toggle:hover,
.navbar .nav-link.dropdown-toggle.active,
.navbar-nav .nav-link.dropdown-toggle:focus,
.navbar-nav .nav-link.dropdown-toggle:active,
.navbar-nav .nav-link.dropdown-toggle:hover,
.navbar-nav .nav-link.dropdown-toggle.active {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

/* Specific fix for admin users page */
body:has([href*="admin/users"]) .navbar .nav-link.dropdown-toggle,
body:has([href*="admin/users"]) .navbar-nav .nav-link.dropdown-toggle,
body:has([href*="admin/users"]) .navbar .nav-item .nav-link.dropdown-toggle {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

body:has([href*="admin/users"]) .navbar .nav-link.dropdown-toggle:focus,
body:has([href*="admin/users"]) .navbar .nav-link.dropdown-toggle:active,
body:has([href*="admin/users"]) .navbar .nav-link.dropdown-toggle:hover,
body:has([href*="admin/users"]) .navbar .nav-link.dropdown-toggle.active {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

/* Alternative approach - target by URL pattern */
[href*="admin/users"] ~ .navbar .nav-link.dropdown-toggle,
.navbar:has([href*="admin/users"]) .nav-link.dropdown-toggle {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

/* Force shadow removal with maximum specificity */
html body .navbar .nav-link.dropdown-toggle,
html body .navbar-nav .nav-link.dropdown-toggle,
html body .navbar .nav-item .nav-link.dropdown-toggle {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

/* فوتر مدرن */
.modern-footer {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    color: #ddd;
    padding: 3rem 0 1rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.footer-brand {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand i {
    color: #6c5ce7;
    font-size: 1.5rem;
}

.footer-description {
    color: #b2bec3;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-links h6 {
    color: #ddd;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #b2bec3;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: #6c5ce7;
    transform: translateX(5px);
}

.footer-divider {
    border-color: #636e72;
    margin: 2rem 0 1rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-tech {
    color: #2d3436;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-tech i {
    animation: heartbeat 1.5s ease-in-out infinite;
}

/* عنوان ساده داشبورد */
.dashboard-title-simple {
    color: #495057;
    font-weight: 700;
    font-size: 2.5rem;
    margin: 0;
    padding: 1rem 0;
    border-bottom: 3px solid #6c5ce7;
    display: flex;
    align-items: center;
}

.dashboard-title-simple i {
    color: #6c5ce7;
    font-size: 2rem;
}

/* دکمه خروج در هدر */
.btn-outline-danger {
    border: 2px solid #dc3545;
    color: #dc3545;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

/* استایل دکمه خروج در navbar */
.logout-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.5rem 1rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    margin-left: 0.5rem !important;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #ee5a24, #ff6b6b) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(238, 90, 36, 0.4) !important;
    text-decoration: none !important;
}

.logout-btn i {
    font-size: 0.9rem !important;
}

/* استایل آیکون اعلان‌ها در navbar */
.notification-link {
    padding: 0.5rem 0.75rem !important;
    margin-left: 0.5rem !important;
    background: none !important;
    border: none !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.notification-link:hover {
    background: none !important;
    transform: scale(1.1) !important;
    text-decoration: none !important;
}

.notification-link:focus {
    outline: none !important;
    box-shadow: none !important;
}

.notification-icon {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.notification-icon i {
    color: #6c5ce7 !important;
    font-size: 1.4rem !important;
    transition: all 0.3s ease !important;
}

.notification-link:hover .notification-icon i {
    color: #a29bfe !important;
}

.notification-badge {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24) !important;
    color: white !important;
    border-radius: 50% !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 4px !important;
    font-size: 0.65rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-align: center !important;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.5) !important;
    animation: pulse 2s ease-in-out infinite !important;
    border: 2px solid white !important;
    z-index: 10 !important;
    box-sizing: border-box !important;
}

/* انیمیشن pulse برای badge */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.5);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 2px 12px rgba(255, 107, 107, 0.7);
    }
}

/* اطمینان از عدم اعمال استایل‌های Bootstrap */
.navbar-nav .nav-item .nav-link.notification-link {
    padding: 0.5rem 0.75rem !important;
}

.navbar-nav .nav-item .nav-link.notification-link:before,
.navbar-nav .nav-item .nav-link.notification-link:after {
    display: none !important;
}

/* رنگ‌های مختلف برای کارت‌های مدیریت */
.users-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

.reports-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: white !important;
}

.analytics-card {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    color: white !important;
}

.provinces-card {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important;
    color: white !important;
}

.branches-card {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
    color: white !important;
}

.axes-card {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%) !important;
    color: #333 !important;
}

/* دکمه‌های رنگی */
.btn-users {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
}

.btn-reports {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
}

.btn-analytics {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
}

.btn-provinces {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
}

.btn-branches {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
}

.btn-axes {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%) !important;
    border: none !important;
    color: #333 !important;
    font-weight: 600 !important;
}

/* دکمه‌های عملیات بزرگتر */
.btn-group .btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin: 0.25rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

/* استایل‌های btn-group */
.btn-group {
    background-clip: unset;
    -webkit-background-clip: unset;
    color: rgba(0, 0, 0, 1);
    background-color: rgba(255, 255, 255, 1);
}

.btn-sm {
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem !important;
}

.btn-xs {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.8rem !important;
}

/* دکمه‌های عملیات در جداول */
.table .btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem !important;
    margin: 0.125rem !important;
    border-radius: 6px !important;
}

/* دکمه‌های عملیات در صفحات تنظیمات */
.settings-actions .btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin: 0.5rem !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.settings-actions .btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* بهبود عملکرد - استفاده از GPU */
.card, .btn, .stat-card, .dashboard-card {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* بهینه‌سازی انیمیشن‌ها */
* {
    will-change: auto;
}

.card:hover, .btn:hover, .stat-card:hover, .dashboard-card:hover {
    will-change: transform;
}

/* بهبود رندر کردن */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* کارت‌های آماری قابل کلیک */
.stat-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

/* کارت‌های مدرن */
.modern-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #e17055;
}

.modern-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e17055, #fdcb6e);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.header-text h5 {
    font-weight: 700;
    color: #495057;
    margin: 0;
}

.card-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0.25rem 0 0;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

/* دکمه‌های عملیات سریع */
.quick-action-btn {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.quick-action-btn:hover::before {
    left: 100%;
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

.primary-btn {
    background: linear-gradient(135deg, #e17055 0%, #fdcb6e 100%);
    color: white;
    border: none;
}

.secondary-btn {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    border: none;
}

.success-btn {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border: none;
}

.btn-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-left: 1rem;
    color: white;
}

.btn-content {
    flex: 1;
}

.btn-content h6 {
    font-weight: 700;
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.btn-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.btn-arrow {
    font-size: 1.2rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.quick-action-btn:hover .btn-arrow {
    transform: translateX(-5px);
    opacity: 1;
}

/* Admin Dashboard Cards - Unique Colors with Border */
.admin-card-users {
    background: white;
    border: 3px solid #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.admin-card-users:hover {
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.25);
    transform: translateY(-8px);
    border-color: #764ba2;
}

.admin-card-users i {
    color: #667eea !important;
}

.admin-card-users h5 {
    color: #2c3e50 !important;
}

.admin-card-users p {
    color: #6c757d !important;
}

.admin-card-users .btn-light {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
    border: none;
}

.admin-card-users .btn-light:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.05);
}

.admin-card-reports {
    background: white;
    border: 3px solid #f093fb;
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.15);
}

.admin-card-reports:hover {
    box-shadow: 0 12px 35px rgba(240, 147, 251, 0.25);
    transform: translateY(-8px);
    border-color: #f5576c;
}

.admin-card-reports i {
    color: #f093fb !important;
}

.admin-card-reports h5 {
    color: #2c3e50 !important;
}

.admin-card-reports p {
    color: #6c757d !important;
}

.admin-card-reports .btn-light {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-weight: 700;
    border: none;
}

.admin-card-reports .btn-light:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    transform: scale(1.05);
}

.admin-card-analytics {
    background: white;
    border: 3px solid #4facfe;
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.15);
}

.admin-card-analytics:hover {
    box-shadow: 0 12px 35px rgba(79, 172, 254, 0.25);
    transform: translateY(-8px);
    border-color: #00f2fe;
}

.admin-card-analytics i {
    color: #4facfe !important;
}

.admin-card-analytics h5 {
    color: #2c3e50 !important;
}

.admin-card-analytics p {
    color: #6c757d !important;
}

.admin-card-analytics .btn-light {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    font-weight: 700;
    border: none;
}

.admin-card-analytics .btn-light:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    transform: scale(1.05);
}

.admin-card-provinces {
    background: white;
    border: 3px solid #43e97b;
    box-shadow: 0 8px 25px rgba(67, 233, 123, 0.15);
}

.admin-card-provinces:hover {
    box-shadow: 0 12px 35px rgba(67, 233, 123, 0.25);
    transform: translateY(-8px);
    border-color: #38f9d7;
}

.admin-card-provinces i {
    color: #43e97b !important;
}

.admin-card-provinces h5 {
    color: #2c3e50 !important;
}

.admin-card-provinces p {
    color: #6c757d !important;
}

.admin-card-provinces .btn-light {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    font-weight: 700;
    border: none;
}

.admin-card-provinces .btn-light:hover {
    background: linear-gradient(135deg, #38f9d7 0%, #43e97b 100%);
    transform: scale(1.05);
}

.admin-card-branches {
    background: white;
    border: 3px solid #f472b6;
    box-shadow: 0 8px 25px rgba(244, 114, 182, 0.15);
}

.admin-card-branches:hover {
    box-shadow: 0 12px 35px rgba(244, 114, 182, 0.25);
    transform: translateY(-8px);
    border-color: #ec4899;
}

.admin-card-branches i {
    color: #f472b6 !important;
}

.admin-card-branches h5 {
    color: #2c3e50 !important;
}

.admin-card-branches p {
    color: #6c757d !important;
}

.admin-card-branches .btn-light {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 50%, #db2777 100%);
    color: white;
    font-weight: 700;
    border: none;
}

.admin-card-branches .btn-light:hover {
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 50%, #db2777 100%);
    transform: scale(1.05);
}

.admin-card-axes {
    background: white;
    border: 3px solid #30cfd0;
    box-shadow: 0 8px 25px rgba(48, 207, 208, 0.15);
}

.admin-card-axes:hover {
    box-shadow: 0 12px 35px rgba(48, 207, 208, 0.25);
    transform: translateY(-8px);
    border-color: #5f27cd;
}

.admin-card-axes i {
    color: #30cfd0 !important;
}

.admin-card-axes h5 {
    color: #2c3e50 !important;
}

.admin-card-axes p {
    color: #6c757d !important;
}

.admin-card-axes .btn-light {
    background: linear-gradient(135deg, #30cfd0 0%, #5f27cd 100%);
    color: white;
    font-weight: 700;
    border: none;
}

.admin-card-axes .btn-light:hover {
    background: linear-gradient(135deg, #5f27cd 0%, #30cfd0 100%) !important;
    transform: scale(1.05);
}

.admin-card-targets {
    background: white;
    border: 3px solid #93c5fd;
    box-shadow: 0 8px 25px rgba(147, 197, 253, 0.15);
}

.admin-card-targets:hover {
    box-shadow: 0 12px 35px rgba(147, 197, 253, 0.25);
    transform: translateY(-8px);
    border-color: #86efac;
}

.admin-card-targets i {
    color: #93c5fd !important;
}

.admin-card-targets h5 {
    color: #2c3e50 !important;
}

.admin-card-targets p {
    color: #6c757d !important;
}

.admin-card-targets .btn-light {
    background: linear-gradient(135deg, #93c5fd 0%, #86efac 50%, #60a5fa 100%);
    color: white;
    font-weight: 700;
    border: none;
}

.admin-card-targets .btn-light:hover {
    background: linear-gradient(135deg, #86efac 0%, #93c5fd 50%, #60a5fa 100%);
    transform: scale(1.05);
}

/* استایل آیکون قلب در کارت وضعیت خیرها */
.dashboard-card .fa-heart {
    color: #f472b6 !important;
}

/* اطمینان از هم اندازه بودن کارت‌های مرکز هزینه و تارگت */
.row .col-md-6.col-lg-4:has(.admin-card-axes),
.row .col-md-6.col-lg-4:has(.admin-card-targets) {
    display: flex;
}

.row .col-md-6.col-lg-4:has(.admin-card-axes) .dashboard-card,
.row .col-md-6.col-lg-4:has(.admin-card-targets) .dashboard-card {
    width: 100%;
}

/* Print styles */
@media print {
    .navbar,
    .header,
    .btn,
    .filters {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .table {
        font-size: 10px;
    }
}

/* قوانین قدیمی پاک شده */

/* REMOVED - Using new scrollbar fix above */

/* Prevent zoom and pan issues */
body {
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
}

/* Allow text selection for content */
.main-content,
.card,
.form-control,
textarea,
input {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* Prevent layout jumps */
.container,
.container-fluid,
.row,
.col,
.col-md-*,
.col-lg-*,
.col-xl-*,
.col-sm-* {
    will-change: auto;
    contain: layout style;
}

/* Smooth transitions for dynamic content */
.fade-in {
    transition: opacity 0.3s ease-in-out;
}

/* Prevent automatic zoom on mobile */
input[type="text"],
input[type="email"], 
input[type="password"],
input[type="tel"],
input[type="number"],
textarea {
    font-size: 16px !important;
    transform: translateZ(0);
}

/* Fix scrollbar jumping - Single scrollbar solution */
.pagination,
.table-responsive,
.card-body {
    overflow-x: auto;
}

/* Prevent horizontal overflow */
.container,
.container-fluid {
    overflow-x: hidden;
    min-width: 0;
}

/* COMPLETE SCROLLBAR FIX - Remove all duplicate scrollbars */
/* قوانین قدیمی پاک شده */

body {
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide HTML scrollbar completely */
html::-webkit-scrollbar {
    display: none !important;
    width: 0px !important;
    height: 0px !important;
}

/* Show only body scrollbar */
body::-webkit-scrollbar {
    width: 8px !important;
    background: #f1f1f1 !important;
}

body::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 4px !important;
}

body::-webkit-scrollbar-thumb {
    background: #6c757d !important;
    border-radius: 4px !important;
}

body::-webkit-scrollbar-thumb:hover {
    background: #5a6268 !important;
}

/* Hide all other scrollbars */
*::-webkit-scrollbar {
    display: none !important;
    width: 0px !important;
    height: 0px !important;
}

/* Firefox scrollbar fix */
* {
    scrollbar-width: none !important;
}

body {
    scrollbar-width: thin !important;
    scrollbar-color: #6c757d #f1f1f1 !important;
}

/* Ensure main container doesn't create scrollbars */
main.container-fluid {
    overflow-x: hidden !important;
    overflow-y: visible !important;
    height: auto !important;
}

/* Hide all horizontal scrollbars */
*::-webkit-scrollbar:horizontal {
    display: none !important;
    height: 0px !important;
}

/* FINAL SCROLLBAR FIX - Override all previous settings */
/* قوانین قدیمی پاک شده */

html::-webkit-scrollbar {
    display: none !important;
    width: 0px !important;
    height: 0px !important;
}

/* قوانین قدیمی پاک شده */

body::-webkit-scrollbar {
    width: 8px !important;
    background: #f1f1f1 !important;
}

body::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
}

body::-webkit-scrollbar-thumb {
    background: #6c757d !important;
    border-radius: 4px !important;
}

/* Reverted footer to original state */

/* Reverted to previous state - Keep original scrollbar behavior */

/* Fix dropdown and modal issues */
.dropdown-menu,
.modal {
    position: fixed !important;
    z-index: 9999;
}

/* Smooth scrolling on mobile */
body {
    -webkit-overflow-scrolling: touch;
}

/* Force hardware acceleration for smooth scrolling */
.container,
.main-content {
    transform: translateZ(0);
    will-change: scroll-position;
}

/* Fix for scrollbar issues - Single scroll container - REMOVED TO PREVENT CONFLICTS */
    position: relative;
}

/* Prevent multiple scroll containers */
.main-container,
.container-fluid,
.container {
    overflow: visible !important;
    height: auto !important;
}

/* Ensure only body scrolls */
nav,
main,
footer {
    overflow: visible !important;
}

/* قوانین قدیمی پاک شده */

/* قوانین قدیمی پاک شده */

/* قوانین قدیمی پاک شده */

/* Special rules for login page */
body.login-page {
    overflow: hidden !important;
    height: 100vh !important;
    max-height: 100vh !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

body.login-page html {
    overflow: hidden !important;
    height: 100vh !important;
    max-height: 100vh !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

/* Login page specific fixes */
.login-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

.login-card {
    position: relative !important;
    z-index: 2 !important;
    max-width: 450px !important;
    width: 90% !important;
    margin: 0 auto !important;
}

/* Prevent any scrolling on login page */
body.login-page * {
    overflow: hidden !important;
}

body.login-page .login-container {
    overflow: visible !important;
}

body.login-page .login-card {
    overflow: visible !important;
}

/* Ensure no scrollbars appear */
body.login-page::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

body.login-page {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}


/* سیستم اسکرول کاملاً جدید و ساده */
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    line-height: 1.6;
    direction: rtl;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
}

main {
    padding: 0;
    margin: 0;
}

/* اسکرول بار زیبا */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* === Restore header icons visibility === */
.navbar .nav-link i,
.navbar-brand i,
.navbar .dropdown-toggle i {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Guard against accidental global icon hiding */
i.fa, i.fas, i.far, i.fab, [class^="fa-"], [class*=" fa-"] {
    display: inline-block;
}


