body {
  background: #f8f9fa;
}

/* Track page styles */
.track-container {
  min-height: calc(100vh - 400px);
  padding: 80px 20px 160px;
  background: #f8f9fa;
  position: relative;
  height: 700px;
}

.track-form-container,
#trackingResult {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  width: 100%;
  transition: opacity 0.3s ease;
}

.track-form-container {
  opacity: 1;
}

#trackingResult {
  display: none;
  opacity: 0;
}

#trackingResult.visible {
  display: block;
}

.track-box,
.error-box {
  max-width: 720px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 60px;
  position: relative;
  overflow: hidden;
}

/* Subtle gradient overlay */
.track-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), #2563eb);
}

.track-header {
  text-align: center;
  margin-bottom: 45px;
  position: relative;
}

.track-header h2 {
  color: var(--primary-color);
  font-size: 32px;
  margin-bottom: 14px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.track-header p {
  color: #6b7280;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* Form styling */
.track-form {
  max-width: 100%;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 32px;
}

.form-group:last-of-type {
  margin-bottom: 40px;
}

.form-label {
  display: block;
  font-weight: 500;
  color: #344767;
  margin-bottom: 12px;
  font-size: 15px;
  letter-spacing: -0.2px;
}

.form-control {
  width: 100%;
  padding: 16px 20px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s ease;
  background: #f8fafc;
}

.form-control:hover {
  border-color: #d1d5db;
  background: white;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.08);
  outline: none;
  background: white;
}

.form-text {
  color: #6b7280;
  font-size: 13px;
  margin-top: 8px;
  padding-left: 2px;
}

.btn-primary {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 500;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  letter-spacing: 0.2px;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.15);
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

/* Result box styling */
.info-box {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 25px;
  transition: all 0.3s ease;
}

.info-box:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #e5e7eb;
}

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

.info-item:first-child {
  padding-top: 0;
}

.info-item label {
  color: #6b7280;
  font-weight: 500;
  font-size: 14px;
}

.info-item span {
  color: #111827;
  font-weight: 500;
  font-size: 15px;
}

/* Status badge styling */
.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Status-specific styles */
.status-under_review .status-badge {
  background: #fff7ed;
  color: #f59e0b;
}

.status-approved .status-badge {
  background: #f0fdf4;
  color: #10b981;
}

.status-rejected .status-badge {
  background: #fef2f2;
  color: #ef4444;
}

/* Back button style */
.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-button:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: #f8fafc;
}

.back-button svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.back-button:hover svg {
  transform: translateX(-2px);
}

/* Alert styling */
.alert {
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
}

.alert-danger {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fee2e2;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .track-container {
    padding: 20px 15px;
  }

  .track-box {
    padding: 30px 20px;
  }

  .track-form {
    padding: 20px;
  }

  .info-box {
    padding: 20px;
  }
}

/* Error box styling */
.error-box {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  padding: 40px;
}

.error-box .track-header {
  text-align: center;
  margin-bottom: 30px;
}

.error-box .track-header h2 {
  color: #dc2626;
  font-size: 24px;
  margin-bottom: 10px;
}

.alert-danger {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1.5px solid #fee2e2;
  border-radius: 12px;
  padding: 20px;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

/* Back button in error state */
.error-box .back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.error-box .back-button:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: #f8fafc;
}

/* Loading spinner styles */
.spinner {
  animation: rotate 2s linear infinite;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
}

.spinner .path {
  stroke: #ffffff;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* Disabled button state */
.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Pending status styles */
.status-pending {
  background-color: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.status-pending svg {
  stroke: #6b7280;
}

/* Status box styles */
.status-box {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.status-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.status-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 8px;
  background: #f9fafb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-details h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.status-details p {
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

/* Status-specific styles */
.status-pending {
  border-left: 5px solid #6b7280;
  background: linear-gradient(to right, #f9fafb, white);
}

.status-review {
  border-left: 5px solid #f59e0b;
  background: linear-gradient(to right, #fffbeb, white);
}

.status-approved {
  border-left: 5px solid #10b981;
  background: linear-gradient(to right, #f0fdf4, white);
}

.status-rejected {
  border-left: 5px solid #ef4444;
  background: linear-gradient(to right, #fef2f2, white);
}

/* Application info styles */
.application-info {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.application-info p {
  margin-bottom: 1rem;
  color: #374151;
  display: flex;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.application-info p strong {
  color: #1f2937;
}

.application-info p:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Track result styles */
.track-result {
  max-width: 800px;
  margin: 0 auto;
}

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

.track-header h2 {
  color: var(--primary-color);
  font-size: 1.875rem;
  margin-bottom: 0.5rem;
}

/* Back button styles */
.back-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid #e5e7eb;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  color: #374151;
  font-weight: 500;
  transition: all 0.2s;
}

.back-button:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.back-button svg {
  width: 20px;
  height: 20px;
}

/* Error message styles */
#trackError {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

#trackError.show {
  display: block;
}

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