/* assets/css/style.css - نسخه مدرن و حرفه‌ای */
:root {
  /* رنگ‌های اصلی مدرن */
  --primary-color: #4361ee;
  --primary-dark: #3a56d4;
  --primary-light: #eef2ff;

  --secondary-color: #7209b7;
  --secondary-dark: #5a0892;
  --secondary-light: #f3e5f5;

  /* رنگ‌های وضعیت */
  --success-color: #06d6a0;
  --success-dark: #05b886;
  --success-light: #e8faf5;

  --warning-color: #ffd166;
  --warning-dark: #ffc043;
  --warning-light: #fff9e6;

  --danger-color: #ef476f;
  --danger-dark: #d43a5e;
  --danger-light: #fde8ed;

  --info-color: #118ab2;
  --info-dark: #0e7490;
  --info-light: #e0f2fe;

  /* رنگ‌های خنثی */
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  /* سایه‌ها و افکت‌ها */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

  /* انیمیشن‌ها */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;

  /* border-radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* فونت‌ها */
  --font-family:
    "Vazirmatn", "Vazir", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* ریست استایل‌ها */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: var(--gray-800);
  line-height: 1.7;
  direction: rtl;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* کانتینر اصلی */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* هدر */
.header {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  padding: 0;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: rgba(67, 97, 238, 0.95);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  transition: var(--transition-fast);
}

.logo:hover {
  transform: translateY(-2px);
}

.logo i {
  font-size: 1.8rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(5px);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 25px;
}

.user-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.user-name {
  font-weight: 600;
  font-size: 1rem;
}

.user-role {
  font-size: 0.85rem;
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-sm);
}

.logout-btn {
  background: var(--danger-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  font-weight: 500;
}

.logout-btn:hover {
  background: var(--danger-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* صفحه لاگین */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 30px 30px;
  animation: float 20s linear infinite;
  z-index: 0;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(30px, 30px);
  }
}

.login-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 480px;
  padding: 40px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-header h1 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.login-header p {
  color: var(--gray-600);
  font-size: 1.1rem;
}

.login-form .form-group {
  margin-bottom: 25px;
}

.login-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.95rem;
}

.login-form input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition-fast);
  background: white;
}

.login-form input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
  transform: translateY(-1px);
}

.login-info {
  margin-top: 30px;
  padding: 20px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--primary-light);
}

.login-info h4 {
  margin-bottom: 15px;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.login-info p {
  margin-bottom: 10px;
  color: var(--gray-700);
  font-size: 0.9rem;
}

/* دکمه‌ها */
.btn {
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(40, 40);
    opacity: 0;
  }
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--secondary-dark)
  );
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--gray-600);
  color: white;
}

.btn-secondary:hover {
  background: var(--gray-700);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color), var(--info-color));
  color: white;
}

.btn-success:hover {
  background: linear-gradient(135deg, var(--success-dark), var(--info-dark));
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger-color), #ff6b6b);
  color: white;
}

