﻿.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.16s ease;
  text-decoration: none;
}
.btn-sm { padding: 8px 13px; font-size: 0.83rem; }
.btn-xs { padding: 5px 10px; font-size: 0.76rem; border-radius: 8px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-800), var(--emerald-700));
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(11, 79, 63, 0.22);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--emerald-900), var(--emerald-800));
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, #B98A2B, #D5AA4B);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(185, 138, 43, 0.25);
}
.btn-gold:hover { filter: brightness(1.05); transform: translateY(-1px); }

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--emerald-700);
  color: var(--emerald-700);
  background: var(--emerald-50);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.btn-danger-soft {
  background: var(--danger-bg);
  color: var(--danger);
}
.btn-danger-soft:hover { filter: brightness(0.96); }

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s ease;
}
.btn-icon:hover {
  color: var(--emerald-700);
  border-color: var(--emerald-700);
}
.btn-icon svg { width: 18px; height: 18px; }

/* Avatar */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.avatar-sm { width: 32px; height: 32px; font-size: 0.76rem; }
.avatar-lg { width: 54px; height: 54px; font-size: 1.15rem; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

/* Hero Banner (Islamic Geometric Touch) */


/* Forms & Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 25, 20, 0.56);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 100;
}
.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.18s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
}
.modal-header h2 { font-size: 1.08rem; font-weight: 800; }
.modal-body { padding: 20px 22px 24px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}
input[type="text"], input[type="password"], input[type="date"], input[type="time"], input[type="number"], input[type="url"], select, textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--emerald-700);
  box-shadow: 0 0 0 3px var(--emerald-100);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}
.checkbox-row input { width: auto; }

.demo-accounts-box {
  margin-top: 16px;
  padding: 14px;
  background: var(--emerald-50);
  border: 1px dashed var(--emerald-700);
  border-radius: var(--radius-md);
}
.demo-accounts-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--emerald-700);
  margin-bottom: 8px;
}
.demo-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.tabs-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-soft);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.tab-btn {
  border: none;
  background: transparent;
  padding: 9px;
  border-radius: 9px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--text-muted);
  cursor: pointer;
}
.tab-btn.active {
  background: var(--surface);
  color: var(--emerald-800);
  box-shadow: var(--shadow-sm);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

/* Toasts */
.toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--emerald-900);
  color: #FFFFFF;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--gold-500);
  animation: toastIn 0.2s ease;
}
.toast.error { background: #8B1E1E; border-left-color: #FCA5A5; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

