:root {
  --primary-color: #004E2C;
  --primary-light: #e8f5e9;
  --primary-dark: #003920;
  --secondary-color: #FFC107;
  --text-color: #333333;
  --light-text: #666666;
  --lightest-text: #999999;
  --white: #ffffff;
  --light-bg: #f8f8f8;
  --border-color: #e1e1e1;
  --error-color: #f44336;
  --success-color: #4CAF50;
  --warning-color: #ff9800;
  --info-color: #2196F3;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --border-radius-sm: 4px;
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --transition: all 0.3s ease;
}

/* Base styles */
body {
  font-family: 'Tajawal', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
  padding-top: 76px;
  direction: rtl;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

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

a:hover {
  color: var(--primary-dark);
}

/* Container */
.container {
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}

/* Button styles */
.btn-main {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white) !important;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  border: none;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.btn-main:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--primary-color) !important;
  padding: 10px 22px;
  border-radius: var(--border-radius);
  border: 2px solid var(--primary-color);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Navbar */
.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 15px 0;
  transition: var(--transition);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.navbar-nav .nav-link {
  color: var(--text-color);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
  color: var(--primary-color);
  background-color: var(--primary-light);
}

.navbar-toggler {
  border: none;
  padding: 8px;
}

/* Hero section */
.hero {
  background-image: url('../images/hero-pattern.svg');
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: white;
}

/* Section styles */
.section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--light-text);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Cards */
.card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-title {
  font-weight: 700;
  margin-bottom: 15px;
}

.card-text {
  color: var(--light-text);
  margin-bottom: 20px;
}

/* Features */
.feature-box {
  text-align: center;
  padding: 30px 20px;
  margin-bottom: 30px;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-color);
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.feature-desc {
  color: var(--light-text);
}

/* Form styles */
.form-section {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.form-label {
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-color);
}

.form-control {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 78, 44, 0.1);
}

.input-group-text {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--primary-color);
}

/* Track box */
.track-box {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

/* Status indicators */
.status-pending {
  background-color: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: #856404;
}

.status-success {
  background-color: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.3);
  color: #155724;
}

.status-error {
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #721c24;
}

/* Complaint status styling */
.complaint-status {
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: center;
}

.status-header {
  margin-bottom: 20px;
}

.status-header h3 {
  margin-top: 10px;
  font-size: 1.5rem;
  font-weight: 700;
}

.status-info {
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: var(--border-radius-sm);
  padding: 15px;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 500;
  color: var(--light-text);
}

.info-value {
  font-weight: 600;
}

.status-footer {
  margin-top: 20px;
}

/* Thank you box */
.thank-you-box {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.success-icon {
  font-size: 4rem;
  color: var(--success-color);
  margin-bottom: 20px;
}

.divider {
  height: 3px;
  width: 60px;
  background-color: var(--primary-color);
  margin-bottom: 20px;
}

.serial-info {
  background-color: var(--primary-light);
  border-radius: var(--border-radius);
  padding: 20px;
  margin: 20px 0;
}

.serial-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 2px;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 10px;
  border-radius: var(--border-radius-sm);
  display: inline-block;
  min-width: 200px;
}

/* Footer */
footer {
  background-color: var(--light-bg);
  padding: 60px 0 30px;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 0;
  width: 100%;
  height: 80px;
  background-image: url('../images/waves-footer.svg');
  background-size: cover;
}

.footer-content {
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  gap: 20px;
}

.footer-links a {
  color: var(--text-color);
  margin: 0 10px;
  transition: var(--transition);
}

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

.copyright {
  color: var(--lightest-text);
  font-size: 14px;
  margin-top: 20px;
}

/* Icon circles */
.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-size: 1.5rem;
}

/* Error messages */
.error-message,
.warning-message {
  text-align: center;
  padding: 20px;
  border-radius: var(--border-radius);
}

.error-message {
  background-color: rgba(244, 67, 54, 0.1);
  color: #d32f2f;
}

.warning-message {
  background-color: rgba(255, 152, 0, 0.1);
  color: #e65100;
}

/* Animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .form-section, .track-box, .thank-you-box {
    padding: 20px;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .action-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .serial-number {
    font-size: 1.6rem;
    min-width: auto;
    width: 100%;
  }
  
  .form-section {
    padding: 15px;
  }
  
  .info-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
  }
  
  .info-label {
    margin-bottom: 5px;
  }
}