/* ═══════════════════════════════════════════════════════
   SimRound Luxury Admin Panel - Clean V4.0
   White / Gold Premium Dashboard
   محل قرارگیری: assets/css/style.css
═══════════════════════════════════════════════════════ */

@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

/* ═══════════════════════════════════════════════════════
   01. Design Tokens
═══════════════════════════════════════════════════════ */

:root {
    --gold: #D4AF37;
    --gold-light: #F4E5C3;
    --gold-dark: #B8941F;

    --lux-bg-1: #fffdf8;
    --lux-bg-2: #fdf8ee;

    --white: #FFFFFF;
    --white-soft: #F8F9FA;
    --white-glass: rgba(255, 255, 255, 0.85);
    --glass: rgba(255, 255, 255, 0.88);

    --text: #1f2937;
    --text-dark: #111827;
    --text-soft: #374151;
    --muted: #6b7280;

    --border: rgba(212, 175, 55, 0.24);
    --white-border: rgba(212, 175, 55, 0.25);
    --lux-line: rgba(212, 175, 55, 0.20);
    --lux-line-strong: rgba(212, 175, 55, 0.34);

    --shadow: 0 8px 28px rgba(212, 175, 55, 0.12);
    --shadow-gold: 0 8px 32px rgba(212, 175, 55, 0.15);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --lux-shadow: 0 14px 40px rgba(212, 175, 55, 0.10);
    --lux-shadow-hover: 0 20px 50px rgba(212, 175, 55, 0.16);

    --radius-sm: 12px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
}

/* ═══════════════════════════════════════════════════════
   02. Base
═══════════════════════════════════════════════════════ */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    direction: rtl !important;
    font-family: 'Vazirmatn', sans-serif !important;
    color: var(--text) !important;
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, 0.10), transparent 22%),
        radial-gradient(circle at top left, rgba(244, 229, 195, 0.38), transparent 28%),
        linear-gradient(180deg, var(--lux-bg-1) 0%, #ffffff 50%, var(--lux-bg-2) 100%) !important;
}

body.dashboard-page {
    min-height: 100vh;
}

.container {
    width: min(1480px, calc(100% - 48px));
    margin: 0 auto;
}

.dashboard-main {
    padding: 28px 0 60px;
}

/* ═══════════════════════════════════════════════════════
   03. Header
═══════════════════════════════════════════════════════ */

.dashboard-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.72) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.06) !important;
}

.header-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px;
    width: 100%;
}

.header-right,
.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-left {
    margin-right: auto;
}

.logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px;
    color: var(--text-dark) !important;
    font-size: 18px;
    font-weight: 900 !important;
    white-space: nowrap;
}

.logo svg {
    width: 34px;
    height: 34px;
    color: var(--gold) !important;
    flex: 0 0 auto;
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.18));
}

.user-info {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid rgba(212, 175, 55, 0.18) !important;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.75)) !important;
    color: var(--text-soft);
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.06) !important;
}

.dashboard-header .btn {
    min-height: 40px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════
   04. Cards / Sections
═══════════════════════════════════════════════════════ */

.section-card,
.list-section-card,
#editForm,
.edit-form,
.edit-section,
.update-form {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82)) !important;
    border: 1px solid var(--lux-line) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--lux-shadow) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}

.section-card,
.list-section-card {
    padding: 28px !important;
    margin: 24px auto !important;
    max-width: 1400px !important;
}

.section-card {
    width: min(1180px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.section-card:has(.filter-form) {
    width: min(1320px, 100%) !important;
}

#editForm,
.edit-form,
.edit-section,
.update-form {
    padding: 24px !important;
    margin: 24px auto !important;
    max-width: 1400px !important;
}

.section-card::before,
.list-section-card::before,
#editForm::before,
.edit-form::before,
.edit-section::before,
.update-form::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), transparent);
    opacity: 0.95;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   05. Titles
═══════════════════════════════════════════════════════ */

