/* Custom styles on top of Tailwind */

.nav-link {
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  transition: background 0.15s;
  color: #bbf7d0;
}
.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,0.15);
  color: white;
}

.card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  padding: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #166534;
  color: white;
}
.btn-primary:hover:not(:disabled) {
  background: #14532d;
}
.btn-primary:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}
.btn-secondary:hover:not(:disabled) {
  background: #e5e7eb;
}

.btn-danger {
  background: #dc2626;
  color: white;
}
.btn-danger:hover {
  background: #b91c1c;
}

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

.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
}
.badge-cut { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.badge-wd  { background: #fff7ed; color: #ea580c; border: 1px solid #fed7aa; }
.badge-wc  { background: #fefce8; color: #ca8a04; border: 1px solid #fde68a; }
.badge-winner { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

.score-table th {
  background: #f9fafb;
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
}
.score-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
}
.score-table tr:last-child td { border-bottom: none; }
.score-table tr:hover td { background: #f9fafb; }

.golfer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  margin-bottom: 0.375rem;
  background: white;
  cursor: pointer;
  transition: all 0.15s;
}
.golfer-item:hover { border-color: #166534; background: #f0fdf4; }
.golfer-item.selected { border-color: #166534; background: #dcfce7; }
.golfer-item.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

input[type="text"], input[type="number"], select, textarea {
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  outline: none;
  width: 100%;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: #166534;
  box-shadow: 0 0 0 3px rgba(22,101,52,0.1);
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #dcfce7;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.alert-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.alert-warning { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

.your-turn-banner {
  background: linear-gradient(135deg, #166534, #15803d);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 600;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.money-positive { color: #16a34a; font-weight: 600; }
.money-negative { color: #dc2626; font-weight: 600; }
.money-neutral  { color: #6b7280; }
