/**
 * Main RTL Stylesheet
 * Right-to-left styling for Arabic interface
 */

/* ========================================
   CSS Variables - Fintech Islamic Theme
   ======================================== */
:root {
  /* Green Color Palette */
  --dark-green: #064e3b;
  --primary-green: #047857;
  --soft-green: #10b981;
  --mint-bg: #ecfdf5;
  --light-green: #d1fae5;

  /* Neutral Colors */
  --white: #ffffff;
  --text-dark: #1f2937;
  --text-gray: #6b7280;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;

  /* Status Colors */
  --error-red: #d32f2f;
  --success-green: #388e3c;
  --warning-amber: #f59e0b;

  /* Design Tokens */
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --box-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --box-shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.16);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* ========================================
   CSS Reset & Base Styles
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", "Noto Naskh Arabic", Arial, sans-serif;
  line-height: 1.8;
  color: var(--text-dark);
  background-color: var(--white);
  direction: rtl;
  text-align: right;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Typography
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cairo", "Noto Naskh Arabic", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.25rem;
  color: var(--dark-green);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.875rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 0.875rem;
}

h5 {
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

h6 {
  font-size: 1.125rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-dark);
}

a {
  color: var(--primary-green);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-green);
}

/* ========================================
   Container & Layout
   ======================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
}

.container-wide {
  max-width: 1400px;
}

/* ========================================
   Header / Navbar
   ======================================== */
.site-header {
  background: rgba(255, 255, 255, 0);
  padding: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.5s;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.site-header .header-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50px;
  padding: 5px 25px;
  margin: 15px auto;
  max-width: 1320px;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled {
  position: fixed;
  background: rgba(255, 255, 255, 0);
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled .header-container {
  background: rgba(255, 255, 255, 0.95);
  margin: 10px auto;
}

.site-header .navbar {
  padding: 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--dark-green) 100%
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
  transition: var(--transition);
}

.logo-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(4, 120, 87, 0.35);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-green);
  margin: 0;
}

.navbar-nav {
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: 1.0625rem;
  padding: 0.625rem 1.25rem !important;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--primary-green) !important;
  background-color: var(--mint-bg);
}

.nav-link.active {
  color: var(--primary-green) !important;
  background-color: var(--mint-bg);
}

.nav-link.btn-register {
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--dark-green) 100%
  );
  color: var(--white) !important;
  margin-right: 0.5rem;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
}

.nav-link.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(4, 120, 87, 0.35);
  background: linear-gradient(
    135deg,
    var(--soft-green) 0%,
    var(--primary-green) 100%
  );
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: "Cairo", sans-serif;
  min-height: 48px;
  line-height: 1.5;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--dark-green) 100%
  );
  color: var(--white);
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--soft-green) 0%,
    var(--primary-green) 100%
  );
  color: var(--white);
  box-shadow: 0 6px 16px rgba(4, 120, 87, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
  background-color: var(--mint-bg);
  color: var(--primary-green);
  border-color: var(--soft-green);
  transform: translateY(-2px);
}

.btn-hero-primary {
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--dark-green) 100%
  );
  color: var(--white);
  padding: 1rem 2rem;
  font-size: 1.125rem;
  box-shadow: 0 6px 20px rgba(4, 120, 87, 0.3);
  border-radius: var(--border-radius-lg);
}

.btn-hero-primary:hover {
  background: linear-gradient(
    135deg,
    var(--soft-green) 0%,
    var(--primary-green) 100%
  );
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(4, 120, 87, 0.4);
  color: var(--white);
}

.btn-hero-secondary {
  background-color: transparent;
  color: var(--dark-green);
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border: 2px solid var(--primary-green);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.15);
}

.btn-hero-secondary:hover {
  background-color: var(--mint-bg);
  border-color: var(--soft-green);
  color: var(--dark-green);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(4, 120, 87, 0.25);
}

.btn-level-register {
  width: 100%;
  margin-top: 1rem;
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--dark-green) 100%
  );
  color: var(--white);
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
}

.btn-level-register:hover {
  background: linear-gradient(
    135deg,
    var(--soft-green) 0%,
    var(--primary-green) 100%
  );
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(4, 120, 87, 0.35);
  color: var(--white);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ========================================
   Forms
   ======================================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-text);
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1.0625rem;
  font-family: "Noto Naskh Arabic", Arial, sans-serif;
  border: 2px solid var(--gray-300);
  border-radius: var(--border-radius);
  background-color: var(--white);
  transition: var(--transition);
  line-height: 1.6;
  min-height: 48px;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(45, 95, 63, 0.1);
}

.form-control::placeholder {
  color: var(--gray-400);
}

select.form-control {
  cursor: pointer;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-control-file {
  display: none;
}

.file-upload-wrapper {
  position: relative;
}

.file-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--gray-100);
  border: 2px dashed var(--gray-300);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.file-upload-label:hover {
  background-color: var(--gray-200);
  border-color: var(--primary-green);
}