.btn-danger:hover {
  background: linear-gradient(135deg, var(--danger-dark), #ff5252);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning-color), #ffa726);
  color: var(--gray-800);
}

.btn-warning:hover {
  background: linear-gradient(135deg, var(--warning-dark), #ff9800);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-info {
  background: linear-gradient(135deg, var(--info-color), #29b6f6);
  color: white;
}

.btn-info:hover {
  background: linear-gradient(135deg, var(--info-dark), #0288d1);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

/* داشبورد */
.dashboard-header {
  background: white;
  padding: 30px;
  border-radius: var(--radius-lg);
  margin: 30px 0;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.dashboard-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.dashboard-header h1 {
  color: var(--gray-800);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.dashboard-header p {
  color: var(--gray-600);
  font-size: 1.1rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 25px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.stat-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  box-shadow: var(--shadow-md);
}

.stat-card:nth-child(2) .stat-icon {
  background: linear-gradient(135deg, var(--success-color), var(--info-color));
}

.stat-card:nth-child(3) .stat-icon {
  background: linear-gradient(135deg, var(--warning-color), #ffa726);
}

.stat-content h3 {
  font-size: 2.2rem;
  color: var(--gray-900);
  margin-bottom: 5px;
  font-weight: 700;
}

.stat-content p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.dashboard-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.action-btn {
  padding: 15px 25px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
  font-weight: 600;
  flex: 1;
  min-width: 200px;
  justify-content: center;
}

/* فرم‌ها */
.property-form,
.filter-form {
  background: white;
  padding: 35px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
  border: 1px solid var(--gray-200);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition-fast);
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
  transform: translateY(-1px);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group small {
  display: block;
  margin-top: 8px;
  color: var(--gray-500);
  font-size: 0.85rem;
}

/* چک‌باکس و رادیو */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 15px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.checkbox-label:hover {
  background: var(--gray-200);
  transform: translateY(-2px);
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-color);
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
}

.checkbox-inline input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-color);
}

/* فرم‌ها - بخش‌بندی */
.form-section {
  background: var(--light-color);
  padding: 25px;
  border-radius: var(--radius-lg);
  margin-bottom: 30px;
  border: 1px solid var(--gray-200);
  position: relative;
}

.form-section h3,
.form-section h4 {
  color: var(--primary-color);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.form-section h4 {
  font-size: 1.2rem;
}

/* جدول‌ها */
.table-responsive {
  overflow-x: auto;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
  border: 1px solid var(--gray-200);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th {
  /* background: linear-gradient(135deg, #3a56d4, #3a56d4); */
  background: #656565 !important;
  color: white;
  padding: 18px 15px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  position: sticky;
  top: 0;
}

/* .data-table th:first-child {
  border-top-right-radius: var(--radius-lg);
}

.data-table th:last-child {
  border-top-left-radius: var(--radius-lg);
} */

.data-table td {
  padding: 16px 15px;
  border-bottom: 1px solid var(--gray-200);
  text-align: center;
  vertical-align: middle;
  transition: var(--transition-fast);
}

.data-table tr:last-child td:first-child {
  border-bottom-right-radius: var(--radius-lg);
}

.data-table tr:last-child td:last-child {
  border-bottom-left-radius: var(--radius-lg);
}

.data-table tr:hover td {
  background: var(--primary-light);
  transform: scale(1.01);
}

/* بج‌ها */
.transaction-badge,
.property-badge {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  min-width: 80px;
}

.transaction-badge.sale {
  background: linear-gradient(135deg, var(--success-color), var(--info-color));
  color: white;
}

.transaction-badge.rent {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
}

.transaction-badge.mortgage {
  background: linear-gradient(135deg, var(--warning-color), #ffa726);
  color: white;
}

.property-badge.apartment {
  background: linear-gradient(135deg, #4361ee, #3a56d4);
  color: white;
}

.property-badge.villa {
  background: linear-gradient(135deg, #06d6a0, #05b886);
  color: white;
}

.property-badge.commercial {
  background: linear-gradient(135deg, #ffd166, #ffc043);
  color: var(--gray-800);
}

.property-badge.land {
  background: linear-gradient(135deg, #ef476f, #d43a5e);
  color: white;
}

/* بخش تلفن محافظت شده */
.phone-protected {
  color: var(--gray-600);
  background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
  padding: 8px 15px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: help;
  position: relative;
  transition: var(--transition-fast);
}

.phone-protected:hover {
  background: linear-gradient(135deg, var(--gray-300), var(--gray-400));
  transform: translateY(-2px);
}

.phone-protected::after {
  content: "شماره تماس فقط برای ثبت‌کننده و مدیر قابل مشاهده است";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-800);
  color: white;
  padding: 10px 15px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 10px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
}

.phone-protected:hover::after {
  opacity: 1;
  visibility: visible;
}

.phone-visible {
  color: var(--success-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background: var(--success-light);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.phone-visible:hover {
  background: var(--success-color);
  color: white;
  transform: translateY(-2px);
}

/* فیلترها */
.filters-section {
  background: white;
  padding: 35px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
  border: 1px solid var(--gray-200);
}

.filter-actions {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 25px;
  border-top: 2px solid var(--gray-200);
}

.filter-toggle {
  display: flex;
  gap: 15px;
  margin-right: auto;
}

/* صفحه خالی */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin: 40px 0;
  border: 1px solid var(--gray-200);
}

.empty-state i {
  font-size: 5rem;
  color: var(--gray-300);
  margin-bottom: 25px;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.empty-state p {
  font-size: 1.3rem;
  color: var(--gray-600);
  margin-bottom: 25px;
  font-weight: 500;
}

/* آلرت‌ها */
.alert {
  padding: 18px 25px;
  border-radius: var(--radius-md);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: none;
  box-shadow: var(--shadow-md);
}

.alert-error {
  background: linear-gradient(135deg, var(--danger-light), #ffeaea);
  color: var(--danger-dark);
  border-right: 4px solid var(--danger-color);
}

.alert-success {
  background: linear-gradient(135deg, var(--success-light), #e8faf5);
  color: var(--success-dark);
  border-right: 4px solid var(--success-color);
}

/* فوتر */
.footer {
  background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
  color: white;
  text-align: center;
  padding: 40px 0;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.footer p {
  color: var(--gray-300);
  font-size: 1rem;
}

/* صفحه هدر */
.page-header {
  background: white;
  padding: 30px;
  border-radius: var(--radius-lg);
  margin: 30px 0;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.page-header h1 {
  color: var(--gray-800);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-header p {
  color: var(--gray-600);
  font-size: 1.1rem;
}

/* کارت جزئیات فایل */
.file-detail-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 40px;
  margin-bottom: 40px;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.file-detail-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.file-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 25px;
  border-bottom: 2px solid var(--gray-200);
  flex-wrap: wrap;
  gap: 20px;
}

.file-header h2 {
  color: var(--gray-900);
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.4;
}

.file-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--gray-100), white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: var(--transition-fast);
}

.info-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.info-label {
  color: var(--gray-700);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.info-value {
  color: var(--gray-900);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: left;
  direction: ltr;
}

.file-description,
.file-address,
.file-amenities,
.file-attachment {
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--gray-200);
}

.file-description h3,
.file-address h3,
.file-amenities h3,
.file-attachment h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
}

.amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.amenity-badge {
  background: linear-gradient(135deg, var(--primary-light), #e0e7ff);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.amenity-badge:hover {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  transform: translateY(-3px);
}

.attachment-info {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(135deg, var(--gray-100), white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.attachment-info i {
  font-size: 2.5rem;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 15px;
  border-radius: var(--radius-md);
}

.attachment-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.file-name {
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--gray-800);
  font-size: 1.1rem;
}

.file-size {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.file-actions {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--gray-200);
  flex-wrap: wrap;
}

/* انیمیشن‌ها */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(-30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in {
  animation: slideIn 0.4s ease-out;
}

/* ریسپانسیو */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 15px;
  }

  .file-info-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 992px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .user-info {
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .user-details {
    align-items: center;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-actions {
    flex-direction: column;
  }

  .action-btn {
    min-width: 100%;
  }

  .filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-toggle {
    flex-direction: column;
    width: 100%;
    margin: 0;
  }

  .filter-toggle a {
    width: 100%;
    text-align: center;
  }

  .file-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .file-info-grid {
    grid-template-columns: 1fr;
  }

  .amenities-list {
    justify-content: center;
  }

  .file-actions {
    flex-direction: column;
  }

  .property-form,
  .filter-form,
  .filters-section {
    padding: 25px;
  }

  .data-table th,
  .data-table td {
    padding: 12px 8px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .login-container {
    padding: 30px 20px;
    margin: 20px;
  }

  .page-header,
  .dashboard-header,
  .file-detail-card {
    padding: 25px;
  }

  .stat-card {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .action-buttons {
    flex-direction: column;
    gap: 100px;
  }

  .attachment-info {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

/* اسکرول بار سفارشی */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--secondary-dark)
  );
}

/* افکت‌های اضافی */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
  transition: var(--transition-fast);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.shadow-hover {
  transition: var(--transition-fast);
}

.shadow-hover:hover {
  box-shadow: var(--shadow-xl);
}

/* لودینگ */
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* تایپوگرافی */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--gray-900);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* لیست‌ها */
ul,
ol {
  padding-right: 20px;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* لینک‌ها */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* ابزارک‌ها */
.tooltip {
  position: relative;
}

.tooltip:hover::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-800);
  color: white;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 8px;
}

/* پیش‌بارگذاری */
.preloader {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader .logo {
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
