/* ==============================================
   GLOBAL STYLES - سامانه مدیریت قالی‌بافی
   فایل مشترک تمام صفحات
   ============================================== */

/* ===========================
   RESET & BASE
=========================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2c3e7a;
    --primary-light: #3d52a0;
    --primary-dark: #1e2d5e;
    --secondary: #c8a951;
    --secondary-light: #dcc474;
    --secondary-dark: #a88a35;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    --sidebar-bg: #1a1a2e;
    --sidebar-hover: #16213e;
    --sidebar-active: #0f3460;
    --body-bg: #f0f2f5;
    --card-bg: #ffffff;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-light: #b2bec3;
    --border-color: #e0e4e8;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --sidebar-width: 260px;
    --sidebar-collapsed: 70px;
    --topbar-height: 64px;
    --good: #27ae60;
    --good-bg: rgba(39, 174, 96, 0.08);
    --good-border: rgba(39, 174, 96, 0.25);
    --bad: #e74c3c;
    --bad-bg: rgba(231, 76, 60, 0.08);
    --bad-border: rgba(231, 76, 60, 0.25);
    --neutral: #636e72;
    --neutral-bg: rgba(99, 110, 114, 0.06);
    --neutral-border: rgba(99, 110, 114, 0.15);
    --perfect: #27ae60;
    --perfect-bg: rgba(39, 174, 96, 0.12)
}

body {
    font-family: 'Vazirmatn FD', 'Vazirmatn', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===========================
   SCROLLBAR
=========================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ===========================
   SIDEBAR
=========================== */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    color: #fff;
    z-index: 1050;
    transition: var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: var(--topbar-height);
    gap: 12px;
}

.sidebar-brand .brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.sidebar-brand .brand-text {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    transition: var(--transition);
}

.sidebar.collapsed .brand-text {
    opacity: 0;
    width: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 12px 0;
}

.sidebar-menu .menu-label {
    padding: 12px 24px 6px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    transition: var(--transition);
}

.sidebar.collapsed .menu-label {
    text-align: center;
    padding: 12px 8px 6px;
}

.sidebar.collapsed .menu-label span {
    display: none;
}

.sidebar-menu .menu-item {
    padding: 0 12px;
    margin: 2px 0;
}

.sidebar-menu .menu-link {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    gap: 12px;
    white-space: nowrap;
    position: relative;
}

.sidebar-menu .menu-link:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.sidebar-menu .menu-link.active {
    background: var(--sidebar-active);
    color: var(--secondary);
}

.sidebar-menu .menu-link .menu-icon {
    width: 22px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar-menu .menu-link .menu-text {
    font-size: 13.5px;
    font-weight: 500;
    overflow: hidden;
    transition: var(--transition);
}

.sidebar.collapsed .menu-link .menu-text {
    opacity: 0;
    width: 0;
}

.sidebar.collapsed .menu-link {
    justify-content: center;
    padding: 10px;
}

.sidebar-menu .menu-link .badge-menu {
    margin-right: auto;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.sidebar.collapsed .badge-menu {
    display: none;
}

/* ===========================
   MAIN LAYOUT
=========================== */
.main-wrapper {
    margin-right: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
}

.main-wrapper.sidebar-collapsed {
    margin-right: var(--sidebar-collapsed);
}

/* ===========================
   TOPBAR
=========================== */
.topbar {
    position: sticky;
    top: 0;
    height: var(--topbar-height);
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1040;
    box-shadow: var(--shadow-sm);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-toggle-sidebar {
    width: 38px;
    height: 38px;
    border: none;
    background: var(--body-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition);
}

.btn-toggle-sidebar:hover {
    background: var(--primary);
    color: #fff;
}

.topbar-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.topbar-search {
    position: relative;
}

.topbar-search input {
    width: 240px;
    padding: 8px 16px 8px 36px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-family: inherit;
    font-size: 13px;
    background: var(--body-bg);
    transition: var(--transition);
    outline: none;
}

.topbar-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44, 62, 122, 0.1);
    width: 300px;
}

.topbar-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 13px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 17px;
    transition: var(--transition);
    position: relative;
}

.topbar-btn:hover {
    background: var(--body-bg);
    color: var(--primary);
}

.topbar-btn .notif-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--card-bg);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.topbar-user:hover {
    background: var(--body-bg);
}

.topbar-user .user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.topbar-user .user-info {
    line-height: 1.3;
}

