/* ══════════════════════════════════════════════════════════
   KPL ADMIN PANEL — Stylesheet
   Design: Dark sidebar + Clean white content
   Accent: Emerald Green #0D9373
══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #f0f2f5;
  color: #1a1f2e;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

:root {
  --green: #0D9373;
  --green-l: #10b98a;
  --green-d: #0a7a60;
  --navy: #0b1020;
  --navy2: #131928;
  --sidebar-w: 240px;
  --topbar-h: 60px;
  --white: #fff;
  --gray-50: #f8fafc;
  --gray-100: #f1f3f7;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --text: #1a1f2e;
  --text-m: #4b5563;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.10);
  --tr: all 0.22s ease;
  --status-new: #3b82f6;
  --status-review: #f59e0b;
  --status-accepted: #10b981;
  --status-waitlist: #8b5cf6;
  --status-rejected: #ef4444;
}

/* ════════════════════════════════════════════════════
   LOGIN SCREEN
════════════════════════════════════════════════════ */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #060a14 0%, #0b1628 50%, #0a1f18 100%);
  padding: 24px;
}
.login-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 48px 40px 36px;
  width: 100%;
  max-width: 400px;
  backdrop-filter: blur(20px);
  text-align: center;
}
.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.login-card h1 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.login-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 36px;
}
.login-form { display: flex; flex-direction: column; gap: 16px; text-align: left; }
.lf-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.lf-group label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lf-group input {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 13px 16px;
  color: #fff;
  font-size: 15px;
  width: 100%;
  transition: var(--tr);
}
.lf-group input::placeholder { color: rgba(255,255,255,0.25); }
.lf-group input:focus {
  outline: none;
  border-color: var(--green);
  background: rgba(13,147,115,0.1);
}
.pass-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: rgba(255,255,255,0.3);
  font-size: 14px;
  transition: var(--tr);
}
.pass-toggle:hover { color: var(--green); }
.login-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-login {
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  transition: var(--tr);
}
.btn-login:hover { background: var(--green-l); }
.back-to-site {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  transition: var(--tr);
}
.back-to-site:hover { color: var(--green); }


/* ════════════════════════════════════════════════════
   ADMIN APP LAYOUT
════════════════════════════════════════════════════ */
.admin-app {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-w);
  background: var(--navy);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.sidebar.collapsed { transform: translateX(-100%); }
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sb-logo { display: flex; align-items: center; gap: 10px; }
.sb-brand { display: flex; flex-direction: column; }
.sb-name { font-size: 14px; font-weight: 800; color: #fff; }
.sb-ver { font-size: 11px; color: var(--green); font-weight: 600; }
.sidebar-close {
  color: rgba(255,255,255,0.3);
  font-size: 14px;
  padding: 4px;
  display: none;
}
.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}
.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 12px 16px 6px;
}
.sb-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: rgba(255,255,255,0.55);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 8px;
  margin: 0 8px;
  transition: var(--tr);
  position: relative;
}
.sb-link:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.9); }
.sb-link.active {
  background: rgba(13,147,115,0.18);
  color: #34d399;
  font-weight: 700;
}
.sb-link i { width: 16px; text-align: center; font-size: 13px; }
.sb-badge {
  margin-left: auto;
  background: var(--green);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  min-width: 22px;
  text-align: center;
}
.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sb-user { display: flex; align-items: center; gap: 10px; }
.sb-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(13,147,115,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  font-size: 14px;
}
.sb-user-info { display: flex; flex-direction: column; }
.sb-user-info span:first-child { font-size: 13px; font-weight: 700; color: #fff; }
.sb-role { font-size: 11px; color: rgba(255,255,255,0.35); }
.btn-logout {
  color: rgba(255,255,255,0.3);
  font-size: 16px;
  padding: 6px;
  transition: var(--tr);
}
.btn-logout:hover { color: #ef4444; }

/* MAIN CONTENT */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}
.main-content.full { margin-left: 0; }

/* TOPBAR */
.topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.sidebar-toggle {
  color: var(--gray-500);
  font-size: 18px;
  padding: 6px;
  border-radius: 6px;
  transition: var(--tr);
  display: none;
}
.sidebar-toggle:hover { background: var(--gray-100); color: var(--text); }
.page-breadcrumb { font-size: 16px; font-weight: 700; color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-cohort-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(13,147,115,0.08);
  border: 1px solid rgba(13,147,115,0.2);
  color: var(--green-d);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
}
.cohort-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }
.topbar-site-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  padding: 6px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  transition: var(--tr);
}
.topbar-site-link:hover { border-color: var(--green); color: var(--green); }
.topbar-time { font-size: 12px; color: var(--gray-400); font-weight: 500; white-space: nowrap; }

