@import url('https://fonts.googleapis.com/css2?family=Mona+Sans:wght@200..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {

  /* COLORS */
  --primary: #1f6fff;
  --text: #111827;
  --muted: #64748b;
  --border: #e5e7eb;
  --bg: #f8fafc;

  /* FONT FAMILY */
  --font-main: "Mona Sans", sans-serif;

  /* FONT WEIGHTS */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 600;
  --weight-extrabold: 600;

  /* FONT SIZES */
  --text-xs: 0.8rem;
  --text-sm: 0.92rem;
  --text-base: 1rem;
  --text-md: 1.08rem;
  --text-lg: 1.3rem;
  --text-xl: clamp(3rem, 6vw, 5.2rem);
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;

  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);

  background-size: 32px 32px;
  z-index: -1;
}

/* NAV */

nav {
  height: 72px;
  border-bottom: 1px solid var(--border);

  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);

  display: flex;
  align-items: center;

  padding: 0 40px;

  position: sticky;
  top: 0;
  z-index: 999999;
}

.logo,
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  caret-color: transparent;
  cursor: pointer;
  user-select: none;

  color: var(--primary);
  font-weight: var(--weight-bold);
}

.logo {
  font-size: var(--text-md);
}

.brand {
  font-size: 0.95rem;
}

.logo-box,
.brand-box {
  background: linear-gradient(135deg, #1f6fff, #0d4ed8);
}

.logo-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.brand-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

/* HERO */

.hero {
  width: min(1400px, calc(100% - 60px));
  margin: 40px auto;

  display: grid;
  grid-template-columns: 1.2fr 520px;
  gap: 50px;

  align-items: stretch;
}

.hero-left {
  padding-top: 20px;

  display: flex;
  flex-direction: column;

  height: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 16px;
  border-radius: 999px;

  background: #e7f8ee;
  color: #057857;

  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);

  margin-bottom: 26px;
}

h1 {
  font-size: var(--text-xl);
  line-height: 1.05;
  letter-spacing: -3px;

  margin-bottom: 26px;

  font-weight: var(--weight-extrabold);
}

.h1-map {
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -1.2px;

  margin-bottom: 22px;

  font-weight: var(--weight-bold);
}

h1 span {
  color: var(--primary);
}

.hero-text {
  font-size: var(--text-base);
  line-height: 1.7;

  color: var(--muted);

  max-width: 760px;
  margin-bottom: 40px;

  font-weight: var(--weight-regular);
}

/* MAP */

.map-wrapper {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);

  background: white;

  width: 100%;
  height: 321px;

  flex-grow: 1;
  flex-shrink: 0;

  margin-top: auto;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.04),
    0 2px 10px rgba(0,0,0,0.03);
}

#map {
  width: 100%;
  height: 100%;
}

.leaflet-control-attribution {
  margin-right: 10px !important;
}

/* FORM */

.predictor-card {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);

  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 26px;

  padding: 32px;

  box-shadow:
    0 12px 40px rgba(0,0,0,0.06),
    0 4px 12px rgba(0,0,0,0.04);

  position: sticky;
  top: 30px;
}

.field {
  margin-bottom: 22px;
}

label {
  display: block;

  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);

  margin-bottom: 10px;

  color: #334155;
}

input,
select {
  width: 100%;
  height: 58px;

  border-radius: 16px;
  border: 1px solid var(--border);

  font-size: var(--text-base);
  font-family: var(--font-main);
  font-weight: var(--weight-medium);

  transition: 0.2s ease;
  outline: none;
}

input {
  padding: 0 18px;
  background: white;
}

select {
  padding: 0 18px;
  padding-right: 48px;

  background-color: white;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px;
}

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(31,111,255,0.12);
}

.mode-switch {
  display: flex;

  background: #f1f5f9;

  padding: 6px;
  border-radius: 16px;

  margin-bottom: 22px;
}

.mode-btn {
  flex: 1;

  border: none;
  background: transparent;

  height: 48px;
  border-radius: 12px;

  font-weight: var(--weight-semibold);
  font-family: var(--font-main);
  font-size: var(--text-sm);

  cursor: pointer;
  transition: 0.2s ease;
}

