/* تجربة المواطن — نظام الشكاوى (UI/UX موحّد) */
:root {
  --cx-brand: #021526;
  --cx-brand-2: #0a4d6e;
  --cx-accent: #1a7a9c;
  --cx-soft: #f4f7fa;
  --cx-line: #e2e8ef;
  --cx-ink: #1c2834;
  --cx-muted: #5a6b7c;
  --cx-success: #0f7a5f;
  --cx-danger: #b42318;
  --cx-warning: #b54708;
  --cx-info: #175cd3;
  --cx-radius: 14px;
  --cx-shadow: 0 10px 28px rgba(2, 21, 38, 0.08);
}

.cx-page {
  width: min(1100px, 100%);
  margin-inline: auto;
  padding: 1rem 0.85rem 2rem;
}

.cx-hero {
  background: linear-gradient(135deg, #062436 0%, #0f4d70 55%, #1a7a9c 100%);
  color: #fff;
  border-radius: var(--cx-radius);
  padding: 1.35rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--cx-shadow);
}

.cx-hero h1,
.cx-hero h2,
.cx-hero .cx-hero-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: #fff;
}

.cx-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  line-height: 1.7;
  font-weight: 400;
}

.cx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.cx-hero--split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}

.cx-hero--split .cx-hero__copy {
  flex: 1 1 220px;
  min-width: 0;
}

.cx-hero--split .cx-actions {
  margin-top: 0;
  flex-shrink: 0;
}

.cx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cx-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.cx-btn-primary {
  background: #fff;
  color: var(--cx-brand);
}

.cx-btn-primary:hover {
  background: #e8f3f8;
  color: var(--cx-brand);
}

.cx-btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.cx-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.cx-btn-solid {
  background: var(--cx-brand-2);
  color: #fff;
}

.cx-btn-solid:hover {
  background: var(--cx-brand);
  color: #fff;
}

.cx-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cx-card {
  background: #fff;
  border: 1px solid var(--cx-line);
  border-radius: var(--cx-radius);
  box-shadow: var(--cx-shadow);
  padding: 1rem 1.1rem;
  height: 100%;
}

.cx-card h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  color: var(--cx-brand);
  font-size: 1.05rem;
  font-weight: 700;
}

.cx-card ol,
.cx-card ul {
  margin: 0;
  padding-inline-start: 1.15rem;
  color: var(--cx-ink);
}

.cx-card li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
  font-weight: 400;
}

.cx-notes {
  margin-top: 1rem;
  background: #fff8eb;
  border: 1px solid #f5e1b8;
  border-radius: var(--cx-radius);
  padding: 1rem 1.1rem;
}

.cx-notes h3 {
  margin: 0 0 0.55rem;
  color: var(--cx-warning);
  font-size: 1rem;
}

.cx-notes ul {
  margin: 0;
  padding-inline-start: 1.1rem;
}

.cx-notes li {
  margin-bottom: 0.35rem;
  color: var(--cx-ink);
  line-height: 1.6;
}

.cx-panel {
  background: #fff;
  border: 1px solid var(--cx-line);
  border-radius: var(--cx-radius);
  box-shadow: var(--cx-shadow);
  padding: 1rem;
}

.cx-table thead th {
  background: var(--cx-brand) !important;
  color: #fff !important;
  border-color: transparent !important;
  white-space: nowrap;
  font-weight: 600;
  vertical-align: middle;
}

.cx-table td {
  vertical-align: middle;
  color: var(--cx-ink);
}

.cx-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.cx-badge-success {
  background: #e7f6f1;
  color: var(--cx-success);
}

.cx-badge-danger {
  background: #fdeceb;
  color: var(--cx-danger);
}

.cx-badge-warning {
  background: #fff4e5;
  color: var(--cx-warning);
}

.cx-badge-info {
  background: #e8f1ff;
  color: var(--cx-info);
}

.cx-badge-muted {
  background: #eef2f6;
  color: var(--cx-muted);
}

.cx-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--cx-muted);
}

.cx-empty h3 {
  margin: 0 0 0.4rem;
  color: var(--cx-brand);
}

.cx-empty p {
  margin: 0 0 1rem;
}

.cx-login-wrap {
  width: min(460px, 100%);
  margin: 0.5rem auto 1.5rem;
}

.cx-login-wrap .login-box,
.cx-login-wrap .login-container {
  width: 100%;
}

.cx-register-page .login-box {
  max-width: none;
}

.cx-field-error {
  color: var(--cx-danger);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

@media (max-width: 767.98px) {
  .cx-grid {
    grid-template-columns: 1fr;
  }

  .cx-hero {
    padding: 1.1rem 1rem;
  }

  .cx-actions .cx-btn {
    width: 100%;
  }

  .cx-table {
    font-size: 0.9rem;
  }
}

/* تذييل بوابة الشكاوى */
.cx-complaints-footer {
  margin-top: 2rem;
  padding: 1.15rem 1rem 1.4rem;
  background: var(--cx-brand, #021526);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.cx-complaints-footer__inner {
  width: min(720px, 100%);
  margin: 0 auto;
}

.cx-complaints-footer__copy {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.55;
}

.cx-complaints-footer__contact {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.92;
}

.cx-complaints-footer__contact a {
  color: #6eacda;
  font-weight: 700;
  text-decoration: none;
}

.cx-complaints-footer__contact a:hover {
  text-decoration: underline;
}
