/* ===== DESIGN SYSTEM: Incheon Split ===== */
:root {
  --burgundy: #4D0B18;
  --burgundy-light: #6B1525;
  --burgundy-hover: #3A0812;
  --orange: #F26223;
  --orange-light: #F47D47;
  --orange-hover: #D9531A;
  --navy: #0C2647;
  --navy-light: #132F54;
  --off-white: #F8F5F1;
  --sky: #559EFC;
  --sky-light: #7AB4FD;
  --white: #FFFFFF;
  --text-dark: #2C1A10;
  --text-mid: #5C5250;
  --text-light: #9B9290;
  --text-muted: #B8B0AC;
  --border: #E8E2DC;
  --border-light: #F0EBE7;
  --rose-bg: #FDF2F0;
  --shadow-sm: 0 1px 3px rgba(77,11,24,0.04), 0 2px 8px rgba(77,11,24,0.03);
  --shadow-md: 0 4px 12px rgba(77,11,24,0.06), 0 2px 6px rgba(77,11,24,0.04);
  --shadow-lg: 0 12px 40px rgba(77,11,24,0.08), 0 4px 12px rgba(77,11,24,0.04);
  --shadow-xl: 0 20px 60px rgba(77,11,24,0.1), 0 8px 20px rgba(77,11,24,0.05);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

/* ===== BASE ===== */
html {
  position: relative;
  min-height: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--off-white);
  color: var(--text-mid);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  color: var(--text-dark);
}

a {
  color: var(--orange);
  transition: color 0.2s;
}
a:hover {
  color: var(--orange-hover);
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--white) !important;
  padding: 0 2rem;
  height: 64px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  z-index: 100;
}
.navbar .container-fluid {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
}
.navbar-brand {
  font-family: 'Sora', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.1rem !important;
  color: var(--burgundy) !important;
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}
.navbar-brand .brand-slash {
  color: var(--orange);
  margin: 0 0.35rem;
  font-weight: 800;
}
.navbar .nav-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-light) !important;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.navbar .nav-link:hover {
  color: var(--burgundy) !important;
  background: var(--off-white);
}
.navbar .nav-link.active {
  color: var(--burgundy) !important;
  font-weight: 600;
  background: var(--rose-bg);
}
.navbar .nav-link.dropdown-toggle.text-warning {
  color: var(--orange) !important;
}
.nav-region-pill {
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--orange);
  background: rgba(242,98,35,0.08);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  display: inline-block;
}
.navbar .btn-nav-logout {
  background: var(--off-white);
  color: var(--text-mid);
  border: 1px solid var(--border);
  padding: 0.38rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.15s;
}
.navbar .btn-nav-logout:hover {
  background: var(--white);
  border-color: var(--text-light);
}
.navbar .nav-email-text {
  font-size: 0.82rem;
  color: var(--text-light);
}
.navbar-toggler {
  border-color: var(--border) !important;
}
.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(77,11,24,0.08);
}
.dropdown-menu {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 0.35rem;
}
.dropdown-item {
  border-radius: 6px;
  font-size: 0.88rem;
  padding: 0.45rem 0.85rem;
}
.dropdown-item.active,
.dropdown-item:active {
  background: var(--rose-bg);
  color: var(--burgundy);
}
.dropdown-item:hover {
  background: var(--off-white);
}

/* ===== HERO SPLIT ===== */
.hero {
  display: flex;
  min-height: 480px;
  position: relative;
  overflow: hidden;
}
.hero-left {
  flex: 1;
  background: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 4rem 3rem 4rem 2rem;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  z-index: 2;
}
.hero-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.hero-left-content {
  max-width: 500px;
  position: relative;
  z-index: 1;
}
.hero-left-content h1 {
  font-family: 'Sora', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.6s ease-out 0.1s both;
}
.hero-left-content h1 .accent {
  color: var(--orange);
}
.hero-left-content p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 400;
  animation: fadeUp 0.6s ease-out 0.2s both;
}
.hero-right {
  flex: 1;
  background: var(--off-white);
  display: flex;
  align-items: center;
  padding: 4rem 2rem 4rem 5rem;
  position: relative;
}
.hero-right-content {
  max-width: 420px;
}
.hero-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: fadeUp 0.5s ease-out 0.15s both;
}
.hero-logos img {
  height: 70px;
  width: auto;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.hero-event-tag {
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--burgundy);
  background: var(--white);
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.5s ease-out 0.2s both;
}
.hero-details {
  animation: fadeUp 0.5s ease-out 0.25s both;
}
.hero-details h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}
.hero-details p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  animation: fadeUp 0.5s ease-out 0.35s both;
}