/* PAGE AREA */
.page-area {
  flex: 1;
  padding: 28px 28px 40px;
  overflow-y: auto;
}
.page { display: block; }
.page-header {
  margin-bottom: 28px;
}
.page-header h2 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.page-header p { font-size: 14px; color: var(--gray-500); }


/* ════════════════════════════════════════════════════
   DASHBOARD
════════════════════════════════════════════════════ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
  transition: var(--tr);
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.sc-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.sc-total { background: rgba(59,130,246,0.1); color: #3b82f6; }
.sc-new { background: rgba(13,147,115,0.1); color: var(--green); }
.sc-review { background: rgba(245,158,11,0.1); color: #f59e0b; }
.sc-accept { background: rgba(16,185,129,0.1); color: #10b981; }
.sc-spots { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.sc-data { display: flex; flex-direction: column; }
.sc-num { font-size: 26px; font-weight: 900; color: var(--text); line-height: 1; }
.sc-label { font-size: 12px; color: var(--gray-500); margin-top: 2px; font-weight: 500; }

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.dash-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.dash-card-full { grid-column: 1 / -1; }
.dc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
}
.dc-header h3 {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.dc-header h3 i { color: var(--green); }
.dc-action {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  background: rgba(13,147,115,0.08);
  border: 1px solid rgba(13,147,115,0.2);
  padding: 4px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--tr);
}
.dc-action:hover { background: rgba(13,147,115,0.15); }
.dc-body { padding: 16px 20px; }
.loading-state {
  color: var(--gray-400);
  font-size: 13px;
  padding: 20px;
  text-align: center;
}

/* Cohort Timeline */
.cohort-timeline {
  display: flex;
  padding: 20px 24px;
  gap: 0;
  overflow-x: auto;
}
.ct-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 160px;
  position: relative;
}
.ct-item::after {
  content: '';
  position: absolute;
  top: 9px;
  left: 20px;
  right: 0;
  height: 2px;
  background: var(--gray-200);
}
.ct-item:last-child::after { display: none; }
.ct-item.ct-done::after { background: var(--green); }
.ct-item.ct-active::after { background: linear-gradient(90deg, var(--green) 50%, var(--gray-200) 50%); }
.ct-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  background: var(--white);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: var(--tr);
}
.ct-done .ct-dot { background: var(--green); border-color: var(--green); }
.ct-active .ct-dot {
  border-color: var(--green);
  background: white;
  box-shadow: 0 0 0 4px rgba(13,147,115,0.15);
}
.ct-body { display: flex; flex-direction: column; }
.ct-body strong { font-size: 13px; font-weight: 700; }
.ct-body span { font-size: 12px; color: var(--gray-400); margin-top: 2px; }

/* Recent apps mini list */
.ra-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}
.ra-item:last-child { border-bottom: none; }
.ra-left { display: flex; flex-direction: column; }
.ra-name { font-size: 13px; font-weight: 700; }
.ra-meta { font-size: 11px; color: var(--gray-400); margin-top: 1px; }
.ra-right { display: flex; align-items: center; gap: 8px; }

