/* ریست ساده و تنظیمات کلی */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: Tahoma, Arial, Helvetica, sans-serif;
  direction: rtl;
  background: #f5f7fb; /* پس‌زمینه روشن */
  color: #222;
}

/* لایه کلی صفحه */
.page-wrap {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* واترمارک لوگو به صورت صاف - برای همه صفحات */
body::before,
.page-wrap::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("logo.png"); /* اگر لوگو جای دیگری است، مسیر را عوض کن */
  background-repeat: repeat;
  background-size: 160px 60px;
  opacity: 0.04;
  pointer-events: none;
}


/* سکشن اصلی - مرکز صفحه */
.hero {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

/* کارت اصلی (صفحه اول و پیام‌ها) */
.card {
  background: #fffaf0; /* کرم خیلی روشن */
  padding: 20px 24px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  max-width: 480px;
  width: 100%;
}

.glass {
  background: transparent;
  text-align: center;
}

/* تیتر و زیرتیتر */
h1 {
  margin: 0 0 8px;
  font-size: 22px;
}

.company {
  opacity: 0.85;
  margin-top: 4px;
  font-size: 13px;
}

/* دکمه‌ها در صفحه اصلی */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

button {
  padding: 10px 18px;
  border-radius: 10px;
  border: 0;
  background: #1976d2;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

button:hover {
  background: #0f5fb3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
  box-shadow: none;
}

button:focus {
  outline: 2px solid #90caf9;
}

/* لینک‌ها و متن‌های کم‌رنگ */
.muted {
  color: #666;
  margin-top: 12px;
  font-size: 12px;
}

a {
  color: #1565c0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* مودال‌های ایجاد/پیگیری تیکت */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.25);
}

.modal-content {
  background: #fff5e6; /* کرم برای فرم */
  margin: 40px auto;
  padding: 18px 20px 20px;
  border-radius: 10px;
  max-width: 560px;
  width: 92%;
  direction: rtl;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.modal h2 {
  margin-top: 0;
  font-size: 18px;
}

/* دکمه بستن مودال */
.close {
  float: left;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

/* فرم‌ها */
label {
  display: block;
  margin: 8px 0;
  font-size: 13px;
}

input,
textarea,
select {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid #d8cfc6;
  border-radius: 8px;
  background: #fffef8; /* کرم خیلی روشن داخل فیلد */
  font-size: 13px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #1976d2;
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.12);
}

/* دکمه‌ها داخل فرم‌ها */
.actions {
  margin-top: 12px;
  text-align: left;
}

/* کانتینر و کارت کوچک برای پنل ادمین */
.container {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 12px;
}

.card.small {
  max-width: 520px;
  margin: 30px auto;
}

/* جدول تیکت‌ها در پنل ادمین */
.tickets {
  width: 100%;
  border-collapse: collapse;
  background: #fffef8;
  font-size: 13px;
}

.tickets th,
.tickets td {
  padding: 8px;
  border: 1px solid #eee2d5;
  text-align: center;
}

.tickets th {
  background: #f8ecdd;
  font-weight: 600;
}

/* کامنت‌ها و خطاها */
.comment {
  background: #f8f9fb;
  padding: 8px;
  border-radius: 6px;
  margin: 6px 0;
}

.error {
  color: #b00020;
  font-size: 13px;
}

/* ریسپانسیو موبایل */
@media (max-width: 480px) {
  h1 {
    font-size: 18px;
  }

  .card {
    padding: 16px 14px;
  }

  .buttons {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