/* ===== PREREGISTRATION DEADLINE ===== */
.preregistration-deadline {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-top: 0.5rem;
}
.deadline-urgent {
  color: var(--orange);
  font-weight: 700;
}

/* ===== INFO CARDS ===== */
.info-section {
  background: var(--off-white);
  padding: 4rem 2rem;
}
.info-section-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.section-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  letter-spacing: -0.3px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--burgundy);
  transition: all 0.25s;
}
.info-card:nth-child(2),
.info-card:nth-child(3) {
  border-left-color: var(--orange);
}
.info-card:nth-child(4) {
  border-left-color: var(--burgundy);
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.info-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.info-card:nth-child(1) .info-card-icon,
.info-card:nth-child(4) .info-card-icon {
  background: rgba(77,11,24,0.06);
}
.info-card:nth-child(2) .info-card-icon,
.info-card:nth-child(3) .info-card-icon {
  background: rgba(242,98,35,0.08);
}
.info-card-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}
.info-card-body {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.info-card-body strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* ===== CONTENT AREA ===== */
.content-area {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

/* ===== ALERT BAR ===== */
.alert-bar {
  background: var(--rose-bg);
  border-left: 4px solid var(--burgundy);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: var(--burgundy);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}
.alert-bar strong {
  font-weight: 700;
}

/* ===== TABLE CARD ===== */
.table-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--burgundy);
  margin-bottom: 2rem;
}

/* ===== LOGIN SPLIT ===== */
.login-split {
  position: relative;
  padding: 5rem 2rem;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}
.login-bg-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background: var(--burgundy);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  z-index: 0;
}
.login-bg-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.login-bg-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: var(--white);
  z-index: 0;
}
.login-container {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border-light);
}
.login-card h1,
.login-card h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
  letter-spacing: -0.3px;
}
.login-card .login-sub {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-bottom: 2rem;
  line-height: 1.55;
}

/* ===== BOOTSTRAP COMPONENT OVERRIDES ===== */

/* Buttons */
.btn-primary {
  font-family: 'Sora', sans-serif;
  background-color: var(--orange) !important;
  border-color: var(--orange) !important;
  color: var(--white) !important;
  font-weight: 700;
  padding: 0.65rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  transition: all 0.25s;
  box-shadow: 0 4px 14px rgba(242,98,35,0.25);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--orange-hover) !important;
  border-color: var(--orange-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242,98,35,0.3);
}
.btn-secondary {
  font-family: 'Sora', sans-serif;
  background-color: var(--white) !important;
  color: var(--burgundy) !important;
  border: 2px solid var(--border) !important;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.btn-secondary:hover,
.btn-secondary:focus {
  border-color: var(--burgundy) !important;
  background-color: var(--off-white) !important;
  color: var(--burgundy) !important;
  transform: translateY(-2px);
}
.btn-outline-secondary {
  font-family: 'Sora', sans-serif;
  color: var(--burgundy);
  border-color: var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s;
}
.btn-outline-secondary:hover {
  background: var(--off-white);
  border-color: var(--burgundy);
  color: var(--burgundy);
}
.btn-outline-primary {
  font-family: 'Sora', sans-serif;
  color: var(--orange);
  border-color: var(--orange);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.2s;
}
.btn-outline-primary:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}
.btn-success {
  background-color: #16a34a !important;
  border-color: #16a34a !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.btn-sm {
  font-family: 'Sora', sans-serif;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
}
.btn-link {
  color: var(--orange);
  font-weight: 500;
  text-decoration: none;
}
.btn-link:hover {
  color: var(--orange-hover);
  text-decoration: underline;
}

/* Login-specific button */
.login-card .btn-primary {
  background-color: var(--burgundy) !important;
  border-color: var(--burgundy) !important;
  width: 100%;
  padding: 0.78rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  box-shadow: 0 4px 14px rgba(77,11,24,0.2);
}
.login-card .btn-primary:hover {
  background-color: var(--burgundy-hover) !important;
  border-color: var(--burgundy-hover) !important;
  box-shadow: 0 8px 24px rgba(77,11,24,0.25);
}