.file-name {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.field-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.required {
  color: var(--error-red);
}

.optional {
  color: var(--gray-600);
  font-weight: 400;
}

.has-error .form-control {
  border-color: var(--error-red);
}

.error-message {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--error-red);
  text-align: center;
  word-wrap: break-word;
}

@media (max-width: 768px) {
  .error-message {
    font-size: 0.9375rem; /* Increased from 0.8rem */
    text-align: center;
    padding: 0 0.5rem;
    line-height: 1.6;
  }

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

  .form-group .form-label {
    text-align: center;
    display: block;
    margin-bottom: 0.5rem;
  }

  .form-control {
    text-align: center;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .form-control:focus {
    text-align: center;
  }
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Mobile-specific form note font size */
@media (max-width: 768px) {
  .form-note {
    font-size: 0.9375rem; /* Slightly larger on mobile */
  }
}

@media (max-width: 480px) {
  .form-note {
    font-size: 1rem; /* Even larger on small phones */
  }
}

/* ========================================
   Cards
   ======================================== */
.card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ========================================
   Grid System
   ======================================== */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ========================================
   Flash Messages
   ======================================== */
.flash-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 600px;
  width: 90%;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  animation: slideDown 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .flash-message {
    top: 10px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    max-width: calc(100% - 20px);
    width: calc(100% - 20px);
    padding: 1rem 1.25rem;
    font-size: 1rem; /* Increased from 0.9rem */
    text-align: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .flash-message .flash-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
  }

  .flash-message .flash-close {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    margin-right: 0;
    padding: 0.25rem;
  }

  .flash-message span {
    flex: 1;
    text-align: center;
    padding: 0 2rem;
    min-width: 0;
    word-wrap: break-word;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-30px);
    scale: 0.95;
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    scale: 1;
  }
}