.section-card h2,
.section-card h3,
.list-section-card h2,
.list-section-card h3,
.section-header h2 {
    position: relative;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    color: var(--text-dark) !important;
    font-size: 30px !important;
    font-weight: 900 !important;
    letter-spacing: -0.3px;
}

.section-card h2::after,
.list-section-card h2::after,
.section-header h2::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin-top: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.18);
}

.section-card > .section-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin-bottom: 0 !important;
}

.section-card > .section-header h2 {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    font-size: 28px !important;
}

/* ═══════════════════════════════════════════════════════
   06. Stats Cards
═══════════════════════════════════════════════════════ */

.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
    margin: 0 0 26px !important;
    width: 100%;
}

.stat-card,
.stats-card,
.dashboard-stat,
.summary-box {
    position: relative;
    min-height: 124px;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 16px;
    padding: 22px 24px !important;
    border: 1px solid rgba(212, 175, 55, 0.20) !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82)) !important;
    box-shadow: var(--lux-shadow) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    transition: all 0.28s ease !important;
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.85), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.34) !important;
    box-shadow: var(--lux-shadow-hover) !important;
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(212, 175, 55, 0.24);
    border-radius: 16px;
    color: var(--gold-dark);
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(244, 229, 195, 0.45)),
        linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(255, 255, 255, 0.95)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 8px 20px rgba(212, 175, 55, 0.12) !important;
}

.stat-icon svg {
    width: 30px;
    height: 30px;
}