.topbar-user .user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.topbar-user .user-role {
    font-size: 11px;
    color: var(--text-secondary);
}

/* ===========================
   CONTENT AREA
=========================== */
.content-area {
    padding: 24px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.page-header .breadcrumb {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 4px 0 0;
}

.page-header .breadcrumb a {
    color: var(--primary);
}

/* ===========================
   STAT CARDS
=========================== */
.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.stat-card.card-primary::before {
    background: var(--primary);
}

.stat-card.card-success::before {
    background: var(--success);
}

.stat-card.card-warning::before {
    background: var(--warning);
}

.stat-card.card-secondary::before {
    background: var(--secondary);
}

.stat-card.card-danger::before {
    background: var(--danger);
}

.stat-card.card-info::before {
    background: var(--info);
}

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

.stat-card .stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stat-card.card-primary .stat-icon {
    background: rgba(44, 62, 122, 0.1);
    color: var(--primary);
}

.stat-card.card-success .stat-icon {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
}

.stat-card.card-warning .stat-icon {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning);
}

.stat-card.card-secondary .stat-icon {
    background: rgba(200, 169, 81, 0.1);
    color: var(--secondary);
}

.stat-card.card-danger .stat-icon {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.stat-card.card-info .stat-icon {
    background: rgba(52, 152, 219, 0.1);
    color: var(--info);
}

.stat-card .stat-trend {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
}

.stat-card .stat-trend.up {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
}

.stat-card .stat-trend.down {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ===========================
   CARD (Reusable)
=========================== */
.app-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.app-card:hover {
    box-shadow: var(--shadow-md);
}

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

.app-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.app-card-body {
    padding: 20px;
}

/* ===========================
   TABLE
=========================== */
.app-table {
    width: 100%;
    border-collapse: collapse;
}

.app-table thead th {
    background: var(--body-bg);
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: right;
    white-space: nowrap;
}

.app-table tbody td {
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.app-table tbody tr:hover {
    background: rgba(44, 62, 122, 0.02);
}

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

/* ===========================
   STATUS BADGES
=========================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-badge.active {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
}

.status-badge.active::before {
    background: var(--success);
}

.status-badge.pending {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning);
}

.status-badge.pending::before {
    background: var(--warning);
}

.status-badge.completed {
    background: rgba(44, 62, 122, 0.1);
    color: var(--primary);
}

.status-badge.completed::before {
    background: var(--primary);
}

.status-badge.inactive {
    background: rgba(178, 190, 195, 0.15);
    color: var(--text-secondary);
}

.status-badge.inactive::before {
    background: var(--text-secondary);
}

.status-badge.suspended {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.status-badge.suspended::before {
    background: var(--danger);
}

/* ===========================
   QUICK ACTIONS
=========================== */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-quick {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-quick:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-quick-primary {
    background: var(--primary);
    color: #fff;
}

.btn-quick-primary:hover {
    background: var(--primary-light);
}

.btn-quick-success {
    background: var(--success);
    color: #fff;
}

.btn-quick-success:hover {
    background: #2ecc71;
}

.btn-quick-secondary {
    background: var(--secondary);
    color: #fff;
}

.btn-quick-secondary:hover {
    background: var(--secondary-light);
}

.btn-quick-danger {
    background: var(--danger);
    color: #fff;
}

.btn-quick-danger:hover {
    background: #c0392b;
}

.btn-quick-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-quick-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* ===========================
   FLOATING FORM (Slide Panel)
=========================== */
.slide-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.slide-panel-overlay.show {
    opacity: 1;
    visibility: visible;
}

.slide-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 440px;
    max-width: 92vw;
    height: 100vh;               /* fallback برای مرورگرهای قدیمی */
    height: 100dvh;              /* مقدار اصلی برای مرورگرهای مدرن */
    background: var(--card-bg);
    z-index: 2001;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.slide-panel.show {
    transform: translateX(0);
}

.slide-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.slide-panel-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.slide-panel-close {
    width: 34px;
    height: 34px;
    border: none;
    background: var(--body-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.slide-panel-close:hover {
    background: var(--danger);
    color: #fff;
}

.slide-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.slide-panel-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-shrink: 0;
}

/* ===========================
   FORM ELEMENTS
=========================== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group label .required {
    color: var(--danger);
    margin-right: 2px;
}

.form-control-custom {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13.5px;
    color: var(--text-primary);
    background: var(--card-bg);
    transition: var(--transition);
    outline: none;
}

.form-control-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44, 62, 122, 0.1);
}

.form-control-custom::placeholder {
    color: var(--text-light);
}

.form-control-custom.is-invalid {
    border-color: var(--danger);
}

.form-control-custom.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.invalid-feedback {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
    display: none;
}

.form-control-custom.is-invalid~.invalid-feedback {
    display: block;
}

select.form-control-custom {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23636e72' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 32px;
}

textarea.form-control-custom {
    resize: vertical;
    min-height: 80px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: var(--primary);
    color: #fff;
}

.btn-submit:hover {
    background: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    color: var(--text-secondary);
}

.btn-cancel:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* ===========================
   TOAST NOTIFICATION
=========================== */
.toast-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    max-width: 400px;
    transform: translateX(-120%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 4px solid var(--primary);
}

.toast-item.show {
    transform: translateX(0);
}

.toast-item.success {
    border-right-color: var(--success);
}

.toast-item.error {
    border-right-color: var(--danger);
}

.toast-item.warning {
    border-right-color: var(--warning);
}

.toast-item .toast-icon {
    font-size: 18px;
}

.toast-item.success .toast-icon {
    color: var(--success);
}

.toast-item.error .toast-icon {
    color: var(--danger);
}

.toast-item.warning .toast-icon {
    color: var(--warning);
}

.toast-item .toast-message {
    font-size: 13px;
    font-weight: 500;
    flex: 1;
}

.toast-item .toast-close {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 14px;
    padding: 4px;
}

/* ===========================
   ACTIVITY ITEM
=========================== */
.activity-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.activity-icon.weaver {
    background: rgba(44, 62, 122, 0.1);
    color: var(--primary);
}

.activity-icon.carpet {
    background: rgba(200, 169, 81, 0.1);
    color: var(--secondary);
}

.activity-icon.finance {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
}

.activity-icon.report {
    background: rgba(52, 152, 219, 0.1);
    color: var(--info);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.activity-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.activity-time {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ===========================
   MOBILE OVERLAY
=========================== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1049;
}

/* ===========================
   CONFIRM MODAL (Global)
=========================== */
.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.confirm-modal {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    width: 400px;
    max-width: 90vw;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.confirm-modal-overlay.show .confirm-modal {
    transform: scale(1);
}

.confirm-modal-header {
    padding: 20px 24px 12px;
    text-align: center;
}

.confirm-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
}

.confirm-modal-icon.danger {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.confirm-modal-icon.warning {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning);
}

.confirm-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.confirm-modal-body {
    padding: 0 24px 20px;
    text-align: center;
}

.confirm-modal-body p {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin: 0;
}

.confirm-modal-footer {
    padding: 14px 24px;
    display: flex;
    gap: 10px;
    justify-content: center;
    border-top: 1px solid var(--border-color);
}

.btn-confirm-delete {
    padding: 9px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: var(--danger);
    color: #fff;
}

.btn-confirm-delete:hover {
    background: #c0392b;
}

.btn-confirm-cancel {
    padding: 9px 24px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    color: var(--text-secondary);
}

.btn-confirm-cancel:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* ===========================
   PERSIAN DIGITS (Font Feature)
   Vazirmatn ss02: ارقام لاتین → نمایش فارسی
   مقدار واقعی در DOM لاتین می‌ماند (ولیدیشن کار می‌کند)
   فقط رندر بصری تغییر می‌کند
=========================== */

/* اطمینان از اعمال روی عناصر فرم */
input,
select,
textarea,
button {
    font-feature-settings: "ss02" 1;
}

/* کلاس کمکی: نمایش ارقام لاتین (برای کدهای فنی، شماره پیگیری و ...) */
.latin-digits {
    font-feature-settings: "ss02" 0;
}

/* ===========================
   RESPONSIVE (Global)
=========================== */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(100%);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar-overlay.show {
        display: block;
    }

    .main-wrapper {
        margin-right: 0 !important;
    }

    .topbar-search {
        display: none;
    }

    .topbar-user .user-info {
        display: none;
    }
}

@media (max-width: 768px) {
    .content-area {
        padding: 16px;
    }

    .stat-card .stat-value {
        font-size: 22px;
    }

    .page-header h1 {
        font-size: 18px;
    }

    .quick-actions {
        flex-direction: column;
    }

    .btn-quick {
        justify-content: center;
    }

    .app-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 576px) {
    .content-area {
        padding: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .slide-panel {
        width: 100vw;
        max-width: 100vw;
    }
}