.mode-btn.active {
  background: white;
  color: var(--primary);

  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* SEAT POOL */

.seat-pool {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.seat-option {
  border: 1px solid var(--border);
  border-radius: 16px;

  padding: 16px;

  display: flex;
  align-items: center;
  gap: 10px;

  font-weight: var(--weight-medium);
  font-size: var(--text-base);

  cursor: pointer;
  transition: 0.2s ease;
}

.seat-option:hover {
  border-color: var(--primary);
}

.seat-option input {
  width: auto;
  height: auto;
}

/* DISABLED */

.difficulty-disabled select {
  background-color: #e5e7eb;
  color: #64748b;
  cursor: not-allowed;
}

.difficulty-disabled select:hover {
  cursor: not-allowed;
}

/* NOTE */

.note {
  background: #fff8e7;
  border: 1px solid #fde68a;

  color: #b45309;

  padding: 14px 16px;
  border-radius: 16px;

  font-size: var(--text-sm);
  font-weight: var(--weight-medium);

  margin-bottom: 22px;
}

/* BUTTON */

.predict-btn {
  width: 100%;
  height: 62px;

  border: none;
  border-radius: 18px;

  background: linear-gradient(135deg, #111827, #000);
  color: white;

  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  font-family: var(--font-main);

  cursor: pointer;
  transition: 0.2s ease;
}

.predict-btn:hover {
  transform: translateY(-2px);
}

/* RESULTS LAYOUT */

.layout {
  display: flex;
  height: calc(100vh - 72px);
  width: 100%;
}

/* SIDEBAR */

.sidebar {
  width: 30vw;
  min-width: 420px;
  max-width: 460px;

  background: white;
  border-right: 1px solid var(--border);

  display: flex;
  flex-direction: column;

  overflow: hidden;
}

.content {
  flex: 1;
  overflow-y: auto;
}

.content-inner {
  padding: 22px;
}

.rank-card {
  border: 1px solid var(--border);
  border-radius: 18px;

  background: #fbfbfc;

  padding: 18px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 18px;
}

.rank-title {
  font-size: 1.15rem;
  font-weight: 700;

  margin-bottom: 6px;
}

.rank-sub {
  color: var(--muted);
  font-size: 0.95rem;
}

.edit-btn {
  border: none;
  background: transparent;

  color: var(--primary);

  font-size: 1rem;
  font-weight: 600;

  cursor: pointer;
}

/* SEARCH */

.whatsapp-btn,
.filter-btn,
.mobile-map-btn,
.icon-btn,
.back-btn {
  cursor: pointer;
}

.whatsapp-btn {
  width: 100%;
  height: 56px;

  border-radius: 16px;
  border: 1px solid var(--border);

  background: white;
  

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  font-size: 1rem;
  font-weight: 650;

  margin-bottom: 14px;
}

.search-row {
  display: flex;
  gap: 10px;

  margin-bottom: 14px;
}

.search-box {
  flex: 1;
  height: 56px;

  border-radius: 16px;
  border: 1px solid var(--border);

  background: white;

  padding: 0 16px;

  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;

  width: 100%;

  font-family: inherit;
  font-size: 1rem;
}

.search-box:focus-within{
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(31,111,255,0.12);
}

.filter-btn {
  width: 108px;
  height: 56px;

  border-radius: 16px;
  border: none;

  background: #0b0b0f;
  color: white;

  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
}

/* CHIPS */

.chips {
  display: flex;
  gap: 10px;

  overflow-x: auto;

  margin-bottom: 18px;
}

.chip {
  border-radius: 999px;
  border: 1px solid #d8dbe5;
  cursor: pointer;

  background: white;


  padding: 10px 10px;

  white-space: nowrap;

  font-weight: 600;
  color: #4b5563;
}

.chip.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}


/* COLLEGES */

.college-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.college-card {
  background: white;

  border-radius: 18px;
  border: 1px solid #eceef5;

  padding: 20px;

  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.college-name {
  font-size: 1.15rem;
  line-height: 1.45;
  font-weight: 700;

  margin-bottom: 10px;
}

.probability {
  color: #64748b;
  font-size: 0.92rem;

  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;

  background: #22c55e;
}

.college-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 42px;
  height: 42px;

  border-radius: 12px;
  border: none;

  background: #f3f4f8;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

/* MAP SECTION */

.map-section {
  flex: 1;
  position: relative;
}

.mobile-map-btn {
  display: none;

  width: 100%;
  height: 58px;

  border: none;
  border-radius: 16px;

  background: var(--primary);
  color: white;

  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;

  align-items: center;
  justify-content: center;
  gap: 12px;

  margin-bottom: 18px;
}

/* SCROLL ARROW */

.scroll-arrow {
  position: fixed;

  left: 50%;
  bottom: 18px;

  transform: translateX(-50%);

  border: none;
  background: transparent;

  color: #1f6fff;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.16s ease;

  align-items: center;
  justify-content: center;

  text-shadow:
    0 0 10px rgba(31,111,255,0.8),
    0 0 20px rgba(31,111,255,0.45);

  z-index: 1000;
  cursor: pointer;

  padding: 0;
}

.scroll-arrow svg {
  width: 24px;
  height: 24px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {

  .hero {
    grid-template-columns: 1fr;
  }

  .predictor-card {
    position: relative;
    top: 0;
  }

  .map-wrapper {
    height: 400px;
  }

  .scroll-arrow.visible {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 950px) {

  body {
    overflow: auto;
  }

  .layout {
    display: block;
    height: auto;
  }

  .sidebar {
    width: 100%;
    max-width: none;
    min-width: 0;

    border-right: none;
  }

  .map-section {
  position: fixed;
  inset: 72px 0 0 0;

  z-index: 2000;

  background: white;

  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.map-section.visible {
  transform: translateX(0);
}

  .mobile-map-btn {
    display: flex;
  }
}

@media (max-width: 700px) {

  nav {
    padding: 0 20px;
  }

  .hero {
    width: calc(100% - 30px);
    margin: 24px auto;
  }

  h1 {
    letter-spacing: -2px;
  }

  .hero-text {
    font-size: var(--text-md);
  }

  .predictor-card {
    padding: 22px;
  }
}