.stat-card i,
.stats-card i,
.dashboard-stat i,
.summary-box i {
    font-size: 34px !important;
    color: var(--text) !important;
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.stat-content h3 {
    margin: 0;
    color: var(--text-soft);
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.stat-number {
    margin: 0;
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
    color: var(--text-dark);
    background: linear-gradient(180deg, #111827, #2f3a4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ═══════════════════════════════════════════════════════
   07. Forms
═══════════════════════════════════════════════════════ */

.form-row {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    margin-bottom: 1.8rem !important;
    direction: rtl !important;
}

.section-card input[type="text"],
.section-card input[type="number"],
.section-card input[type="date"],
.section-card select,
.section-card textarea,
.filter-form input,
.filter-form select,
.list-section-card input[type="text"],
.list-section-card select,
#editForm input,
#editForm select,
#editForm textarea,
.edit-form input,
.edit-form select,
.edit-form textarea,
.edit-section input,
.edit-section select,
.edit-section textarea,
.update-form input,
.update-form select,
.update-form textarea {
    width: 100% !important;
    height: 52px !important;
    padding: 0 16px !important;
    border: 1px solid rgba(212, 175, 55, 0.20) !important;
    border-radius: var(--radius-md) !important;
    background: linear-gradient(180deg, #ffffff, #fffdf9) !important;
    color: var(--text) !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: right !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 6px 18px rgba(212, 175, 55, 0.04) !important;
    transition: all 0.25s ease !important;
}

.section-card input[type="text"],
.section-card input[type="number"],
.section-card input[type="date"],
.section-card select,
.section-card textarea {
    max-width: 340px !important;
}

.section-card textarea,
#editForm textarea,
.edit-form textarea,
.edit-section textarea,
.update-form textarea {
    height: 90px !important;
    padding-top: 12px !important;
    resize: vertical !important;
}

.section-card input:hover,
.section-card select:hover,
.section-card textarea:hover,
.filter-form input:hover,
.filter-form select:hover,
#editForm input:hover,
#editForm select:hover,
#editForm textarea:hover,
.edit-form input:hover,
.edit-form select:hover,
.edit-form textarea:hover {
    border-color: rgba(212, 175, 55, 0.34) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 10px 24px rgba(212, 175, 55, 0.08) !important;
}

.section-card input:focus,
.section-card select:focus,
.section-card textarea:focus,
.filter-form input:focus,
.filter-form select:focus,
.list-section-card input:focus,
.list-section-card select:focus,
#editForm input:focus,
#editForm select:focus,
#editForm textarea:focus,
.edit-form input:focus,
.edit-form select:focus,
.edit-form textarea:focus {
    transform: translateY(-1px);
    border-color: var(--gold) !important;
    background: #ffffff !important;
    box-shadow:
        0 0 0 4px rgba(212, 175, 55, 0.12),
        0 12px 30px rgba(212, 175, 55, 0.10) !important;
}

.section-card input[placeholder*="09"],
.section-card input[name*="phone"],
.section-card input[id*="phone"] {
    direction: ltr !important;
    text-align: center !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    border: 2px solid rgba(212, 175, 55, 0.35) !important;
    background: #FFFDF9 !important;
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af !important;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════
   08. Filters
═══════════════════════════════════════════════════════ */

.list-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15) !important;
}

.filters-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 1rem !important;
    width: 100% !important;
    margin-bottom: 2rem !important;
}

.filters-wrapper input,
.filters-wrapper select {
    flex: 1 !important;
    min-width: 200px !important;
    height: 48px !important;
    padding: 0 1rem !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    border-radius: var(--radius-sm) !important;
    background-color: #FAFAFA !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 0.9rem !important;
    transition: all 0.3s !important;
}

.filters-wrapper input:focus,
.filters-wrapper select:focus {
    border-color: var(--gold) !important;
    background-color: #ffffff !important;
    outline: none !important;
}

.section-card .filter-form {
    width: 100%;
    margin: 22px 0 28px !important;
}

.filter-form {
    position: relative;
    padding: 18px;
    border: 1px dashed rgba(212, 175, 55, 0.18);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.40));
}

.filter-row {
    display: grid !important;
    grid-template-columns: minmax(260px, 1.5fr) minmax(170px, 0.8fr) minmax(170px, 0.8fr) auto auto;
    align-items: end !important;
    gap: 12px !important;
    width: 100% !important;
}

.filter-group {
    width: 100% !important;
    margin: 0 !important;
}

.filter-form input,
.filter-form select {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 16px !important;
    font-size: 14px !important;
}

.list-section-card input[type="text"],
.list-section-card select {
    height: 48px !important;
    max-width: 300px !important;
    padding: 0 14px !important;
    border-radius: 13px !important;
    background: #ffffff !important;
}

/* ═══════════════════════════════════════════════════════
   09. Buttons
═══════════════════════════════════════════════════════ */

button,
.btn,
input[type="submit"],
input[type="button"] {
    position: relative;
    overflow: hidden;
    height: 44px !important;
    padding: 0 18px !important;
    border: 1px solid rgba(17, 24, 39, 0.88) !important;
    border-radius: var(--radius-sm) !important;
    background: linear-gradient(180deg, #ffffff, #fdfcf8) !important;
    color: var(--text-dark) !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05) !important;
    transition: all 0.25s ease !important;
}

button::before,
.btn::before,
input[type="submit"]::before,
input[type="button"]::before {
    content: "";
    position: absolute;
    top: 0;
    right: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    transition: right 0.55s ease;
}

button:hover::before,
.btn:hover::before,
input[type="submit"]:hover::before,
input[type="button"]:hover::before {
    right: 120%;
}

button:hover,
.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(17, 24, 39, 0.08) !important;
}

.btn-search,
.btn-primary,
button[type="submit"] {
    height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0 2.5rem !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light)) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 12px 24px rgba(212, 175, 55, 0.24) !important;
}

.btn-search:hover,
.btn-primary:hover,
button[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 18px 30px rgba(212, 175, 55, 0.30) !important;
}

.btn-secondary,
.btn-light,
button[type="reset"] {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(17, 24, 39, 0.16) !important;
    color: var(--text-dark) !important;
}

