/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #000000;
  --secondary-color: #ffffff;
  --accent-color: #00b48d;
  --error-color: #e74c3c;
  --text-color: #333333;
  --text-light: #666666;
  --border-color: #e0e0e0;
  --bg-color: #f5f5f5;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px 0;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.header .subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* Loading state */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-color);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-container p {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* Error state */
.error-container {
  background: white;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.error-container h2 {
  font-size: 1.8rem;
  color: var(--error-color);
  margin-bottom: 15px;
}

.error-container p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 25px;
  line-height: 1.8;
}

.retry-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retry-button:hover {
  background-color: #333333;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.retry-button:active {
  transform: translateY(0);
}

/* Tracking container */
.tracking-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tracking-info {
  padding: 20px;
  background-color: #fafafa;
  border-bottom: 1px solid var(--border-color);
}

.tracking-info p {
  font-size: 1rem;
  color: var(--text-color);
}

.tracking-info strong {
  font-weight: 600;
}

/* Iframe wrapper */
.iframe-wrapper {
  flex: 1;
  position: relative;
  min-height: 600px;
  background: white;
}

.iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .header .subtitle {
    font-size: 1rem;
  }

  .container {
    padding: 15px;
  }

  .error-container {
    padding: 30px 20px;
  }

  .iframe-wrapper {
    min-height: 500px;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.6rem;
  }

  .header .subtitle {
    font-size: 0.95rem;
  }

  .error-container h2 {
    font-size: 1.5rem;
  }

  .iframe-wrapper {
    min-height: 400px;
  }
}

/* Print styles */
@media print {
  .header,
  .footer,
  .retry-button {
    display: none;
  }

  .tracking-container {
    box-shadow: none;
  }
}

