/* Green Court — My Reservations page (RTL) */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

.gcr-my-reservations {
  --gcr-primary: #0d9488;
  --gcr-primary-dark: #0f766e;
  --gcr-primary-light: #ccfbf1;
  --gcr-surface: #ffffff;
  --gcr-bg: #f8fafc;
  --gcr-text: #0f172a;
  --gcr-muted: #64748b;
  --gcr-border: #e2e8f0;
  --gcr-radius: 16px;
  --gcr-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);

  box-sizing: border-box;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  direction: rtl;
  text-align: right;
  color: var(--gcr-text);
  max-width: 900px;
  margin: 0 auto;
}

.gcr-my-reservations *,
.gcr-my-reservations *::before,
.gcr-my-reservations *::after {
  box-sizing: inherit;
}

.gcr-my-res-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--gcr-text);
}

.gcr-my-res-login-notice,
.gcr-my-res-empty {
  background: var(--gcr-bg);
  border: 1px dashed var(--gcr-border);
  border-radius: var(--gcr-radius);
  padding: 20px;
  color: var(--gcr-muted);
  text-align: center;
}

.gcr-my-res-message {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: 600;
  display: none;
}

.gcr-my-res-message-success {
  background: #d1fae5;
  color: #047857;
}

.gcr-my-res-message-error {
  background: #fee2e2;
  color: #b91c1c;
}

.gcr-my-res-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gcr-my-res-card {
  background: var(--gcr-surface);
  border: 1px solid var(--gcr-border);
  border-radius: var(--gcr-radius);
  box-shadow: var(--gcr-shadow);
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gcr-my-res-card-main {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px 20px;
  flex: 1;
}

.gcr-my-res-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gcr-my-res-label {
  font-size: 12px;
  color: var(--gcr-muted);
}

.gcr-my-res-value {
  font-size: 14px;
  font-weight: 600;
}

.gcr-my-res-actions {
  display: flex;
  align-items: center;
}

.gcr-my-res-cancel-btn {
  background: #fee2e2;
  color: #b91c1c;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.gcr-my-res-cancel-btn:hover {
  background: #fecaca;
}

.gcr-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.gcr-badge-confirmed { background: #d1fae5; color: #047857; }
.gcr-badge-cancelled { background: #fee2e2; color: #b91c1c; }
.gcr-badge-payment_pending { background: #fef3c7; color: #b45309; }
.gcr-badge-pending { background: #e0e7ff; color: #4338ca; }

.gcr-my-res-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 16px;
}

.gcr-my-res-modal-box {
  background: var(--gcr-surface);
  border-radius: var(--gcr-radius);
  padding: 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.gcr-my-res-modal-box h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.gcr-my-res-modal-box p {
  margin: 0 0 20px;
  color: var(--gcr-muted);
}

.gcr-my-res-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.gcr-my-res-modal-confirm,
.gcr-my-res-modal-cancel {
  font-family: inherit;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
}

.gcr-my-res-modal-confirm {
  background: #b91c1c;
  color: #fff;
}

.gcr-my-res-modal-confirm:hover {
  background: #991b1b;
}

.gcr-my-res-modal-cancel {
  background: var(--gcr-bg);
  color: var(--gcr-text);
  border: 1px solid var(--gcr-border);
}

.gcr-my-res-modal-cancel:hover {
  background: var(--gcr-border);
}

@media (max-width: 640px) {
  .gcr-my-res-card-main {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
  }

  .gcr-my-res-card {
    flex-direction: column;
    align-items: stretch;
  }

  .gcr-my-res-actions {
    justify-content: flex-end;
  }
}
