/* ====== 색상 변수 ====== */
:root {
  --bg: #f7fbff;
  --card: #ffffff;
  --muted: #6b7280;
  --primary: #4f46e5;
  --accent: #06b6d4;
  --glass: rgba(255, 255, 255, 0.6);
  --shadow-1: 0 6px 18px rgba(79, 70, 229, 0.08);
  --shadow-2: 0 10px 30px rgba(2, 6, 23, 0.06);
  --radius: 12px;
  --glass-border: rgba(255, 255, 255, 0.7);
}

/* ====== 기본 리셋 ====== */
* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Inter", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.06) 0%, rgba(79, 70, 229, 0.03) 60%), var(--bg);
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
  padding-top: 80px; /* 상단바 공간 확보 */
}

/* ====== 고정 네비게이션 바 ====== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid rgba(10, 10, 10, 0.05);
  box-shadow: var(--shadow-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 1000;
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: #0f172a;
}

.topbar .logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  box-shadow: var(--shadow-1);
}

.topbar .search {
  flex: 1;
  max-width: 500px;
  margin: 0 24px;
  display: flex;
  align-items: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow-2);
  gap: 8px;
}
.topbar .search input {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  width: 100%;
}

.topbar .menu {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar .menu button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--primary);
  transition: opacity 0.15s ease;
}
.topbar .menu button:hover {
  opacity: 0.7;
}

/* ====== 본문 레이아웃 ====== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
  padding: 36px;
}

/* ====== 카드 ====== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-1);
  border: 1px solid rgba(10, 10, 10, 0.03);
}
.card h2 {
  margin: 0 0 10px 0;
  font-size: 16px;
}
.card p {
  color: var(--muted);
  margin: 0 0 14px 0;
  font-size: 14px;
}

/* ====== 버튼 ====== */
.btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(90deg, var(--primary), #6d28d9);
  color: white;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--primary);
  box-shadow: none;
}

/* ====== 입력폼 ====== */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
input[type="text"], textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: linear-gradient(180deg, #fff, #fbfdff);
  outline: none;
  font-size: 14px;
  transition: box-shadow 0.12s ease, border-color 0.12s ease;
}
input[type="text"]:focus, textarea:focus {
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.35);
}

/* ====== 통계 ====== */
.stats {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.stat {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, #fcfdff);
  border: 1px solid rgba(15, 23, 42, 0.03);
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 18px;
}
.stat small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

/* ====== 사이드바 ====== */
.sidebar .menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.menu a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #071033;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(250, 250, 255, 0.9));
  border: 1px solid rgba(10, 10, 10, 0.03);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.menu a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-1);
}

/* ====== 반응형 ====== */
@media (max-width: 980px) {
  .container {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .topbar {
    flex-direction: column;
    height: auto;
    padding: 10px 16px;
  }
  .topbar .search {
    max-width: none;
    width: 100%;
    margin: 10px 0;
  }
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background:#263343;
    padding: 8px 12px;
}


}
