/* CamiNet — giriş, kayıt, hesap, üyelik, kullanıcı ve talebe sayfaları.
   CSP style-src 'self': görünümlerde style="" yok; bu sayfaların stilleri burada. */

/* ── Ortalanmış kimlik kartı (giriş, kayıt, şifre) ─────────────────────────── */
.cn-auth {
  display: flex; justify-content: center; align-items: center;
  min-height: 60vh; padding: 1.5rem 0;
}
.cn-auth-card { width: 100%; max-width: 420px; }
.cn-auth-card.wide { max-width: 480px; }
.cn-auth-card .card-body { padding: 1.75rem; }
.cn-auth-title { font-size: 1.5rem; font-weight: 600; margin: 0; }
.cn-auth-sub { color: var(--cn-muted); }
@media (max-width: 575.98px) {
  .cn-auth { padding: .5rem 0; min-height: 0; }
  .cn-auth-card .card-body { padding: 1.25rem; }
}

/* Portal (cami bağlamı olmayan) kimlik sayfalarında üst şerit. */
.cn-auth-brand {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .75rem 1rem; background: var(--cn-chrome); border-bottom: 1px solid var(--cn-border);
}
.cn-auth-brand a.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--cn-text); text-decoration: none; font-weight: 600; }
.cn-auth-brand img { height: 32px; width: auto; }
.cn-auth-shell { padding: 0 1rem; }

/* ── Doğrulama (ASP.NET tag helper sınıfları → Bootstrap görünümü) ──────────── */
.input-validation-error { border-color: var(--bs-form-invalid-border-color) !important; }
.field-validation-error { display: block; margin-top: .25rem; font-size: .875em; color: var(--bs-form-invalid-color); }
.field-validation-valid { display: none; }

/* ── Telefon satırı: kod + numara ─────────────────────────────────────────── */
.cn-phone { display: flex; gap: .75rem; }
.cn-phone .code { flex: 0 0 8.5rem; }
.cn-phone .number { flex: 1 1 auto; min-width: 0; }

/* ── Cami listeleri (seçim, Camilerim) ─────────────────────────────────────── */
.cn-mosque-list .list-group-item { display: flex; align-items: center; gap: .75rem; }
.cn-mosque-list .list-group-item-action:hover { background: rgba(var(--cn-primary-rgb), .08); }
.cn-mosque-list .star { color: var(--cn-primary); flex: 0 0 auto; }
.cn-mosque-list .muted-icon { color: var(--cn-muted); flex: 0 0 auto; }
.cn-mosque-list .meta { min-width: 10rem; flex: 1 1 0; }
.cn-mosque-list .meta .name { font-weight: 600; overflow-wrap: anywhere; }
.cn-mosque-list .actions { display: flex; flex-wrap: wrap; gap: .25rem; justify-content: flex-end; margin-left: auto; }
.cn-slug { color: var(--cn-muted); font-size: .8rem; font-family: var(--bs-font-monospace); }

/* ── Rozetler ─────────────────────────────────────────────────────────────── */
.cn-tag {
  display: inline-block; padding: .15rem .5rem; border-radius: .375rem; font-size: .75rem;
  border: 1px solid var(--cn-border); color: var(--cn-text); background: rgba(var(--cn-primary-rgb), .06);
}
.cn-tag.ok { border-color: rgba(25, 135, 84, .6); color: #75b798; background: rgba(25, 135, 84, .12); }
[data-bs-theme="light"] .cn-tag.ok { color: #146c43; }
.cn-tag.role { border-color: rgba(var(--cn-primary-rgb), .5); color: var(--cn-primary); }

/* ── Yönetim tabloları ────────────────────────────────────────────────────── */
.cn-page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .75rem; margin-bottom: 1rem; }
.cn-page-head h2 { margin: 0; }
.cn-filters { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.cn-filters .form-control, .cn-filters .form-select { width: 260px; max-width: 100%; }
.cn-table td, .cn-table th { vertical-align: middle; }
.cn-table .contact { font-size: .85rem; line-height: 1.35; }
.cn-table .contact .icon { margin-right: .25rem; color: var(--cn-muted); }
.cn-table .row-actions, .cn-table .nowrap { white-space: nowrap; }
.cn-empty { text-align: center; color: var(--cn-muted); padding: 2rem 1rem; }
.cn-roles-check { max-height: 14rem; overflow: auto; border: 1px solid var(--cn-border); border-radius: .375rem; padding: .5rem .75rem; }
.cn-candidates { max-height: 16rem; overflow: auto; }

@media (max-width: 575.98px) {
  .cn-filters .form-control, .cn-filters .form-select { width: 100%; }
  .cn-phone { gap: .5rem; }
  .cn-phone .code { flex-basis: 8.25rem; }
  .cn-phone .form-select-lg, .cn-phone .form-control-lg { font-size: 1rem; }
}
