:root {
  --braves-navy: #13274F;
  --braves-red: #CE1141;
  --braves-gold: #EAAA00;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-700: #374151;
  --gray-900: #111827;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--gray-100);
}

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

/* Navbar */
.navbar {
  background: linear-gradient(135deg, var(--braves-navy) 0%, #1a3560 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.nav-brand a {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.3s;
}

.nav-link:hover {
  background: rgba(255,255,255,0.1);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid white;
}

.user-name {
  font-weight: 500;
}

/* Alerts */
.alert {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
  text-align: center;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #3b82f6;
}

/* Hero */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 4rem 0;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.hero-logo {
  width: 120px;
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.25rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.hero-subheader {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.hero-subheader-small {
  font-size: 1rem;
  margin-top: 0.5rem;
  font-style: italic;
  color: var(--braves-gold);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Verification Message */
.verification-message {
  background: white;
  border-radius: 8px;
  padding: 4rem 2rem;
  text-align: center;
  max-width: 600px;
  margin: 4rem auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.verification-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.verification-message h2 {
  color: var(--braves-navy);
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.verification-message p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
  font-weight: 500;
}

.btn-primary {
  background: var(--braves-red);
  color: white;
}

.btn-primary:hover {
  background: #b00f37;
}

.btn-secondary {
  background: var(--gray-700);
  color: white;
}

.btn-secondary:hover {
  background: var(--gray-900);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge-secondary {
  background: var(--gray-200);
  color: var(--gray-700);
}

.badge-viewer {
  background: var(--gray-200);
  color: var(--gray-700);
}

.badge-user {
  background: #dbeafe;
  color: #1e40af;
}

.badge-admin {
  background: #fce7f3;
  color: #9f1239;
}

.badge-manager {
  background: #e0e7ff;
  color: #4338ca;
}

/* Controls Bar */
.controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
}

.view-toggle .btn.active {
  background: transparent;
  border: 2px solid var(--braves-navy);
  color: var(--braves-navy);
  font-weight: 600;
}

/* Input */
.input {
  padding: 0.5rem;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-size: 1rem;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Compact Game Card Design - Tufte-inspired */
.game-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px;
  max-height: 320px;
}

.game-card:hover {
  border-color: var(--braves-navy);
  box-shadow: 0 2px 8px rgba(19, 39, 79, 0.12);
}

/* Compact Header */
.game-card-header {
  background: linear-gradient(135deg, var(--braves-navy) 0%, #1a3560 100%);
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid var(--braves-red);
}

.game-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex: 1;
}

.game-date-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  min-width: 70px;
}

.date-num {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.date-day {
  font-size: 0.7rem;
  text-transform: uppercase;
  opacity: 0.85;
  letter-spacing: 0.05em;
  margin-top: 0.125rem;
}

.game-info {
  flex: 1;
}

.opponent-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}

.game-time-compact {
  font-size: 0.8rem;
  opacity: 0.85;
}

.opponent-logo-compact {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: white;
  border-radius: 4px;
  padding: 0.375rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Compact Body */
.game-card-body-compact {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  flex: 1;
}

/* Info Rows - Clean data presentation */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.info-row:last-of-type {
  margin-bottom: 0.5rem;
}

.info-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}

.info-icon {
  font-size: 1rem;
}

.info-details {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.price-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-900);
  font-variant-numeric: tabular-nums;
}

.status-badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-badge.available {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.unavailable {
  background: var(--gray-200);
  color: var(--gray-600);
}

.text-muted-sm {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Action Grid - Always 3 columns for consistency */
.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: auto;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 0.5rem;
  background: var(--braves-red);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 52px;
}

.action-btn:hover:not(:disabled) {
  background: #b00f37;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(206, 17, 65, 0.25);
}

.action-btn:active:not(:disabled) {
  transform: translateY(0);
}

.action-btn-parking {
  background: #0284c7;
}

.action-btn-parking:hover:not(:disabled) {
  background: #0369a1;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.action-btn-disabled {
  background: var(--gray-200);
  color: var(--gray-500);
  cursor: not-allowed;
  opacity: 0.6;
}

.action-btn-disabled:hover {
  transform: none;
  box-shadow: none;
}

.btn-label {
  font-size: 0.8rem;
  line-height: 1.2;
  margin-bottom: 0.125rem;
}

.btn-price {
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.text-muted {
  color: var(--gray-700);
  font-size: 0.875rem;
}

/* Table View */
.table-container {
  background: white;
  border-radius: 8px;
  overflow-x: auto;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--braves-navy);
  color: white;
}

th, td {
  padding: 1rem;
  text-align: left;
}

tbody tr {
  border-bottom: 1px solid var(--gray-200);
}

tbody tr:hover {
  background: var(--gray-100);
}

/* Claims List */
.claims-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.claim-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1.5rem;
}

.claim-card.unpaid {
  border-left: 4px solid var(--warning);
}

.claim-card.paid {
  border-left: 4px solid var(--success);
}

.claim-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.claim-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.opponent {
  color: var(--gray-700);
  font-size: 0.875rem;
}

.claim-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
}

.claim-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-item {
  display: flex;
  gap: 0.5rem;
}

.detail-item .label {
  font-weight: 500;
  min-width: 100px;
}

.detail-item .value.amount {
  color: var(--braves-red);
  font-weight: bold;
}

.claim-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Season Summary Cards */
.season-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.summary-card.paid {
  border-left: 4px solid var(--success);
}

.summary-card.unpaid {
  border-left: 4px solid var(--warning);
}

.summary-icon {
  font-size: 2.5rem;
}

.summary-content {
  flex: 1;
}

.summary-value {
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--braves-navy);
}

.summary-label {
  font-size: 0.875rem;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Admin Dashboard */
.admin-actions {
  display: flex;
  gap: 0.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card.warning {
  background: #fff3cd;
  border: 2px solid #ffc107;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--braves-navy);
}

.stat-value.success {
  color: var(--success);
}

.stat-value.warning {
  color: var(--warning);
}

.alert-error {
  background: #f8d7da;
  border: 1px solid #f5c2c7;
  border-radius: 8px;
  padding: 1rem;
  color: #842029;
}

/* Claims Management Styles */
.payment-checkbox,
.transferred-checkbox {
  display: inline-block;
  user-select: none;
  transition: transform 0.1s;
}

.payment-checkbox:hover,
.transferred-checkbox:hover {
  transform: scale(1.2);
}

.usage-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
}

.usage-badge[data-usage="stubhub"] {
  background: #ffc107;
  color: #000;
}

.usage-badge[data-usage="facebook"] {
  background: #1877f2;
  color: #fff;
}

.usage-badge[data-usage="family"] {
  background: #28a745;
  color: #fff;
}

.usage-badge[data-usage="given"] {
  background: #6c757d;
  color: #fff;
}

.usage-badge[data-usage="mytick3ts"] {
  background: var(--braves-navy);
  color: #fff;
}

.usage-badge[data-usage="none"] {
  background: #e9ecef;
  color: #6c757d;
}

.btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.btn-usage {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #495057;
}

.btn-usage:hover {
  background: #e9ecef;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--gray-200);
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  color: var(--gray-700);
  transition: all 0.3s;
}

.tab-btn.active {
  color: var(--braves-navy);
  border-bottom-color: var(--braves-navy);
  font-weight: 500;
}

.tab-content {
  display: none;
}

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

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--gray-700);
}