.filter-form .btn {
    height: 48px !important;
    min-height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 20px !important;
    border-radius: var(--radius-md) !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

/* ═══════════════════════════════════════════════════════
   10. Table
═══════════════════════════════════════════════════════ */

.table-responsive {
    width: 100% !important;
    margin-top: 8px !important;
    overflow-x: auto !important;
}

table {
    border-collapse: collapse !important;
}

th,
td {
    padding: 8px 10px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 14px !important;
    text-align: right !important;
    vertical-align: middle !important;
}

.sim-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    text-align: right !important;
    direction: rtl !important;
}

.sim-table th {
    padding: 12px 16px !important;
    border: none !important;
    border-top: 1px solid rgba(212, 175, 55, 0.12) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12) !important;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.10), rgba(212, 175, 55, 0.04)) !important;
    color: #4b5563 !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    text-align: center !important;
    letter-spacing: -0.1px;
}

.sim-table th:first-child {
    border-radius: 0 12px 12px 0 !important;
}

.sim-table th:last-child {
    border-radius: 12px 0 0 12px !important;
}

.sim-table tr {
    transition: all 0.2s ease !important;
}

.sim-table td {
    padding: 14px 16px !important;
    border-top: 1px solid rgba(212, 175, 55, 0.08) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.90)) !important;
    color: #2D3748 !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    vertical-align: middle !important;
    transition: all 0.24s ease !important;
}

.sim-table td:first-child {
    border-right: 1px solid rgba(212, 175, 55, 0.08) !important;
    border-radius: 0 12px 12px 0 !important;
    font-weight: 800 !important;
}

.sim-table td:last-child {
    border-left: 1px solid rgba(212, 175, 55, 0.08) !important;
    border-radius: 12px 0 0 12px !important;
}

.sim-table tr:hover td {
    transform: translateY(-1px);
    border-color: rgba(212, 175, 55, 0.22) !important;
    background: linear-gradient(180deg, rgba(255, 251, 240, 0.95), rgba(255, 255, 255, 0.98)) !important;
}

.sim-table td:first-child,
.sim-table td:last-child {
    box-shadow: 0 8px 18px rgba(212, 175, 55, 0.03);
}

.sim-table td:nth-child(1),
.sim-table td:nth-child(2),
.sim-table td:nth-child(7),
.sim-table td:nth-child(8) {
    color: var(--text) !important;
    font-weight: 800 !important;
}

/* ═══════════════════════════════════════════════════════
   11. Status Badges
═══════════════════════════════════════════════════════ */

.status-badge,
.sim-status,
.badge-status {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.status-available,
.badge-available {
    background: rgba(16, 185, 129, 0.10) !important;
    color: #047857 !important;
    border-color: rgba(16, 185, 129, 0.18) !important;
}

.status-sold,
.badge-sold {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #b45309 !important;
    border-color: rgba(245, 158, 11, 0.18) !important;
}

/* ═══════════════════════════════════════════════════════
   12. Action Buttons
═══════════════════════════════════════════════════════ */

.action-btn {
    width: 38px !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 2px !important;
    border: 1px solid rgba(17, 24, 39, 0.10) !important;
    border-radius: var(--radius-sm) !important;
    background: linear-gradient(180deg, #ffffff, #fcfbf8) !important;
    cursor: pointer !important;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04) !important;
    transition: all 0.22s ease !important;
}

.action-btn:hover {
    transform: translateY(-2px) scale(1.03);
}

.action-btn.edit:hover {
    color: var(--gold-dark) !important;
    border-color: rgba(212, 175, 55, 0.34) !important;
    background: rgba(255, 248, 225, 0.92) !important;
    box-shadow: 0 12px 22px rgba(212, 175, 55, 0.12) !important;
}

.action-btn.delete:hover {
    color: #dc2626 !important;
    border-color: rgba(220, 38, 38, 0.22) !important;
    background: rgba(254, 242, 242, 0.95) !important;
    box-shadow: 0 12px 22px rgba(220, 38, 38, 0.08) !important;
}

/* ═══════════════════════════════════════════════════════
   13. Scroll Top / Scrollbar
═══════════════════════════════════════════════════════ */

.scroll-top,
#scrollTop,
.back-to-top {
    width: 52px !important;
    height: 52px !important;
    border: none !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold)) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(212, 175, 55, 0.28) !important;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f8f6f0;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.45), rgba(184, 138, 21, 0.75));
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.70), rgba(184, 138, 21, 0.95));
}

