/* =======================
   🌐 پایه
======================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Vazirmatn', sans-serif;
  transition: background 0.4s ease, color 0.4s ease;
  font-size: 1rem; /* بزرگتر */
}
body.dark { background: #0e1014; color: #e5e7eb; }
body.light { background: #f8f9fa; color: #1f2937; }

/* =======================
   🔹 Header
======================= */
header {
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  background: rgba(20,24,30,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 64px; /* بزرگتر */
}
body.light header {
  background: rgba(255,255,255,0.6);
  border-color: rgba(0,0,0,0.06);
}
header img { height: 48px; width: auto; border-radius: 6px; }
header span { font-size: 1.25rem; font-weight: 600; color: #38bdf8; }

/* =======================
   🔹 Divider
======================= */
.divider-r { border-right: 1px solid rgba(255,255,255,0.06); }
.divider-l { border-left: 1px solid rgba(255,255,255,0.06); }
body.light .divider-r, body.light .divider-l { border-color: rgba(0,0,0,0.08); }

/* =======================
   🔹 دکمه‌ها
======================= */
.btn-primary {
  background: linear-gradient(90deg,#38bdf8,#6366f1);
  color: #fff;
  padding: 0.6rem 1.2rem; /* بزرگتر */
  border-radius: 8px;
  font-size: 1rem; /* بزرگتر */
  cursor: pointer;
  transition: opacity 0.3s;
}
.btn-primary:hover { opacity: 0.9; }

/* =======================
   🔹 ورودی‌ها
======================= */
.input-dark {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.75rem 1rem; /* بزرگتر */
  font-size: 1rem; /* بزرگتر */
  outline: none;
}
.input-dark:focus { border-color: #38bdf8; }
body.light .input-dark {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.08);
  color: #111;
}

/* =======================
   🔹 دسته‌بندی
======================= */
.cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  font-size: 1rem; /* بزرگتر */
  color: #9ca3af;
  cursor: pointer;
  transition: 0.25s;
}
.cat-btn:hover { background: rgba(255,255,255,0.05); color: #38bdf8; }
.cat-btn.active { background: linear-gradient(180deg,#38bdf8,#6366f1); color: #fff; }

/* =======================
   🔹 ناحیه Preview
======================= */
.preview-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem; /* بزرگتر */
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
body.light .preview-wrap { background: rgba(255,255,255,0.5); }

.preview-icons-bar {
  padding-bottom: 1rem; /* بزرگتر */
  margin-bottom: 1rem; /* بزرگتر */
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
body.light .preview-icons-bar { border-color: rgba(0,0,0,0.08); }

/* =======================
   🔹 اسلایدر
======================= */
.preview-grid {
  display: flex;
  gap: 24px; /* بزرگتر */
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0; /* بزرگتر */
}
.preview-grid::-webkit-scrollbar { display: none; }

.preview-card {
  min-width: 220px; /* بزرگتر */
  height: 250px; /* بزرگتر */
  border-radius: 16px; /* بزرگتر */
  flex-shrink: 0;
  padding: 20px; /* بزرگتر */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.preview-card:hover { background: rgba(255,255,255,0.12); transform: scale(1.05); }

body.light .preview-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
body.light .preview-card:hover { background: #f9fafb; }

.preview-card img { width: 100px; height: 100px; }
.preview-card span { margin-top: 14px; font-size: 1rem; text-align: center; }
.preview-card.selected {
  border: 3px solid #38bdf8; /* بزرگتر */
  background: rgba(56,189,248,0.2); /* کمی پررنگ تر */
  transform: scale(1.05);
}

/* =======================
   🔹 دکمه‌های اسلاید
======================= */
.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 50px; /* بزرگتر */
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #e5e7eb;
  cursor: pointer;
  opacity: 0.3;
  transition: 0.3s;
  z-index: 20;
}
.arrow-btn:hover { opacity: 0.8; background: rgba(56,189,248,0.25); }

/* =======================
   🔹 Generate bar
======================= */
.generate-fixed {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(20,24,30,0.7);
  backdrop-filter: blur(10px);
  padding: 1rem; /* بزرگتر */
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 10;
}
body.light .generate-fixed { background: rgba(255,255,255,0.8); border-color: rgba(0,0,0,0.08); }

/* =======================
   🔹 Upload box
======================= */
.upload-box {
  display: flex; align-items: center; justify-content: center;
  height: 150px; /* بزرگتر */
  border: 2px dashed rgba(255,255,255,0.25);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: 0.3s;
  font-size: 1rem; /* بزرگتر */
  color: #9ca3af;
}
.upload-box:hover { background: rgba(255,255,255,0.08); border-color: #38bdf8; color: #38bdf8; }
.upload-box.dragover { background: rgba(56,189,248,0.1); border-color: #38bdf8; color: #38bdf8; }
body.light .upload-box {
  border-color: rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.85);
  color: #555;
}
body.light .upload-box:hover { background: rgba(0,0,0,0.05); border-color: #38bdf8; }

.upload-box input[type="file"] { display: none; }