.modal-close:hover {
  color: var(--gray-900);
}

.modal-game-info {
  background: var(--gray-100);
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.total-preview {
  background: var(--braves-navy);
  color: white;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 8px;
}

.empty-state h2 {
  margin-bottom: 1rem;
  color: var(--gray-700);
}

/* Footer */
.footer {
  background: var(--braves-navy);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

/* Error Page */
.error-page {
  text-align: center;
  padding: 4rem 2rem;
}

.error-page h1 {
  font-size: 4rem;
  color: var(--braves-red);
  margin-bottom: 1rem;
}

/* Import Page */
.import-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.import-instructions {
  background: white;
  padding: 2rem;
  border-radius: 8px;
}

.import-instructions ul {
  margin-left: 1.5rem;
}

.import-instructions .note {
  background: var(--gray-100);
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
}

.import-form {
  background: white;
  padding: 2rem;
  border-radius: 8px;
}

.import-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 4px;
}

.import-result.success {
  background: #d1fae5;
  color: #065f46;
}

.import-result.error {
  background: #fee2e2;
  color: #991b1b;
}

/* Receipt Page */
.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.receipt-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.receipt-controls .input {
  min-width: 250px;
}

.receipt-container {
  background: white;
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.receipt-title {
  text-align: center;
  margin-bottom: 2rem;
}

.receipt-logo {
  width: 100px;
  height: auto;
  margin-bottom: 1rem;
}

.receipt-title h1 {
  font-size: 2rem;
  color: var(--braves-navy);
  margin-bottom: 0.5rem;
}

.receipt-title h2 {
  font-size: 1.25rem;
  color: var(--gray-700);
  font-weight: normal;
}

.receipt-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.receipt-section {
  font-size: 0.95rem;
  line-height: 1.6;
}

.receipt-divider {
  border: none;
  border-top: 2px solid var(--gray-300);
  margin: 2rem 0;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.receipt-table thead {
  background: var(--gray-100);
}

.receipt-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--gray-900);
  border-bottom: 2px solid var(--gray-300);
}

.receipt-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.receipt-table tbody tr:last-child td {
  border-bottom: none;
}

.receipt-date {
  white-space: nowrap;
  font-weight: 500;
}

.receipt-date small {
  color: var(--gray-700);
  font-size: 0.85rem;
}

.receipt-details {
  font-size: 0.9rem;
  line-height: 1.6;
}

.receipt-amount {
  white-space: nowrap;
}

.receipt-amount .status-paid {
  color: var(--success);
  font-weight: 500;
}

.receipt-amount .status-unpaid {
  color: var(--warning);
  font-weight: 500;
}

.receipt-totals {
  text-align: right;
  margin-top: 2rem;
}

.receipt-total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  font-size: 1.1rem;
}

.receipt-total-row.paid-row {
  color: var(--success);
}

.receipt-total-row.unpaid-row {
  color: var(--warning);
  font-size: 1.25rem;
  border-top: 2px solid var(--gray-300);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.receipt-payment-info {
  background: var(--gray-100);
  padding: 1.5rem;
  border-radius: 6px;
  margin-top: 2rem;
  text-align: center;
  border-left: 4px solid var(--warning);
}

.receipt-footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-700);
}

.receipt-footer p {
  margin: 0.5rem 0;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .import-container {
    grid-template-columns: 1fr;
  }

  .claim-body {
    grid-template-columns: 1fr;
  }

  .controls-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filters {
    flex-direction: column;
  }

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

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

  .receipt-container {
    padding: 1.5rem;
  }

  .receipt-info {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .receipt-table {
    font-size: 0.85rem;
  }

  .receipt-table th,
  .receipt-table td {
    padding: 0.5rem;
  }

  .season-summary {
    grid-template-columns: 1fr;
  }
}