/* ═══════════════════════════════════════════════════════
   14. Responsive
═══════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
    .filter-row {
        grid-template-columns: 1fr 1fr !important;
    }

    .filter-form .btn {
        width: 100% !important;
    }
}

@media (max-width: 1024px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .container {
        width: min(100% - 28px, 1480px);
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .stat-card {
        min-height: 108px;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .header-left {
        width: 100%;
        margin-right: 0;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .section-card,
    .list-section-card,
    #editForm,
    .edit-form,
    .edit-section,
    .update-form {
        padding: 18px !important;
        margin: 16px !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
    }

    .section-card input[type="text"],
    .section-card input[type="number"],
    .section-card input[type="date"],
    .section-card select,
    .section-card textarea,
    #editForm input,
    #editForm select,
    #editForm textarea {
        max-width: 100% !important;
    }
}

@media (max-width: 640px) {
    .filter-row {
        grid-template-columns: 1fr !important;
    }

    .section-card > .section-header h2 {
        font-size: 22px !important;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 20px, 1480px);
    }

    .dashboard-header {
        padding: 10px 0;
    }

    .logo {
        font-size: 15px;
    }

    .logo svg {
        width: 28px;
        height: 28px;
    }

    .header-left {
        gap: 8px;
    }

    .user-info,
    .dashboard-header .btn {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 13px;
    }

    .dashboard-main {
        padding-top: 18px;
    }

    .stat-card {
        padding: 18px !important;
        border-radius: 16px !important;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .stat-number {
        font-size: 25px;
    }
}

/* ═══════════════════════════════════════════════════════
   15. Global Smooth Motion
═══════════════════════════════════════════════════════ */

.section-card,
.list-section-card,
.stat-card,
.action-btn,
button,
.btn,
.sim-table td,
input,
select,
textarea {
    transition: all 0.25s ease !important;
}
/* ═══════════════════════════════════════════════════════
   16. Login Page Fix / Luxury Centered Login
   محل قرارگیری: انتهای فایل assets/css/style.css
═══════════════════════════════════════════════════════ */

/* فقط صفحه ورود - برای اینکه داشبورد خراب نشود */
body:not(.dashboard-page) {
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
    direction: rtl !important;
    overflow-x: hidden !important;
    background:
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.16), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(244, 229, 195, 0.55), transparent 32%),
        radial-gradient(circle at 50% 90%, rgba(212, 175, 55, 0.10), transparent 34%),
        linear-gradient(135deg, #fffdf8 0%, #ffffff 46%, #fdf8ee 100%) !important;
}

/* کارت ورود - بیشتر کلاس‌های احتمالی را پوشش می‌دهد */
body:not(.dashboard-page) .login-container,
body:not(.dashboard-page) .login-box,
body:not(.dashboard-page) .login-card,
body:not(.dashboard-page) .auth-container,
body:not(.dashboard-page) .auth-box,
body:not(.dashboard-page) .auth-card,
body:not(.dashboard-page) .container {
    width: min(440px, 100%) !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    padding: 34px 32px 30px !important;
    border: 1px solid rgba(212, 175, 55, 0.24) !important;
    border-radius: 28px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)) !important;
    box-shadow:
        0 24px 70px rgba(212, 175, 55, 0.16),
        0 10px 30px rgba(17, 24, 39, 0.06) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
}

/* خط طلایی بالای کارت */
body:not(.dashboard-page) .login-container::before,
body:not(.dashboard-page) .login-box::before,
body:not(.dashboard-page) .login-card::before,
body:not(.dashboard-page) .auth-container::before,
body:not(.dashboard-page) .auth-box::before,
body:not(.dashboard-page) .auth-card::before,
body:not(.dashboard-page) .container::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, transparent, #D4AF37, #F4E5C3, transparent) !important;
}

