/* Fallback theme until full public/ assets are restored from server backup */
@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;600;700&display=swap");

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; direction: rtl; }
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background: #f1f5f9;
  min-height: 100vh;
  color: #1e293b;
}

.blank-page .app-content.content { width: 100%; }
.blank-page .content-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.content-overlay { display: none; }

.flexbox-container { width: 100%; max-width: 1140px; margin: 0 auto; }
.row { display: flex; flex-wrap: wrap; margin: 0; width: 100%; }
.m-0 { margin: 0 !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }

.col-11 { flex: 0 0 91.666%; max-width: 91.666%; margin: 0 auto; }
.col-xl-8 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 1200px) {
  .col-xl-8 { flex: 0 0 66.666%; max-width: 66.666%; }
}

.col-md-6 { flex: 0 0 100%; max-width: 100%; padding: 0; min-width: 0; }
@media (min-width: 768px) {
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}

/* Prevent nested auth cards from shrinking in flex rows */
#auth-login .col-md-6 .card { width: 100%; max-width: 100%; min-width: 0; }

.d-none { display: none !important; }
.d-md-block { display: none !important; }
@media (min-width: 768px) {
  .d-md-block { display: block !important; }
  .d-md-none { display: none !important; }
}

.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
@media (min-width: 768px) {
  .flex-md-row { flex-direction: row !important; }
}
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.align-self-center { align-self: center !important; }

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  border: none;
}
.bg-authentication { background: #fff; }
.disable-rounded-right { border-radius: 12px 0 0 12px; }
@media (max-width: 767px) {
  .disable-rounded-right { border-radius: 12px; }
}

.p-2 { padding: 1rem !important; }
.p-3 { padding: 1.25rem !important; }
.h-100 { min-height: 100%; }

.card-header { padding: 1.25rem 1.5rem 0.5rem; border-bottom: none; background: transparent; }
.card-title h4 { margin: 0; font-size: 1.35rem; font-weight: 700; color: #1e293b; }
.card-content { padding: 0 1.5rem 1.5rem; }
.card-body { padding: 0.5rem 0 0; }

.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-bold-700 { font-weight: 700; }
.line-height-2 { line-height: 1.6; }

.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-50 { margin-bottom: 0.75rem !important; }
.mr-25 { margin-left: 0.35rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; color: #334155; }
.form-group label.required::after { content: " *"; color: #dc2626; }

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}
.form-control:focus {
  outline: 2px solid #6c5ce7;
  border-color: #6c5ce7;
}

.btn {
  display: inline-block;
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, #6c5ce7, #5b4bdb);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
}
.btn-primary:hover { filter: brightness(1.05); }
.w-100 { width: 100% !important; }
.glow { box-shadow: 0 4px 14px rgba(108, 92, 231, 0.45); }
.position-relative { position: relative; }

hr { border: 0; border-top: 1px solid #e2e8f0; margin: 1.25rem 0; }
a { color: #6c5ce7; }
.card-link { color: #6c5ce7; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
small { font-size: 0.85rem; color: #64748b; }

.img-fluid { max-width: 100%; height: auto; display: block; margin: 0 auto; }

.checkbox-sm, .checkbox { display: flex; align-items: center; gap: 0.35rem; }
.form-check-input { width: 1rem; height: 1rem; accent-color: #6c5ce7; }
.checkboxsmall { margin: 0; cursor: pointer; }

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert ul { margin: 0; padding-right: 1.25rem; }
.alert-danger { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert-warning { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.alert-primary { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }

/* Login visuals: see public/css/login.css */
