/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

html, body {
  width: 100vw;
  height: 100vh;
  min-width: 100vw;
  min-height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  overflow-x: hidden;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #f4f7f9;
  color: #34495e;
  line-height: 1.6;
}

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

@media screen and (min-width: 1365px) {
  .container {
    width: 1200px;
  }
}

/* Header - Compact for single screen */
.header {
  background: #063565;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 8px 0;
  position: absolute;
  width: 100%;
  z-index: 10;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo-text {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.3px;
  text-decoration: none;
  margin-right: 20px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.logo-image-tracking {
  width: 120px;
}

.main-nav {
  display: flex;
  gap: 20px;
}

.nav-link {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.nav-link.active, .nav-link:hover {
  background-color: #34495e;
}

/* Footer - Compact for single screen */
.epost-footer {
  width: 100vw;
  background: rgba(20, 40, 80, 0.85);
  padding: 20px 0;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carrier-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.carrier-logos img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0,0,0,0.18));
  opacity: 0.92;
  transition: transform 0.2s;
}

.carrier-logos img:hover {
  transform: scale(1.08);
  opacity: 1;
}

/* Main content wrapper */
.main-content {
  min-height: calc(100vh - 60px - 60px); /* 100vh - header - footer */
  display: flex;
  flex-direction: column;
}

/* Utility Classes */
.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(90deg, #ff9800 0%, #fb8c00 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #fb8c00 0%, #ff9800 100%);
}

.loading {
  text-align: center;
  padding: 20px;
  color: #666;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ff9800;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

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

.error-message {
  background: #ffebee;
  color: #c62828;
  padding: 12px;
  border-radius: 8px;
  margin-top: 10px;
  border: 1px solid #ffcdd2;
}

.error-container {
  text-align: center;
  padding: 40px 20px;
}

.error-container h2 {
  color: #c62828;
  margin-bottom: 20px;
}

/* Responsive - optimized for single screen */
@media (max-width: 768px) {
  .header {
    padding: 6px 0;
  }
  
  .header .container {
    flex-direction: column;
    gap: 8px;
  }
  
  .main-nav {
    order: 1;
    gap: 15px;
  }
  
  .nav-link {
    font-size: 0.8rem;
    padding: 3px 6px;
  }
  
  .carrier-logos {
    gap: 12px;
  }
  
  .carrier-logos img {
    height: 20px;
  }
  
  .logo-image-tracking {
    width: 100px;
  }
  
  .main-content {
    min-height: calc(100vh - 80px - 50px);
  }
}

@media (max-width: 480px) {
  .header {
    padding: 4px 0;
  }
  
  .logo-image-tracking {
    width: 80px;
  }
  
  .main-nav {
    gap: 10px;
  }
  
  .nav-link {
    font-size: 0.75rem;
    padding: 2px 4px;
  }
  
  .carrier-logos img {
    height: 18px;
  }
  
  .main-content {
    min-height: calc(100vh - 70px - 40px);
  }
}

/* Ensure no scroll on small heights */
@media (max-height: 600px) {
  .header {
    padding: 4px 0;
  }
  
  .epost-footer {
    padding: 12px 0;
  }
  
  .carrier-logos img {
    height: 18px;
  }
  
  .main-content {
    min-height: calc(100vh - 50px - 35px);
  }
} 