/* اگر آیکن بالای فرم SVG یا i باشد */
body:not(.dashboard-page) svg,
body:not(.dashboard-page) .login-icon,
body:not(.dashboard-page) .auth-icon,
body:not(.dashboard-page) i {
    width: 46px !important;
    height: 46px !important;
    margin: 0 auto 16px !important;
    color: #111827 !important;
    display: block !important;
    filter: drop-shadow(0 8px 18px rgba(212, 175, 55, 0.18)) !important;
}

/* عنوان ورود */
body:not(.dashboard-page) h1,
body:not(.dashboard-page) h2,
body:not(.dashboard-page) h3 {
    margin: 0 0 8px !important;
    color: #111827 !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 28px !important;
    line-height: 1.35 !important;
    font-weight: 950 !important;
    letter-spacing: -0.6px !important;
    text-align: center !important;
    white-space: nowrap !important;
}

/* متن توضیح زیر عنوان */
body:not(.dashboard-page) p,
body:not(.dashboard-page) .subtitle,
body:not(.dashboard-page) .login-subtitle {
    margin: 0 0 26px !important;
    color: #6b7280 !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    text-align: center !important;
}

/* فرم */
body:not(.dashboard-page) form {
    width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    text-align: right !important;
}

/* لیبل‌ها */
body:not(.dashboard-page) label {
    display: block !important;
    margin: 0 0 6px !important;
    color: #374151 !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-align: right !important;
}

/* گروه فرم اگر وجود داشته باشد */
body:not(.dashboard-page) .form-group,
body:not(.dashboard-page) .input-group,
body:not(.dashboard-page) .field {
    width: 100% !important;
    margin: 0 !important;
    position: relative !important;
}

/* ورودی‌ها */
body:not(.dashboard-page) input[type="text"],
body:not(.dashboard-page) input[type="password"],
body:not(.dashboard-page) input[type="email"] {
    width: 100% !important;
    height: 52px !important;
    padding: 0 16px !important;
    border: 1px solid rgba(212, 175, 55, 0.24) !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #ffffff, #fffdf9) !important;
    color: #111827 !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-align: right !important;
    outline: none !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 8px 22px rgba(212, 175, 55, 0.06) !important;
    transition: all 0.25s ease !important;
}

/* فوکوس ورودی‌ها */
body:not(.dashboard-page) input[type="text"]:focus,
body:not(.dashboard-page) input[type="password"]:focus,
body:not(.dashboard-page) input[type="email"]:focus {
    border-color: #D4AF37 !important;
    background: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow:
        0 0 0 4px rgba(212, 175, 55, 0.13),
        0 14px 28px rgba(212, 175, 55, 0.10) !important;
}

/* placeholder */
body:not(.dashboard-page) input::placeholder {
    color: #9ca3af !important;
    font-weight: 500 !important;
}

/* جلوگیری از زرد/آبی شدن عجیب autofill مرورگر */
body:not(.dashboard-page) input:-webkit-autofill,
body:not(.dashboard-page) input:-webkit-autofill:hover,
body:not(.dashboard-page) input:-webkit-autofill:focus {
    -webkit-text-fill-color: #111827 !important;
    box-shadow: 0 0 0 1000px #fffdf9 inset !important;
    transition: background-color 9999s ease-in-out 0s !important;
}

/* دکمه ورود */
body:not(.dashboard-page) button,
body:not(.dashboard-page) input[type="submit"],
body:not(.dashboard-page) .btn,
body:not(.dashboard-page) .login-btn {
    width: 100% !important;
    height: 52px !important;
    margin-top: 8px !important;
    padding: 0 22px !important;
    border: none !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #B8941F, #D4AF37, #F4E5C3) !important;
    color: #ffffff !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    box-shadow:
        0 14px 30px rgba(212, 175, 55, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
    transition: all 0.25s ease !important;
}

/* هاور دکمه */
body:not(.dashboard-page) button:hover,
body:not(.dashboard-page) input[type="submit"]:hover,
body:not(.dashboard-page) .btn:hover,
body:not(.dashboard-page) .login-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow:
        0 20px 38px rgba(212, 175, 55, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.40) !important;
}

