/* Common styles shared across all pages */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  background: #f7fafc;
  min-height: 100vh;
  color: #4a5568;
}

/* Header */
.header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
  aspect-ratio: 199 / 36;
}

/* Navigation */
.main-nav {
  display: flex;
  gap: 8px;
}

.main-nav a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: #4a5568;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.main-nav a:hover {
  color: #2d3748;
  border-bottom-color: #ffd4b8;
}

.main-nav a:focus-visible {
  outline: 2px solid #ff6900;
  outline-offset: 2px;
  border-radius: 4px;
}

.main-nav a[aria-current='page'] {
  color: #2d3748;
  font-weight: 600;
  border-bottom-color: #ff6900;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #ff6900;
  color: #ffffff;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover {
  background: #e65c00;
}

.btn-secondary {
  background: #f7fafc;
  color: #4a5568;
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

/* Cards */
.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
}

/* Form elements */
input[type='file'],
input[type='date'],
input[type='text'] {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #4a5568;
  background: #ffffff;
  transition: border-color 0.2s ease;
}

input[type='file']:focus,
input[type='date']:focus,
input[type='text']:focus {
  outline: none;
  border-color: #ff6900;
}

/* Section headers */
.section-header {
  color: #2d3748;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #ff6900;
}

/* Loading states */
.loading {
  text-align: center;
  padding: 40px;
  color: #a0aec0;
  font-style: italic;
}

/* Utility classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 16px 20px;
  }

  .main-nav {
    flex-basis: 100%;
    justify-content: center;
    gap: 4px;
  }

  .main-nav a {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}
