/* UAEERF Official Portal Styling */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #A32A29;      /* UAEERF Red */
  --primary-hover: #821f1e;
  --secondary-color: #8C733E;    /* UAEERF Gold/Tan */
  --header-bg: #ffffff;
  --bg-color: #f8f6f0;           /* Portal Light Cream */
  --card-bg: #ffffff;
  --text-color: #2b2b2b;
  --border-color: #e2ded4;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.navbar {
  background-color: var(--header-bg);
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-bottom: 3px solid var(--primary-color);
  width: 100%;
}


.navbar-brand img {
  height: 50px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white !important;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: #e2e8f0;
  color: #475569;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background-color: #cbd5e1;
}

.main-container {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 2rem auto;
  padding: 0 1rem;
}

.card {
  background: var(--card-bg);
  border-radius: 6px;
  padding: 2.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #444;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(163,42,41,0.1);
}

/* Wizard Steps Display */
.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block !important;
}

/* Multi-Step Wizard Progress Bar */
.step-progressbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
  counter-reset: step;
}

.step-progressbar::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #e2ded4;
  z-index: 1;
}

.step-progressbar .step-item {
  position: relative;
  z-index: 2;
  text-align: center;
  background: white;
  padding: 0 0.5rem;
}

.step-progressbar .step-item .step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #e2ded4;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem auto;
  font-weight: bold;
  transition: all 0.3s;
}

.step-progressbar .step-item.active .step-circle {
  background-color: var(--primary-color);
  color: white;
}

.step-progressbar .step-item.completed .step-circle {
  background-color: var(--secondary-color);
  color: white;
}

.step-progressbar .step-item .step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
}

.step-progressbar .step-item.active .step-label {
  color: var(--primary-color);
}

.alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.alert-danger {
  background-color: #fde8e8;
  color: #9b1c1c;
  border: 1px solid #f8b4b4;
}

.footer {
  background-color: #2b2b2b;
  color: #aaa;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  margin-top: auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.btn-secondary {
  display: inline-block;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-secondary:hover { background: #e5e7eb; border-color: #9ca3af; }

.btn-accent {
  display: inline-block;
  background: linear-gradient(135deg, #8C733E, #6b5630);
  color: #fff;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-accent:hover { opacity: 0.88; }

.alert { padding: 1rem 1.25rem; border-radius: 6px; margin-bottom: 1.5rem; font-size: 0.9rem; }
.alert-danger  { background: #fff0f0; border: 1px solid #f5c6c6; color: #991b1b; }
.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #065f46; }

/* ── Mobile Navigation Responsive Styling ─────────────────────── */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 1.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
}

.btn-logout {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: #ffffff !important;
  background-color: var(--primary-color);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}

.user-greeting {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
}

@media (max-width: 900px) {
  .navbar {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    padding: 0.75rem 0;
    margin-top: 0.75rem;
    border-top: 2px solid #eee;
    gap: 0.5rem;
    align-items: flex-start;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a {
    width: 100%;
    padding: 0.6rem 1rem;
    box-sizing: border-box;
    border-bottom: 1px solid #f3f4f6;
  }
  .nav-links a:last-child {
    border-bottom: none;
  }
  .user-greeting {
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 768px) {
  .main-container {
    padding: 0 0.5rem;
    margin: 1rem auto;
  }
  .card {
    padding: 1.25rem 1rem;
  }
}


