/* نوبتیار - استایل ساده و تمیز */
:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --bg: #f0fdfa;
  --card: #ffffff;
  --text: #134e4a;
  --muted: #5eead4;
  --danger: #dc2626;
  --warning: #d97706;
  --success: #059669;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Vazirmatn', 'Tahoma', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  direction: rtl;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}

header {
  background: var(--primary);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

nav a {
  color: white;
  margin-right: 1rem;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.08);
  border: 1px solid #ccfbf1;
}

.card h2 {
  margin-bottom: 1rem;
  color: var(--primary-dark);
  font-size: 1.25rem;
}

label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  font-size: 0.9rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 1rem;
  background: #f0fdfa;
  color: var(--text);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

button, .btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover, .btn:hover {
  background: var(--primary-dark);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-danger {
  background: var(--danger);
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-success {
  background: var(--success);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
}

.alert {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.alert-info {
  background: #ccfbf1;
  color: #134e4a;
  border: 1px solid #5eead4;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 0.6rem;
  text-align: right;
  border-bottom: 1px solid #ccfbf1;
}

th {
  background: #f0fdfa;
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-pending { background: #fef3c7; color: #92400e; }
.badge-confirmed { background: #d1fae5; color: #065f46; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-approved { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  header .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.slot-item {
  padding: 0.6rem;
  border: 2px solid #99f6e4;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  background: white;
  transition: all 0.15s;
}

.slot-item:hover, .slot-item.selected {
  border-color: var(--primary);
  background: #ccfbf1;
}

.slot-item.booked {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f1f5f9;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #5eead4;
  font-size: 0.85rem;
}

.hidden {
  display: none !important;
}