/* Breakdown bars */
.breakdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.bi-label { font-size: 12px; color: var(--text-m); min-width: 120px; flex-shrink: 0; }
.bi-bar-wrap { flex: 1; background: var(--gray-100); border-radius: 100px; height: 8px; }
.bi-bar { height: 8px; border-radius: 100px; background: var(--green); transition: width 0.6s ease; }
.bi-count { font-size: 12px; font-weight: 700; color: var(--text); min-width: 24px; text-align: right; }


/* ════════════════════════════════════════════════════
   APPLICATION TABLE
════════════════════════════════════════════════════ */
.app-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.toolbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 8px 12px;
}
.search-wrap i { color: var(--gray-400); font-size: 13px; }
.search-wrap input {
  border: none;
  background: none;
  font-size: 13px;
  width: 200px;
  color: var(--text);
}
.search-wrap input:focus { outline: none; }
.filter-select {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-m);
}
.filter-select:focus { outline: none; border-color: var(--green); }
.btn-tool {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-m);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--tr);
}
.btn-tool:hover { border-color: var(--green); color: var(--green); }
.btn-export { background: rgba(13,147,115,0.08); border-color: rgba(13,147,115,0.25); color: var(--green); }
.btn-export:hover { background: var(--green); color: white; }

.table-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table thead {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.admin-table th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: left;
  white-space: nowrap;
}
.admin-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr { transition: var(--tr); }
.admin-table tbody tr:hover { background: rgba(13,147,115,0.03); }
.app-name-cell { display: flex; flex-direction: column; }
.app-name-cell strong { font-size: 14px; font-weight: 700; }
.app-name-cell small { font-size: 11px; color: var(--gray-400); margin-top: 1px; }
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  font-size: 13px;
  color: var(--gray-500);
}
.pagination { display: flex; gap: 6px; }
.pg-btn {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--tr);
}
.pg-btn:hover, .pg-btn.active { background: var(--green); color: white; border-color: var(--green); }
.btn-row-action {
  background: none;
  border: none;
  font-size: 13px;
  color: var(--gray-400);
  cursor: pointer;
  padding: 4px 7px;
  border-radius: 6px;
  transition: var(--tr);
}
.btn-row-action:hover { background: var(--gray-100); color: var(--green); }


/* ════════════════════════════════════════════════════
   STATUS CHIPS
════════════════════════════════════════════════════ */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: capitalize;
  white-space: nowrap;
}
.status-chip.s-new { background: rgba(59,130,246,0.1); color: var(--status-new); }
.status-chip.s-review { background: rgba(245,158,11,0.1); color: var(--status-review); }
.status-chip.s-accepted { background: rgba(16,185,129,0.1); color: var(--status-accepted); }
.status-chip.s-waitlist { background: rgba(139,92,246,0.1); color: var(--status-waitlist); }
.status-chip.s-rejected { background: rgba(239,68,68,0.1); color: var(--status-rejected); }


/* ════════════════════════════════════════════════════
   ACCEPTED GRID
════════════════════════════════════════════════════ */
.accepted-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.accepted-card {
  background: var(--white);
  border: 2px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--tr);
}
.accepted-card:hover { box-shadow: var(--shadow-md); }
.ac-flag {
  font-size: 22px;
  margin-bottom: 10px;
  display: block;
}
.ac-company { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.ac-founder { font-size: 13px; color: var(--gray-500); margin-bottom: 10px; }
.ac-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(13,147,115,0.08);
  color: var(--green-d);
  border: 1px solid rgba(13,147,115,0.15);
}
.ac-spot {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16,185,129,0.1);
  padding: 3px 8px;
  border-radius: 100px;
}
.spots-bar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.spots-bar-label { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; }
.spots-bar-track { flex: 1; background: var(--gray-100); border-radius: 100px; height: 10px; }
.spots-bar-fill {
  height: 10px;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--green), var(--green-l));
  transition: width 0.8s ease;
}
.spots-bar-info { font-size: 13px; font-weight: 700; color: var(--green); white-space: nowrap; }


