/* ============================================================
   admin_settings.css — Modal إعدادات السوبر
   ============================================================ */

/* ═══ Modal Wrapper ═══ */
.ass-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ass-modal.is-open { display: flex; }

.ass-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
}

/* ═══ Dialog ═══ */
.ass-dialog {
  position: relative;
  background: var(--bg-card, #fff);
  color: var(--fg, #222);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: assSlideIn 0.2s ease-out;
}
@keyframes assSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══ Header ═══ */
.ass-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, rgba(0,0,0,0.08));
}
.ass-header h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}
.ass-header h3 .ic {
  inline-size: 20px;
  block-size: 20px;
}
.ass-close {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--fg-muted, #666);
}
.ass-close:hover {
  background: var(--bg-muted, rgba(0,0,0,0.05));
}

/* ═══ Tabs ═══ */
.ass-tabs {
  display: flex;
  border-bottom: 1px solid var(--border, rgba(0,0,0,0.08));
  padding: 0 16px;
}
.ass-tab {
  background: transparent;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted, #666);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.ass-tab:hover { color: var(--fg, #222); }
.ass-tab.is-active {
  color: var(--primary, #7367f0);
  border-bottom-color: var(--primary, #7367f0);
}
.ass-tab .ic {
  inline-size: 16px;
  block-size: 16px;
}

/* ═══ Body ═══ */
.ass-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}
.ass-loading, .ass-error {
  text-align: center;
  padding: 40px;
  color: var(--fg-muted, #666);
}
.ass-error { color: var(--bad, #ea5455); }

/* ═══ Sections ═══ */
.ass-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ═══ Status row (cache tab) ═══ */
.ass-status-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ass-status-item {
  background: var(--bg-muted, rgba(0,0,0,0.03));
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.ass-status-label {
  font-size: 11px;
  color: var(--fg-muted, #888);
  margin-bottom: 4px;
}
.ass-status-value {
  font-size: 18px;
  font-weight: 700;
}
.ass-status-value.ok  { color: var(--ok,  #28c76f); }
.ass-status-value.bad { color: var(--bad, #ea5455); }

/* ═══ Fields (security tab) ═══ */
.ass-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ass-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ass-label > span:first-child {
  font-size: 13px;
  font-weight: 600;
}
.ass-help {
  font-size: 11px;
  color: var(--fg-muted, #888);
}
.ass-input {
  padding: 8px 12px;
  border: 1px solid var(--border, rgba(0,0,0,0.15));
  border-radius: 8px;
  font-size: 14px;
  background: var(--bg-card, #fff);
  color: var(--fg, #222);
  width: 100%;
}
.ass-input:focus {
  outline: none;
  border-color: var(--primary, #7367f0);
  box-shadow: 0 0 0 3px rgba(115, 103, 240, 0.1);
}
.ass-range {
  font-size: 11px;
  color: var(--fg-muted, #999);
}

/* ═══ Actions ═══ */
.ass-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px dashed var(--border, rgba(0,0,0,0.08));
}
.ass-btn {
  padding: 9px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  flex: 1;
  min-width: 120px;
}
.ass-btn-primary {
  background: var(--primary, #7367f0);
  color: #fff;
}
.ass-btn-primary:hover { background: var(--primary-hover, #5e50ee); }
.ass-btn-warn {
  background: var(--warn, #ff9f43);
  color: #fff;
}
.ass-btn-danger {
  background: var(--bad, #ea5455);
  color: #fff;
}
.ass-btn-muted {
  background: var(--bg-muted, rgba(0,0,0,0.05));
  color: var(--fg, #222);
}

/* ═══ Note ═══ */
.ass-note {
  padding: 10px 12px;
  background: var(--bg-muted, rgba(0,0,0,0.03));
  border-radius: 8px;
  font-size: 12px;
  color: var(--fg-muted, #666);
  border-inline-start: 3px solid var(--primary, #7367f0);
}
.ass-note b {
  color: var(--fg, #222);
}

/* ═══ Mobile ═══ */
@media (max-width: 480px) {
  .ass-status-row { grid-template-columns: 1fr; }
  .ass-btn { min-width: 100%; }
}