/* Tables */
.table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(77,11,24,0.015);
  --bs-table-hover-bg: rgba(77,11,24,0.02);
  border-collapse: collapse;
  font-size: 0.88rem;
}
.table thead th {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  padding: 0.85rem 1.25rem;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  border-top: none;
}
.table tbody td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-mid);
  vertical-align: middle;
}
.table tbody tr:last-child td {
  border-bottom: none;
}
.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-bg-type: rgba(77,11,24,0.015);
}

/* Badges */
.badge {
  font-family: 'Plus Jakarta Sans', sans-serif;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge.text-bg-danger,
.badge.bg-danger {
  background-color: var(--rose-bg) !important;
  color: var(--burgundy) !important;
}
.badge.text-bg-success,
.badge.bg-success {
  background-color: rgba(34,197,94,0.08) !important;
  color: #16a34a !important;
}
.badge.text-bg-warning,
.badge.bg-warning {
  background-color: rgba(242,98,35,0.08) !important;
  color: var(--orange) !important;
}
.badge.text-bg-info,
.badge.bg-info {
  background-color: rgba(85,158,252,0.08) !important;
  color: var(--sky) !important;
}
.badge.text-bg-secondary,
.badge.bg-secondary {
  background-color: var(--off-white) !important;
  color: var(--text-mid) !important;
}

/* Alerts */
.alert {
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  border: none;
  line-height: 1.6;
}
.alert-warning {
  background: var(--rose-bg);
  color: var(--burgundy);
  border-left: 4px solid var(--burgundy);
}
.alert-info {
  background: rgba(85,158,252,0.06);
  color: var(--navy);
  border-left: 4px solid var(--sky);
}
.alert-success {
  background: rgba(34,197,94,0.06);
  color: #15803d;
  border-left: 4px solid #16a34a;
}
.alert-danger {
  background: var(--rose-bg);
  color: var(--burgundy);
  border-left: 4px solid var(--burgundy);
}

/* Cards */
.card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  padding: 0.85rem 1.25rem;
}
.list-group-item {
  border-color: var(--border-light);
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
}

/* Forms */
.form-control,
.form-select {
  background-color: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  padding: 0.65rem 0.95rem;
  color: var(--text-dark);
  transition: all 0.2s;
}
.form-control::placeholder {
  color: var(--text-muted);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(77,11,24,0.08);
  background-color: var(--white);
}
.form-label {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-dark);
}
.form-text {
  color: var(--text-light);
  font-size: 0.8rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  padding: 3.5rem 2rem 2rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-brand .brand-slash {
  color: var(--orange);
}
.footer-desc {
  line-height: 1.65;
  max-width: 300px;
}
.footer-heading {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.55rem;
}
.footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--orange);
}
.footer-bottom {
  max-width: 1080px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.footer-bottom a {
  color: var(--orange);
  text-decoration: none;
}
.footer-bottom a:hover {
  text-decoration: underline;
}

/* ===== ROTATED TABLE HEADERS (slots_summary) ===== */
.table-header-rotated th.rotate {
  height: 300px;
  white-space: nowrap;
}
.table-header-rotated th.rotate > div {
  transform: translate(-9px, 0px) rotate(-90deg);
  width: 30px;
}
.table-header-rotated th.rotate > div > span {
  padding: 5px 10px;
}

/* ===== STICKY TABLE HEADERS ===== */
.table-sticky thead th {
  position: sticky;
  top: 64px;
  background-color: var(--off-white);
  z-index: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    min-height: auto;
  }
  .hero-left {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    justify-content: center;
    padding: 3.5rem 2rem 4.5rem;
  }
  .hero-left-content { max-width: 100%; }
  .hero-left-content h1 { font-size: 2.4rem; }
  .hero-right {
    padding: 2.5rem 2rem 3rem;
    justify-content: center;
  }
  .hero-right-content { max-width: 100%; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .login-split { padding: 3rem 1.5rem; }
  .login-bg-left { width: 100%; clip-path: none; height: 45%; }
  .login-bg-right { display: none; }
  .login-container { justify-content: center; padding-left: 0; }
  .navbar { padding: 0 1.25rem; }
  .nav-email-text { display: none; }
}
@media (max-width: 600px) {
  .hero-left-content h1 { font-size: 2rem; }
  .info-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .nav-region-pill { display: none; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .table { font-size: 0.82rem; }
  .table thead th,
  .table tbody td { padding: 0.7rem 0.75rem; }
}
