:root {
  --primary: #0B1F3A;
  --accent: #C8A24A;
  --bg: #F6F7FB;
  --card: #FFFFFF;
  --text: #0F172A;
  --muted: #475569;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.navbar {
  background: var(--primary);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-logo {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent);
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  min-height: calc(100vh - 180px);
}

.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

.hero {
  position: relative;
  text-align: center;
  padding: 5rem 2rem;
  background-image: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  color: white;
  border-radius: 14px;
  margin-bottom: 3.5rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 58, 0.75);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  animation: fadeUp 0.6s ease-out;
}

.subheadline {
  font-size: 1.15rem;
  opacity: 0.95;
  animation: fadeUp 0.6s ease-out 0.1s backwards;
}

section {
  margin-bottom: 3.5rem;
}

section h2 {
  color: var(--primary);
  margin-bottom: 1.75rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.pathway-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.pathway-card {
  background: var(--card);
  padding: 1.75rem;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.pathway-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.pathway-card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.pathway-card ul {
  margin-top: 1rem;
  padding-left: 1.25rem;
}

.pathway-card li {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.75rem;
}

.requirement {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 14px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.requirement:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.requirement h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.boundaries-content {
  background: #FEF3C7;
  padding: 1.5rem;
  border-radius: 14px;
  border-left: 4px solid var(--accent);
}

.cta {
  text-align: center;
  background: var(--card);
  padding: 3rem;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.cta:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.cta h2 {
  margin-bottom: 0.5rem;
}

.cta p {
  margin-bottom: 1.75rem;
  color: var(--muted);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

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

.btn-primary:hover {
  background: #0d2647;
  box-shadow: 0 0 16px rgba(200, 162, 74, 0.35);
}

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

.btn-secondary:hover {
  background: #334155;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-success {
  background: #059669;
  color: white;
}

.btn-success:hover {
  background: #047857;
  box-shadow: 0 0 12px rgba(5, 150, 105, 0.3);
}

.btn-danger {
  background: #DC2626;
  color: white;
}

.btn-danger:hover {
  background: #B91C1C;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.3);
}

.btn-warning {
  background: #D97706;
  color: white;
}

.btn-warning:hover {
  background: #B45309;
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.3);
}

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

.btn-muted {
  background: #94A3B8;
  color: white;
}

.btn-muted:hover {
  background: #64748B;
}

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

.apply-section {
  max-width: 700px;
  margin: 0 auto;
}

.apply-section h1 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.apply-intro {
  color: var(--muted);
  margin-bottom: 2rem;
}

.apply-form {
  background: var(--card);
  padding: 2.5rem;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 162, 74, 0.15);
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radio-group label,
.checkbox-group label {
  font-weight: normal;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.agreement-group {
  background: var(--bg);
  padding: 1rem;
  border-radius: 8px;
}

.agreement-group label {
  font-weight: normal;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.alert-error {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.alert-success {
  background: #D1FAE5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.admin-login {
  max-width: 400px;
  margin: 2rem auto;
  text-align: center;
}

.admin-login h1 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.login-form {
  background: var(--card);
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.admin-dashboard h1 {
  color: var(--primary);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.admin-actions {
  display: flex;
  gap: 0.75rem;
}

.filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 0.5rem 1rem;
  background: var(--card);
  border: 2px solid #E2E8F0;
  border-radius: 24px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.filter-chip-muted {
  background: #F1F5F9;
  color: #64748B;
}

.filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-chip.active {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
  font-weight: 600;
}

.table-container {
  overflow-x: auto;
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.applications-table th,
.applications-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid #F1F5F9;
}

.applications-table th {
  background: var(--bg);
  font-weight: 600;
  color: var(--primary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.applications-table tbody tr:nth-child(even) {
  background: #FAFBFC;
}

.applications-table tbody tr:hover {
  background: #F1F5F9;
}

.status-badge {
  display: inline-block;
  padding: 0.3rem 0.875rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-badge.status-new {
  background: #DBEAFE;
  color: #1D4ED8;
}

.status-badge.status-approved {
  background: #D1FAE5;
  color: #059669;
}

.status-badge.status-approved_deposit_required,
.status-badge.status-payment_required {
  background: #FEF3C7;
  color: #D97706;
}

.status-badge.status-deposit_paid {
  background: #D1FAE5;
  color: #059669;
}

.status-badge.status-paid_in_full {
  background: #DBEAFE;
  color: #1D4ED8;
}

.status-badge.status-archived {
  background: #F1F5F9;
  color: #64748B;
}

.status-badge.status-rejected {
  background: #FEE2E2;
  color: #DC2626;
}

.actions-cell {
  white-space: nowrap;
}

.actions-cell form {
  display: inline-block;
  margin-right: 0.25rem;
}

.notes-row {
  background: var(--bg) !important;
}

.notes-section {
  padding: 1rem;
}

.app-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
}

.app-details p {
  margin: 0;
  font-size: 0.9rem;
}

.notes-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.notes-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  resize: vertical;
  font-family: inherit;
}

.notes-form button {
  align-self: flex-start;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  background: var(--card);
  border-radius: 14px;
  color: var(--muted);
}

.status-section {
  max-width: 600px;
  margin: 2rem auto;
}

.status-card {
  background: var(--card);
  padding: 3rem;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
}

.status-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-icon-pending {
  background: #DBEAFE;
  color: #1D4ED8;
}

.status-icon-approved {
  background: #D1FAE5;
  color: #059669;
}

.status-icon-rejected {
  background: #FEE2E2;
  color: #DC2626;
}

.status-card h1 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.status-message {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.status-info {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
  text-align: left;
}

@media (max-width: 600px) {
  .payment-options {
    grid-template-columns: 1fr;
  }
}

.payment-option {
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.5rem;
}

.payment-option h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.payment-option p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.payment-option .btn {
  width: 100%;
  text-align: center;
}

.payment-option-featured {
  background: #F0FDF4;
  border-color: #A7F3D0;
}

.status-footer {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
  padding-top: 1.5rem;
  border-top: 1px solid #E2E8F0;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.delete-confirm-section {
  max-width: 500px;
  margin: 2rem auto;
}

.delete-confirm-card {
  background: var(--card);
  padding: 2.5rem;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
}

.delete-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: #FEE2E2;
  color: #DC2626;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delete-confirm-card h1 {
  color: #DC2626;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.delete-warning {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.application-summary {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 1rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.application-summary p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
}

.confirm-checkbox {
  margin-bottom: 1.5rem;
  text-align: left;
}

.confirm-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
}

.confirm-checkbox input[type="checkbox"] {
  margin-top: 0.25rem;
}

.delete-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.delete-form {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .hero {
    padding: 3.5rem 1.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }
  
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .applications-table {
    font-size: 0.9rem;
  }
  
  .applications-table th,
  .applications-table td {
    padding: 0.75rem;
  }
}
