/* معرفی فونت‌های اختصاصی شما */
@font-face {
  font-family: 'IRANSans';
  src: url('IRANSans.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'IranianSans';
  src: url('IranianSans.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary: #eff6ff;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --success: #10b981;
}

body {
  font-family: 'IRANSans', system-ui, Tahoma, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* استفاده از فونت ضخیم برای تیترها */
h1, h2, h3, h4, .bold-text {
  font-family: 'IranianSans', 'IRANSans', sans-serif;
  color: #0f172a;
}

.admin-header {
  background: var(--card-bg);
  padding: 16px 24px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-header h1 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-header .logout-btn {
  color: var(--danger);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 8px;
  background: #fef2f2;
  transition: all 0.2s;
}

.admin-header .logout-btn:hover { background: #fee2e2; }

.container {
  max-width: 1000px;
  margin: 32px auto;
  padding: 0 16px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.card-title {
  margin: 0 0 20px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.full-width { grid-column: 1 / -1; }

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: bold;
}

.input, select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
  background: #f8fafc;
  transition: all 0.2s;
  color: var(--text-main);
}

.input:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-family: 'IranianSans', 'IRANSans', sans-serif;
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  transition: all 0.2s;
  width: 100%;
}

.btn:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

.btn-danger {
  background: #fff;
  color: var(--danger);
  border: 1px solid var(--danger);
  padding: 8px 16px;
  font-size: 0.85rem;
}
.btn-danger:hover { background: var(--danger); color: #fff; }

.badge-msg {
  background: #dcfce7;
  color: #166534;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-weight: bold;
  border: 1px solid #bbf7d0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* استایل زیبای لیست نوبت‌ها */
.appointment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.appointment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-color);
  border-right: 4px solid var(--primary);
  border-radius: 12px;
  padding: 16px;
  transition: transform 0.2s;
}

.appointment-item:hover {
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.appt-time {
  font-family: 'IranianSans', sans-serif;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.appt-details {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.appt-client {
  font-weight: bold;
  color: var(--text-main);
  font-size: 1rem;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  background: #dbeafe;
  color: #1e40af;
}

@media (max-width: 600px) {
  .appointment-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .appointment-item form {
    width: 100%;
  }
}