/* ==================== تنظیمات کلی ==================== */
/* فونت Vazirmatn - Thin */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Thin.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

/* فونت Vazirmatn - ExtraLight */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-ExtraLight.woff2') format('woff2'),
         url('../fonts/Vazirmatn-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

/* فونت Vazirmatn - Light */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Light.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* فونت Vazirmatn - Regular */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* فونت Vazirmatn - Medium */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* فونت Vazirmatn - SemiBold */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2'),
         url('../fonts/Vazirmatn-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* فونت Vazirmatn - Bold */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* فونت Vazirmatn - ExtraBold */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2'),
         url('../fonts/Vazirmatn-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* فونت Vazirmatn - Black */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Black.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #3d9df6; /* آبی آسمانی */
    --primary-light: #7ac7ff;
    --primary-dark: #0075e2;
    --primary-gradient: linear-gradient(135deg, #3d9df6, #0075e2);
    --accent-color: #ff6a9b; /* صورتی */
    --accent-light: #ff97bb;
    --accent-dark: #e64980;
    --accent-gradient: linear-gradient(135deg, #ff6a9b, #e64980);
    --bg-color: #f0f5ff;
    --card-bg: #ffffff;
    --text-color: #2c3e50;
    --text-secondary: #596d80;
    --text-light: #7f8c98;
    --border-color: #e1e9f5;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --shadow-sm: 0 2px 10px rgba(61, 157, 246, 0.08);
    --shadow-md: 0 5px 25px rgba(61, 157, 246, 0.18);
    --shadow-lg: 0 10px 40px rgba(61, 157, 246, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    font-size: 16px;
    color: var(--text-color);
    background-color: var(--bg-color);
    direction: rtl;
    line-height: 1.6;
    height: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ==================== جعبه ورود ==================== */
.login-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.login-box {
    display: flex;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 600px;
}

.login-box-left {
    width: 45%;
    background: linear-gradient(135deg, #e4f0ff 0%, #ffffff 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.logo-section {
    text-align: center;
    position: relative;
    z-index: 2;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 20px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(61, 157, 246, 0.3);
}

.logo-icon i {
    font-size: 36px;
    color: #fff;
}

.logo-section h2 {
    color: var(--primary-dark);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.logo-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 280px;
    margin: 0 auto;
}

.decorative-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    z-index: 1;
}

.login-box-right {
    width: 55%;
    padding: 40px;
    background: var(--card-bg);
    display: flex;
    align-items: center;
}

.tabs-container {
    width: 100%;
}

/* ==================== تب‌ها ==================== */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    margin-right: 10px;
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.tab-content {
    padding: 20px 0;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

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

.form-title {
    margin-bottom: 30px;
    font-size: 1.4rem;
    color: var(--text-color);
    font-weight: bold;
}

/* ==================== فرم‌ها ==================== */
.form-group {
    margin-bottom: 24px;
}

.floating-input {
    position: relative;
    margin-bottom: 10px;
}

.floating-input input {
    width: 100%;
    padding: 15px 45px 15px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
    color: var(--text-color);
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

.floating-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(61, 157, 246, 0.1);
}

.floating-input label {
    position: absolute;
    top: 50%;
    right: 45px;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-light);
    pointer-events: none;
    transition: all 0.3s ease;
    font-weight: normal;
}

.floating-input input:focus + label,
.floating-input input:not(:placeholder-shown) + label {
    top: 0;
    right: 15px;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--primary-color);
    background-color: #fff;
    padding: 0 5px;
    font-weight: bold;
}

.icon-prefix {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.floating-input input:focus ~ .icon-prefix {
    color: var(--primary-color);
}

.floating-input input {
    padding-left: 40px; /* برای دکمه نمایش رمز عبور */
}

.floating-input input::placeholder {
    color: transparent;
}

.toggle-password {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.toggle-password:focus {
    outline: none;
}

.form-actions {
    margin-top: 30px;
}

/* ==================== دکمه‌ها ==================== */
.btn {
    display: inline-block;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    position: relative;
    overflow: hidden;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(61, 157, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(61, 157, 246, 0.4);
}

.btn-accent {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 106, 155, 0.3);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 106, 155, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn-animated {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-text {
    margin-left: 10px;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(-5px);
}

/* ==================== پیام‌ها ==================== */
.message-box {
    margin-top: 20px;
    padding: 0 10px;
    font-size: 0.9rem;
    min-height: 25px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.message-box.error {
    color: var(--error-color);
}

.message-box.success {
    color: var(--success-color);
}

/* ==================== Loading ==================== */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading .btn-text,
.btn-loading .btn-icon {
    opacity: 0;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    margin-top: -12px;
    margin-left: -12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ==================== ریسپانسیو ==================== */
@media screen and (max-width: 992px) {
    .login-box {
        flex-direction: column;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .login-box-left, 
    .login-box-right {
        width: 100%;
    }
    
    .login-box-left {
        padding: 30px;
        order: 1;
        min-height: auto;
    }

    .login-box-right {
        order: 2;
        padding: 30px;
    }

    .decorative-image {
        max-width: 250px;
        margin-top: 20px;
    }
    
    .logo-section h2 {
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 576px) {
    .page-wrapper {
        padding: 0;
    }
    
    .login-box {
        border-radius: 0;
        min-height: 100vh;
    }
    
    .login-box-left,
    .login-box-right {
        padding: 20px;
    }
    
    .form-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
    }
    
    .logo-icon i {
        font-size: 28px;
    }
}

/* ==================== افکت‌های ویژه ==================== */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.5s ease;
}

.btn:hover::before {
    transform: translateX(100%) skewX(-15deg);
}

/* برای افزودن زیبایی به فرم‌ها */
.floating-input input:focus {
    animation: pulse 1s ease;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(61, 157, 246, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(61, 157, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(61, 157, 246, 0); }
}

/* ایجاد سایه برای لوگو */
.logo-icon {
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 20px;
    z-index: -1;
    filter: blur(15px);
    opacity: 0.5;
    transform: scale(0.9);
}
/* ==================== استایل‌های داشبورد ==================== */

/* بدنه داشبورد */
.dashboard-body {
    background-color: #f0f5ff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.dashboard-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    width: 100%;
}

/* ==================== منوی کناری ==================== */
.sidebar {
    width: 280px;
    background: #ffffff;
    box-shadow: var(--shadow-md);
    height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 10px rgba(61, 157, 246, 0.2);
    margin-left: 12px;
}

.sidebar-header .logo-icon i {
    color: white;
    font-size: 18px;
}

.sidebar-header h2 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin: 0;
    flex: 1;
}

.sidebar-close-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
}

.user-info {
    padding: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

.user-avatar i {
    color: var(--primary-dark);
    font-size: 22px;
}

.user-details h3 {
    font-size: 1rem;
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.user-role {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover {
    background-color: rgba(61, 157, 246, 0.08);
    color: var(--primary-color);
}

.sidebar-nav a.active {
    background: linear-gradient(135deg, rgba(61, 157, 246, 0.15), rgba(0, 117, 226, 0.05));
    color: var(--primary-color);
    font-weight: bold;
}

.sidebar-nav a i {
    margin-left: 10px;
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.logout-item {
    margin-top: 30px !important;
}

.logout-item a {
    color: var(--error-color) !important;
}

.logout-item a:hover {
    background-color: rgba(231, 76, 60, 0.08) !important;
}

/* ==================== محتوای اصلی ==================== */
.main-content {
    flex: 1;
    margin-right: 280px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: scroll;
}

.main-header {
    background: #ffffff;
    padding: 15px 25px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-right {
    display: flex;
    align-items: center;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-color);
    cursor: pointer;
    margin-left: 15px;
    display: none;
}

.page-title {
    font-size: 1.4rem;
    margin: 0;
    color: var(--text-color);
}

.header-left {
    display: flex;
    align-items: center;
}

.date-display {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.date-display i {
    margin-left: 8px;
}

.content-wrapper {
    padding: 25px;
    flex: 1;
}

/* ==================== کارت‌ها ==================== */
.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    overflow: hidden;
}

.card-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.card-title i {
    margin-left: 10px;
    color: var(--primary-color);
}

.card-body {
    padding: 25px;
}

.card-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.02);
}

/* ==================== گرید ==================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col {
    padding-right: 15px;
    padding-left: 15px;
    flex: 1;
    min-width: 0;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* ==================== کارت آمار ==================== */
.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

.stat-icon.primary {
    background: linear-gradient(135deg, #3d9df6, #0075e2);
    box-shadow: 0 5px 15px rgba(61, 157, 246, 0.2);
}

.stat-icon.accent {
    background: linear-gradient(135deg, #ff6a9b, #e64980);
    box-shadow: 0 5px 15px rgba(255, 106, 155, 0.2);
}

.stat-icon.success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.2);
}

.stat-icon.warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.2);
}

.stat-icon i {
    font-size: 24px;
    color: white;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* ==================== جدول‌ها ==================== */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: rgba(0, 0, 0, 0.02);
    font-weight: bold;
    color: var(--text-color);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background-color: rgba(61, 157, 246, 0.03);
}

.action-btns {
    display: flex;
    gap: 8px;
}

/* ==================== دکمه‌ها و اکشن‌ها ==================== */
.dash-btn {
    padding: 8px 15px;
    border-radius: 8px;
    border: none;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.dash-btn i {
    margin-left: 8px;
}

.dash-btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.dash-btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 3px 8px rgba(61, 157, 246, 0.2);
}

.dash-btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(61, 157, 246, 0.3);
}

.dash-btn-accent {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 3px 8px rgba(255, 106, 155, 0.2);
}

.dash-btn-accent:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(255, 106, 155, 0.3);
}

.dash-btn-success {
    background-color: var(--success-color);
    color: white;
    box-shadow: 0 3px 8px rgba(46, 204, 113, 0.2);
}

.dash-btn-success:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(46, 204, 113, 0.3);
}

.dash-btn-danger {
    background-color: var(--error-color);
    color: white;
    box-shadow: 0 3px 8px rgba(231, 76, 60, 0.2);
}

.dash-btn-danger:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(231, 76, 60, 0.3);
}

.dash-btn-outline {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
}

.dash-btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ==================== فرم‌ها ==================== */
.form-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 25px;
}

.form-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.form-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.form-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-color);
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(61, 157, 246, 0.1);
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-color);
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 20px;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(61, 157, 246, 0.1);
}

.form-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.form-footer .dash-btn {
    margin-right: 10px;
}

.form-footer .dash-btn:first-child {
    margin-right: 0;
}

/* ==================== مودال ==================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.modal-backdrop.show .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--error-color);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.modal-footer .dash-btn {
    margin-right: 10px;
}

.modal-footer .dash-btn:first-child {
    margin-right: 0;
}

/* ==================== نمایش محصولات ==================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-img {
    height: 180px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 1rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: var(--text-color);
}

.product-actions {
    display: flex;
    justify-content: center;
}

/* ==================== هشدارها ==================== */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-right: 4px solid;
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.1);
    border-color: var(--success-color);
    color: #27ae60;
}