/* ════════════════════════════════════════════════════
   ANNOUNCEMENTS
════════════════════════════════════════════════════ */
.ann-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 24px;
  align-items: start;
}
.ann-form-wrap, .ann-list-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ann-form-header, .ann-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.ann-form-header h3, .ann-list-header h3 {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ann-form { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.06em; }
.form-group input, .form-group select, .form-group textarea {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  background: var(--gray-50);
  transition: var(--tr);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  background: white;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ann-form-actions { display: flex; gap: 10px; }
.btn-save {
  flex: 1;
  background: var(--green);
  color: white;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--tr);
}
.btn-save:hover { background: var(--green-l); }
.btn-cancel {
  background: var(--gray-100);
  color: var(--gray-500);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--tr);
}
.btn-cancel:hover { background: var(--gray-200); }
.ann-list { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ann-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: var(--tr);
}
.ann-item:hover { border-color: rgba(13,147,115,0.3); }
.ann-item-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ann-item-title { font-size: 14px; font-weight: 700; }
.ann-item-meta { display: flex; align-items: center; gap: 8px; }
.ann-item-content { font-size: 13px; color: var(--gray-500); line-height: 1.5; }
.ann-item-actions { display: flex; gap: 6px; margin-top: 10px; }
.ann-edit, .ann-delete {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--tr);
}
.ann-edit { background: rgba(13,147,115,0.08); color: var(--green); }
.ann-edit:hover { background: rgba(13,147,115,0.15); }
.ann-delete { background: rgba(239,68,68,0.08); color: #ef4444; }
.ann-delete:hover { background: rgba(239,68,68,0.15); }
.type-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.type-news { background: rgba(59,130,246,0.1); color: #3b82f6; }
.type-deadline { background: rgba(245,158,11,0.1); color: #f59e0b; }
.type-event { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.type-update { background: rgba(16,185,129,0.1); color: #10b981; }
.type-alert { background: rgba(239,68,68,0.1); color: #ef4444; }
.pub-badge { font-size: 11px; font-weight: 600; color: var(--gray-400); }
.pub-badge.published { color: var(--green); }


/* ════════════════════════════════════════════════════
   SETTINGS
════════════════════════════════════════════════════ */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.settings-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.sc-header i { color: var(--green); font-size: 16px; }
.sc-header h3 { font-size: 14px; font-weight: 700; }
.settings-fields { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.sf-item { display: flex; flex-direction: column; gap: 5px; }
.sf-item label { font-size: 12px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.06em; }
.sf-input {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 14px;
  color: var(--text);
  background: var(--gray-50);
  width: 100%;
  transition: var(--tr);
}
.sf-input:focus { outline: none; border-color: var(--green); background: white; }
.sf-textarea { resize: vertical; min-height: 80px; }
.btn-save-cred {
  background: var(--navy);
  color: white;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  transition: var(--tr);
}
.btn-save-cred:hover { background: var(--navy2); }
.settings-save-bar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.save-note { font-size: 13px; color: var(--gray-500); display: flex; align-items: center; gap: 6px; }
.save-note i { color: var(--green); }
.btn-save-settings {
  background: var(--green);
  color: white;
  border-radius: 8px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--tr);
  white-space: nowrap;
}
.btn-save-settings:hover { background: var(--green-l); }


/* ════════════════════════════════════════════════════
   EXPORT PAGE
════════════════════════════════════════════════════ */
.export-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.export-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: var(--tr);
}
.export-card:hover { box-shadow: var(--shadow-md); border-color: rgba(13,147,115,0.2); }
.ec-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(13,147,115,0.1);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.ec-review { background: rgba(245,158,11,0.1); color: #f59e0b; }
.ec-accept { background: rgba(16,185,129,0.1); color: #10b981; }
.ec-json { background: rgba(99,102,241,0.1); color: #6366f1; }
.ec-body h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.ec-body p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }
.ec-meta { font-size: 12px; font-weight: 700; color: var(--green); margin-top: 8px; }
.btn-dl {
  background: var(--green);
  color: white;
  border-radius: 8px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  align-self: flex-start;
  transition: var(--tr);
}
.btn-dl:hover { background: var(--green-l); }


/* ════════════════════════════════════════════════════
   MODAL
════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}
.modal-title-area { display: flex; flex-direction: column; gap: 3px; }
.modal-title-area h3 { font-size: 20px; font-weight: 800; }
.modal-country { font-size: 13px; color: var(--gray-400); font-weight: 500; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--gray-100);
  color: var(--gray-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: var(--tr);
}
.modal-close:hover { background: var(--gray-200); color: var(--text); }
.modal-body { padding: 20px 24px; }
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.mg-item { display: flex; flex-direction: column; gap: 3px; }
.mg-item label, .mg-full label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.mg-item span { font-size: 14px; font-weight: 500; }
.mg-item a { color: var(--green); font-weight: 600; }
.mg-full { margin-bottom: 18px; }
.usecase-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-m);
  line-height: 1.7;
  margin-top: 6px;
  max-height: 160px;
  overflow-y: auto;
}
.modal-status-row {
  margin-bottom: 18px;
}
.modal-status-row label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: block;
  margin-bottom: 8px;
}
.status-btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
.status-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--tr);
}
.status-btn:hover { border-color: var(--green); color: var(--green); background: rgba(13,147,115,0.05); }
.status-btn.active-status-new { border-color: var(--status-new); color: var(--status-new); background: rgba(59,130,246,0.08); }
.status-btn.active-status-review { border-color: var(--status-review); color: var(--status-review); background: rgba(245,158,11,0.08); }
.status-btn.active-status-accepted { border-color: var(--status-accepted); color: var(--status-accepted); background: rgba(16,185,129,0.08); }
.status-btn.active-status-waitlist { border-color: var(--status-waitlist); color: var(--status-waitlist); background: rgba(139,92,246,0.08); }
.status-btn.active-status-rejected { border-color: var(--status-rejected); color: var(--status-rejected); background: rgba(239,68,68,0.08); }
.modal-notes { }
.modal-notes > label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: block;
  margin-bottom: 8px;
}
.notes-list {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 10px;
  min-height: 60px;
  max-height: 160px;
  overflow-y: auto;
  margin-bottom: 10px;
}
.note-entry {
  padding: 8px 10px;
  background: white;
  border-radius: 6px;
  margin-bottom: 6px;
  border: 1px solid var(--gray-100);
}
.note-entry:last-child { margin-bottom: 0; }
.ne-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.ne-author { font-size: 11px; font-weight: 700; color: var(--gray-500); }
.ne-time { font-size: 10px; color: var(--gray-400); }
.ne-content { font-size: 13px; color: var(--text-m); line-height: 1.5; }
.note-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.note-input-row textarea {
  flex: 1;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  resize: none;
  transition: var(--tr);
}
.note-input-row textarea:focus { outline: none; border-color: var(--green); }
.btn-add-note {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--tr);
}
.btn-add-note:hover { background: var(--green-l); }
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
  position: sticky;
  bottom: 0;
}
.btn-modal-primary {
  background: var(--green);
  color: white;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--tr);
}
.btn-modal-primary:hover { background: var(--green-l); }
.btn-modal-secondary {
  background: rgba(239,68,68,0.08);
  color: #ef4444;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--tr);
}
.btn-modal-secondary:hover { background: rgba(239,68,68,0.15); }


/* ════════════════════════════════════════════════════
   TOAST
════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  z-index: 99999;
  animation: toastIn 0.3s ease;
}
@keyframes toastIn { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }
.toast-icon { color: var(--green); font-size: 16px; }
.toast.toast-error .toast-icon { color: #ef4444; }


/* ════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .stats-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.mobile-open { transform: translateX(0); box-shadow: var(--shadow-md); }
  .sidebar-close { display: block; }
  .sidebar-toggle { display: flex; }
  .main-content { margin-left: 0; }
  .dash-grid { grid-template-columns: 1fr; }
  .ann-layout { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .export-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .page-area { padding: 16px 16px 32px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  .toolbar-left { gap: 6px; }
  .search-wrap input { width: 140px; }
  .topbar-cohort-badge { display: none; }
}
