/*
 * EN: Defines visual styling and layout rules in `css/pages/customer-portal.css`.
 * AR: يحدد قواعد التنسيق البصري وتخطيط الواجهة في `css/pages/customer-portal.css`.
 */
/* Customer portal — public registration status / login (pages/customer-portal.php) */
:root {
  --ratib-pink: #e94560;
  --ratib-yellow: #f1c40f;
  --ratib-dark: #2c3e50;
  --ratib-darker: #1a252f;
}

body {
  background: var(--ratib-darker);
  color: #fff;
  min-height: 100vh;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 2rem 1rem;
}

.portal-container {
  max-width: 800px;
  margin: 0 auto;
}
.portal-header-sub {
  color: #aaa;
}
.portal-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}
.portal-header {
  text-align: center;
  margin-bottom: 2rem;
}
.portal-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--ratib-yellow);
}
.status-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}
.status-pending {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.5);
}
.status-approved {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.5);
}
.status-rejected {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.5);
}
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.info-row:last-child {
  border-bottom: none;
}
.info-label {
  color: #aaa;
  font-weight: 500;
}
.info-value {
  color: #fff;
  font-weight: 600;
}
.btn-logout {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.5);
  color: #dc3545;
}
.btn-logout:hover {
  background: rgba(220, 53, 69, 0.3);
  color: #fff;
}
.help-contact-list {
  margin-top: 1rem;
}
.help-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.7rem 0;
}
.help-contact-item a {
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}
.help-contact-item a:hover {
  text-decoration: underline;
}
.help-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-size: 1rem;
}
.help-icon-phone {
  color: #5dade2;
  background: rgba(93, 173, 226, 0.18);
  border-color: rgba(93, 173, 226, 0.45);
}
.help-icon-whatsapp {
  color: #25d366;
  background: rgba(37, 211, 102, 0.14);
  border-color: rgba(37, 211, 102, 0.45);
}
.help-icon-email {
  color: #f1c40f;
  background: rgba(241, 196, 15, 0.14);
  border-color: rgba(241, 196, 15, 0.45);
}
.help-link-phone {
  color: #8fc9ff;
}
.help-link-whatsapp {
  color: #5be38f;
}
.help-link-email {
  color: #ffd95a;
}
.portal-status-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.portal-status-card {
  background: rgba(15, 52, 96, 0.55);
  border: 1px solid rgba(93, 173, 226, 0.35);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
}
.portal-status-card .k {
  color: #9fb3c8;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.portal-status-card .v {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.2rem;
}
.v-ok {
  color: #2ecc71;
}
.v-warn {
  color: #f1c40f;
}
.v-danger {
  color: #e74c3c;
}

/* Login form */
.portal-form-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}
.portal-btn-primary {
  background: var(--ratib-pink);
  border: none;
}
.portal-link-accent {
  color: var(--ratib-yellow);
}
.portal-message-box {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}
.portal-help-muted {
  color: #aaa;
}
.status-icon-pending {
  color: #ffc107;
}
.status-icon-approved {
  color: #28a745;
}
.status-icon-rejected {
  color: #dc3545;
}