/* پیام خطا یا موفقیت */
body:not(.dashboard-page) .error,
body:not(.dashboard-page) .alert,
body:not(.dashboard-page) .message,
body:not(.dashboard-page) .login-error {
    width: 100% !important;
    margin: 0 0 16px !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    text-align: right !important;
}

body:not(.dashboard-page) .error,
body:not(.dashboard-page) .login-error {
    border: 1px solid rgba(220, 38, 38, 0.18) !important;
    background: rgba(254, 242, 242, 0.92) !important;
    color: #b91c1c !important;
}

body:not(.dashboard-page) .success {
    border: 1px solid rgba(16, 185, 129, 0.18) !important;
    background: rgba(236, 253, 245, 0.92) !important;
    color: #047857 !important;
}

/* اگر آیکن‌ها کنار input باعث به‌هم‌ریختگی شوند */
body:not(.dashboard-page) .input-icon {
    position: absolute !important;
    top: 50% !important;
    left: 14px !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    color: #6b7280 !important;
}

/* نسخه موبایل */
@media (max-width: 520px) {
    body:not(.dashboard-page) {
        padding: 16px !important;
        align-items: flex-start !important;
        padding-top: 54px !important;
    }

    body:not(.dashboard-page) .login-container,
    body:not(.dashboard-page) .login-box,
    body:not(.dashboard-page) .login-card,
    body:not(.dashboard-page) .auth-container,
    body:not(.dashboard-page) .auth-box,
    body:not(.dashboard-page) .auth-card,
    body:not(.dashboard-page) .container {
        padding: 28px 20px 24px !important;
        border-radius: 22px !important;
    }

    body:not(.dashboard-page) h1,
    body:not(.dashboard-page) h2,
    body:not(.dashboard-page) h3 {
        font-size: 23px !important;
        white-space: normal !important;
    }
}
/* ═══════════════════════════════════════════════════════
   Action Buttons Icons Fix / Edit & Delete Unified Style
   محل قرارگیری: انتهای فایل assets/css/style.css
═══════════════════════════════════════════════════════ */

.actions {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

.btn-icon {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    border: 1px solid rgba(212, 175, 55, 0.22) !important;
    background: rgba(255, 255, 255, 0.72) !important;
    color: #374151 !important;
    box-shadow:
        0 8px 20px rgba(17, 24, 39, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
    transition: all 0.22s ease !important;
}

.btn-icon svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    stroke: currentColor !important;
}

.btn-icon:hover {
    transform: translateY(-2px) !important;
}

/* دکمه ویرایش */
.btn-icon.btn-edit {
    color: #8a6a10 !important;
    background:
        linear-gradient(180deg, rgba(255, 252, 242, 0.96), rgba(255, 248, 224, 0.78)) !important;
    border-color: rgba(212, 175, 55, 0.34) !important;
}

.btn-icon.btn-edit:hover {
    color: #6f5408 !important;
    border-color: rgba(212, 175, 55, 0.58) !important;
    box-shadow:
        0 12px 28px rgba(212, 175, 55, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* دکمه حذف */
.btn-icon.btn-delete {
    color: #b42318 !important;
    background:
        linear-gradient(180deg, rgba(255, 251, 251, 0.96), rgba(254, 242, 242, 0.78)) !important;
    border-color: rgba(220, 38, 38, 0.20) !important;
}

.btn-icon.btn-delete:hover {
    color: #991b1b !important;
    border-color: rgba(220, 38, 38, 0.42) !important;
    box-shadow:
        0 12px 28px rgba(220, 38, 38, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* جلوگیری از استایل پیش‌فرض button */
button.btn-icon {
    font-family: inherit !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}