.alert-error {
    background-color: rgba(231, 76, 60, 0.1);
    border-color: var(--error-color);
    color: #c0392b;
}

.alert-warning {
    background-color: rgba(243, 156, 18, 0.1);
    border-color: #f39c12;
    color: #e67e22;
}

.alert-info {
    background-color: rgba(61, 157, 246, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-dark);
}
/* ==================== وضعیت‌ها ==================== */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
}

.badge-primary {
    background-color: rgba(61, 157, 246, 0.1);
    color: var(--primary-dark);
}

.badge-accent {
    background-color: rgba(255, 106, 155, 0.1);
    color: var(--accent-dark);
}

.badge-success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #27ae60;
}

.badge-warning {
    background-color: rgba(243, 156, 18, 0.1);
    color: #e67e22;
}

.badge-danger {
    background-color: rgba(231, 76, 60, 0.1);
    color: #c0392b;
}

/* ==================== پیجینیشن ==================== */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 25px 0 0 0;
    justify-content: center;
}

.pagination li {
    margin: 0 5px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination .active a {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .disabled a {
    color: var(--text-light);
    pointer-events: none;
}

/* ==================== لودینگ ==================== */
.loading {
    display: inline-block;
    width: 25px;
    height: 25px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

.loading-sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.loading-lg {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

/* ==================== همه چیز فرم ==================== */
.input-group {
    display: flex;
    position: relative;
}

.input-group .form-control:first-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0 15px;
    background-color: #f5f5f7;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-left: 10px;
}

.radio-group {
    display: flex;
    flex-direction: column;
}

.radio-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.radio-item input[type="radio"] {
    margin-left: 10px;
}

.form-control-file {
    background-color: #f5f5f7;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 5px;
}

.form-required {
    color: var(--error-color);
    margin-right: 3px;
}

/* ==================== کد رنگ ==================== */
.color-preview {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    vertical-align: middle;
    margin-left: 8px;
}

/* ==================== ریسپانسیو داشبورد ==================== */
@media screen and (max-width: 1199px) {
    .col-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media screen and (max-width: 991px) {
    .sidebar {
        transform: translateX(100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-right: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .sidebar-close-btn {
        display: block;
    }
    
    .col-4, .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media screen and (max-width: 767px) {
    .col-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .main-header {
        padding: 10px 15px;
    }
    
    .page-title {
        font-size: 1.2rem;
    }
    
    .content-wrapper {
        padding: 15px;
    }
    
    .card-body {
        padding: 15px;
    }
}

@media screen and (max-width: 575px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .form-footer {
        flex-direction: column;
    }
    
    .form-footer .dash-btn {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }
}

/* ==================== جواهر نگاشت برای محصولات ==================== */
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: var(--primary-color);
}

.color-option.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.size-option {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.size-option:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.size-option.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.part-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.part-option {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.part-option:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.part-option.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ==================== تعداد محصول ==================== */
.quantity-input {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 150px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: #f5f5f7;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background-color: var(--border-color);
}

.quantity-input input {
    flex: 1;
    text-align: center;
    border: none;
    font-size: 1rem;
    padding: 10px 0;
    width: 50px;
}

.quantity-input input:focus {
    outline: none;
}

/* ==================== لیست محصولات انتخاب شده ==================== */
.selected-products {
    margin-top: 20px;
}

.selected-product {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: white;
}

.selected-product-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    margin-left: 15px;
}

.selected-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.selected-product-info {
    flex: 1;
}

.selected-product-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.selected-product-details {
    font-size: 0.85rem;
    color: var(--text-light);
}

.selected-product-remove {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.selected-product-remove:hover {
    transform: scale(1.2);
}

/* ==================== نمودارها ==================== */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* ==================== نقطه اتصال اضافی داشبورد ==================== */
.dashboard-container.sidebar-collapsed .sidebar {
    width: 80px;
}

.dashboard-container.sidebar-collapsed .main-content {
    margin-right: 80px;
}

.dashboard-container.sidebar-collapsed .user-details, 
.dashboard-container.sidebar-collapsed .sidebar-nav a span {
    display: none;
}

.dashboard-container.sidebar-collapsed .sidebar-header h2 {
    display: none;
}

.dashboard-container.sidebar-collapsed .logo-icon {
    margin: 0 auto;
}

.dashboard-container.sidebar-collapsed .sidebar-nav a {
    justify-content: center;
    padding: 15px;
}

.dashboard-container.sidebar-collapsed .sidebar-nav a i {
    margin: 0;
    font-size: 1.3rem;
}

.dashboard-container.sidebar-collapsed .user-avatar {
    margin: 0 auto;
}

.dashboard-container.sidebar-collapsed .user-info {
    justify-content: center;
}

@media screen and (max-width: 991px) {
    .dashboard-container.sidebar-collapsed .sidebar {
        transform: translateX(100%);
    }
    
    .dashboard-container.sidebar-collapsed .main-content {
        margin-right: 0;
    }
}

/* ==================== دیواید ==================== */
.divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 25px 0;
}

.divider-text {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 25px 0;
}

.divider-text::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 1px;
    background-color: var(--border-color);
    z-index: 0;
}

.divider-text span {
    position: relative;
    background-color: white;
    padding: 0 15px;
    color: var(--text-light);
    font-size: 0.9rem;
    z-index: 1;
}

/* ==================== استایل انتخاب بخش‌ها با قیمت ==================== */
.part-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    background-color: #fff;
}

.part-option:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,123,255,0.2);
}

.part-option.selected {
    border-color: var(--primary-color);
    background-color: #e7f1ff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

.part-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.part-name {
    font-weight: 500;
    color: #333;
    font-size: 1rem;
}

.part-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    background-color: rgba(0,123,255,0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.part-option.selected .part-price {
    background-color: var(--primary-color);
    color: white;
}

/* استایل برای نمایش قیمت انتخاب شده */
.selected-part-price {
    margin-top: 15px;
    padding: 10px;
    background-color: #e7f1ff;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    text-align: center;
}

.selected-part-price .alert {
    margin: 0;
    background-color: transparent;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
}
.part-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
}

.part-option:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.part-option.selected {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.part-name {
    font-weight: bold;
    margin-bottom: 4px;
}

.part-price {
    font-size: 0.9em;
    color: #28a745;
    font-weight: 600;
}

/* ==================== استایل‌های جدول محصولات ==================== */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.data-table thead {
    background: linear-gradient(135deg, #91a5ff 0%, #00a1ff 100%);
    color: white;
}

.data-table thead th {
    padding: 15px;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
    border: none;
    color: white;
    position: relative;
}

.data-table thead th:first-child {
    border-top-right-radius: 8px;
}

.data-table thead th:last-child {
    border-top-left-radius: 8px;
}

.data-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.data-table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
    font-size: 14px;
}
