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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

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

header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 20px 0;
  margin-bottom: 40px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

header h1 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 1.8rem;
  color: #1a1a1a;
}

header .tagline {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 0.95rem;
  color: #666;
  margin-top: 4px;
}

nav {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 15px;
}

nav button {
  padding: 10px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  color: #666;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

nav button.active {
  color: #1a1a1a;
  border-bottom-color: #0066cc;
}

nav button:hover {
  color: #1a1a1a;
}

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

label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

input, textarea, select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-row.wide {
  grid-template-columns: 1fr;
}

button.primary {
  background: #0066cc;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

button.primary:hover {
  background: #0052a3;
}

button.secondary {
  background: #f0f0f0;
  color: #1a1a1a;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

button.secondary:hover {
  background: #e8e8e8;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.tabs button {
  padding: 10px 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tabs button.active {
  color: #0066cc;
  border-bottom-color: #0066cc;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.csv-info {
  background: #f0f7ff;
  border: 1px solid #b3d9ff;
  border-radius: 4px;
  padding: 12px;
  font-size: 0.85rem;
  color: #003d99;
  margin-bottom: 16px;
}

.csv-info strong {
  display: block;
  margin-bottom: 4px;
}

.csv-info code {
  background: #fff;
  padding: 2px 4px;
  border-radius: 2px;
  font-family: monospace;
  font-size: 0.8rem;
}

.success-message {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.loading {
  display: inline-block;
  color: #0066cc;
  font-weight: 500;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.stat-card h3 {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card .value {
  font-size: 2.2rem;
  font-weight: 600;
  color: #1a1a1a;
}

.stat-card .currency {
  font-size: 0.9rem;
  color: #0066cc;
  margin-top: 4px;
}

.claims-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.claims-table thead {
  background: #f9f9f9;
  border-bottom: 2px solid #e0e0e0;
}

.claims-table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.claims-table td {
  padding: 12px;
  border-top: 1px solid #e0e0e0;
  font-size: 0.9rem;
}

.claims-table tr:hover {
  background: #fafafa;
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-in_appeal {
  background: #cfe2ff;
  color: #084298;
}

.status-resolved {
  background: #d1e7dd;
  color: #0f5132;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .claims-table {
    font-size: 0.8rem;
  }

  .claims-table th, .claims-table td {
    padding: 8px;
  }
}