.flash-message .flash-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flash-message .flash-close {
  margin-right: auto;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0.25rem;
  opacity: 0.8;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flash-message .flash-close:hover {
  opacity: 1;
}

.flash-success {
  background: linear-gradient(135deg, var(--success-green) 0%, #2e7d32 100%);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.flash-error {
  background: linear-gradient(135deg, var(--error-red) 0%, #c62828 100%);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background-color: var(--white);
  color: var(--text-dark);
  padding: 5rem 0 2.5rem;
  margin-top: 0;
  border-top: 2px solid var(--gray-200);
}

.footer-section h3 {
  color: var(--dark-green);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-section p {
  line-height: 1.9;
  color: var(--text-gray);
  margin-bottom: 0.75rem;
  font-size: 1.0625rem;
}

@media (max-width: 480px) {
  .footer-section {
    text-align: center;
    padding: 0 1rem;
  }

  .footer-section h3 {
    font-size: 1.375rem;
    margin-bottom: 1.25rem;
  }

  .footer-section p {
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 1rem;
  }

  .footer-contact {
    font-size: 0.9375rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    line-height: 1.8;
  }

  .footer-contact strong {
    display: block;
    margin: 0.25rem 0;
    font-size: 1rem;
  }

  .footer-contact a {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background-color: rgba(4, 120, 87, 0.1);
  }

  .social-links {
    justify-content: center;
    margin-top: 1.5rem;
  }

  .social-link {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .footer-links a {
    font-size: 1rem;
  }

  .footer-bottom {
    font-size: 0.875rem;
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
  }
}

.footer-contact {
  display: flex;
  align-items: center;
  color: var(--primary-green);
  font-weight: 500;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-contact strong {
  color: var(--dark-green);
  font-weight: 600;
}

.footer-contact a {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--dark-green);
  text-decoration: underline;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.875rem;
}

.footer-links a {
  font-size: 1.0625rem;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary-green);
  transform: translateX(-5px);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--dark-green) 100%
  );
  color: var(--white);
  border-radius: 12px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(4, 120, 87, 0.35);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding-top: 2rem;
  margin-top: 2rem;
  color: var(--text-gray);
  font-size: 0.875rem;
  text-align: center;
}

.footer-bottom p {
  text-align: center;
  margin: 0;
}

.footer-link {
  color: var(--text-gray);
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--primary-green);
}

/* Copyright Link Styles */
.copyright-link {
  color: var(--text-gray) !important;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.copyright-link:hover {
  color: var(--primary-green) !important;
}

.copyright-link .signature-name {
  transition: var(--transition);
  font-weight: 600;
}

.copyright-link:hover .signature-name {
  color: var(--primary-green) !important;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  .site-header {
    padding: 0;
  }

  .site-header .header-container {
    margin: 10px auto;
    padding: 10px 5px 10px 15px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 17px; /* Increased from 14px for better readability */
  }

  body {
    line-height: 1.8;
  }

  h1 {
    font-size: 2.25rem; /* Increased from 1.875rem */
  }

  h2 {
    font-size: 1.875rem; /* Increased from 1.625rem */
  }

  h3 {
    font-size: 1.5rem; /* Increased from 1.375rem */
  }

  h4 {
    font-size: 1.25rem; /* Increased from 1.125rem */
  }

  p {
    font-size: 1rem; /* Increased from 0.875rem */
    line-height: 1.8;
  }

  .site-header .header-container {
    padding: 10px 15px;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    gap: 1rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

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

  /* Registration form mobile improvements */
  .registration-section {
    padding: 1.5rem 0;
  }

  .registration-header {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .registration-header .page-title {
    font-size: 1.875rem; /* Increased from 1.5rem */
    margin-bottom: 0.75rem;
  }

  .competition-info {
    font-size: 1rem; /* Increased from 0.9rem */
    text-align: center;
  }

  .multi-step-form-container {
    padding: 1rem;
  }

  .step-progress {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .step-item {
    flex: 1;
    min-width: 60px;
  }

  .step-label {
    font-size: 0.8125rem; /* Increased from 0.7rem */
    margin-top: 0.25rem;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 1rem; /* Increased from 0.875rem */
  }

  .form-step {
    padding: 1rem 0.5rem;
  }

  .form-section-title {
    font-size: 1.375rem; /* Increased from 1.125rem */
    text-align: center;
    margin-bottom: 1rem;
  }

  .form-navigation {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .form-navigation .btn {
    width: 100%;
    min-height: 48px;
    font-size: 1rem; /* Increased from 0.9rem */
  }

  .file-upload-wrapper {
    text-align: center;
  }

  .file-upload-label {
    display: block;
    text-align: center;
    padding: 1rem;
    margin: 0 auto;
  }

  .file-name {
    text-align: center;
    margin-top: 0.5rem;
  }

  .field-hint {
    text-align: center;
    font-size: 0.9375rem; /* Increased from 0.8rem */
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  html {
    font-size: 16px; /* Increased from 13px for better readability on phones */
  }

  h1 {
    font-size: 1.875rem; /* Increased from 1.5rem */
    line-height: 1.3;
  }

  h2 {
    font-size: 1.625rem; /* Increased from 1.375rem */
    line-height: 1.35;
  }

  h3 {
    font-size: 1.375rem; /* Increased from 1.125rem */
  }

  h4 {
    font-size: 1.125rem; /* Increased from 1rem */
  }

  h5 {
    font-size: 1.0625rem; /* Increased from 0.9375rem */
  }

  h6 {
    font-size: 1rem; /* Increased from 0.875rem */
  }

  p {
    font-size: 1rem; /* Increased from 0.8125rem - much better readability */
    line-height: 1.8;
  }

  .btn-large {
    padding: 0.875rem 1.5rem;
    font-size: 1rem; /* Increased from 0.875rem */
    min-height: 44px;
  }

  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem; /* Increased from 0.875rem */
  }

  .nav-link {
    min-height: 44px;
    padding: 0.625rem 1rem !important;
    font-size: 1rem; /* Increased from 0.875rem */
  }

  .logo-text {
    font-size: 1.125rem; /* Increased from 0.9375rem */
  }

  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1.125rem;
  }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

.mt-1 {
  margin-top: 0.5rem !important;
}
.mt-2 {
  margin-top: 1rem !important;
}
.mt-3 {
  margin-top: 1.5rem !important;
}
.mt-4 {
  margin-top: 2rem !important;
}

.mb-1 {
  margin-bottom: 0.5rem !important;
}
.mb-2 {
  margin-bottom: 1rem !important;
}
.mb-3 {
  margin-bottom: 1.5rem !important;
}
.mb-4 {
  margin-bottom: 2rem !important;
}

.p-1 {
  padding: 0.5rem !important;
}
.p-2 {
  padding: 1rem !important;
}
.p-3 {
  padding: 1.5rem !important;
}
.p-4 {
  padding: 2rem !important;
}

.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

.justify-center {
  justify-content: center !important;
}

.align-center {
  align-items: center !important;
}

.gap-1 {
  gap: 0.5rem !important;
}
.gap-2 {
  gap: 1rem !important;
}
.gap-3 {
  gap: 1.5rem !important;
}

/* ========================================
   Login Page Styles
   ======================================== */

/* Login-specific styles */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    padding: 2rem;
}

.login-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 3rem;
    max-width: 450px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background-color: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo svg {
    width: 50px;
    height: 50px;
    color: var(--primary-green);
}

.login-title {
    font-size: 1.75rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.login-form {
    margin-top: 2rem;
}

.back-to-home {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.back-to-home a {
    color: var(--primary-green);
    font-weight: 500;
}

@media (max-width: 480px) {
    .login-container {
        padding: 2rem 1.5rem;
    }
}
