/* ===== Predictor Custom Styles ===== */
/* Works with Bootstrap and matches main site theme */

:root {
  --primary: #06BBCC;
  --light: #F0FBFC;
  --dark: #181d38;
}

body {
  font-family: 'Nunito', sans-serif;
}

/* Page Header */
.page-header {
  background: linear-gradient(rgba(24, 29, 56, 0.7), rgba(24, 29, 56, 0.7)),
              url('../img/carousel-1.jpg') center center no-repeat;
  background-size: cover;
}

/* Navbar active link */
.navbar .nav-link.active {
  color: var(--primary) !important;
}

/* Mode Toggle Buttons */
.mode-toggle .mode-btn.active {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

.mode-toggle .mode-btn:not(.active) {
  color: var(--primary);
  border-color: var(--primary);
}

.mode-toggle .mode-btn:not(.active):hover {
  background-color: var(--light);
}

/* Rank Emoji */
.rank-emoji {
  font-size: 3rem;
}

/* Chance Badges */
.badge-safe {
  background-color: #198754 !important;
}

.badge-good {
  background-color: #ffc107 !important;
  color: #000 !important;
}

.badge-reach {
  background-color: #dc3545 !important;
}

/* Results section */
.results.hidden {
  display: none !important;
}

.hidden {
  display: none !important;
}

/* College Cards (Mobile) */
.college-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.college-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-num {
  width: 32px;
  height: 32px;
  background: var(--light);
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.card-body {
  flex: 1;
  min-width: 0;
}

.card-name {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.875rem;
  color: #6c757d;
}

.card-separator {
  width: 4px;
  height: 4px;
  background: #adb5bd;
  border-radius: 50%;
}

.card-badge {
  margin-left: auto;
}

/* Table Styles */
.college-table.hidden {
  display: none !important;
}

.college-table thead th {
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
  border-bottom: 2px solid #dee2e6;
}

.th-num {
  width: 50px;
  text-align: center;
}

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

.th-chance {
  width: 100px;
  text-align: center;
}

.td-num {
  text-align: center;
  color: #6c757d;
  font-weight: 600;
}

.td-name {
  font-weight: 600;
}

.td-cutoff {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

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

/* Lead Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-card {
  width: 100%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;
}

/* Form focus states */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(6, 187, 204, 0.25);
}

/* Button Primary Override */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #059aa8;
  border-color: #059aa8;
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

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

/* Footer Links */
.footer .btn-link {
  display: block;
  padding: 0.25rem 0;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.footer .btn-link:hover {
  color: var(--primary);
}

/* Badge colors */
.bg-primary {
  background-color: var(--primary) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .college-table {
    display: none !important;
  }

  .college-list:not(.hidden) {
    display: flex !important;
  }

  .rank-emoji {
    font-size: 2rem;
  }
}

@media (min-width: 769px) {
  .college-list {
    display: none !important;
  }

  .college-table:not(.hidden) {
    display: table !important;
  }
}

/* Animation */
.results:not(.hidden) {
  animation: fadeInUp 0.4s ease;
}

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

/* Input error state */
.form-control.input-error,
.form-select.input-error {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}
