@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap");

:root {
  --primary-color: #4db6ac;
  --bg-color: #f0f2f5;
  --text-main: #333;
  --text-sub: #666;
  --card-bg: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,0.05);
  --border-radius: 24px;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

nav {
  background: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-color);
  text-decoration: none;
}

nav .nav-links a {
  text-decoration: none;
  color: var(--text-sub);
  font-size: 0.9rem;
  font-weight: 500;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

header { text-align: center; padding: 3rem 0; }
header h1 { font-size: 2.2rem; color: var(--primary-color); margin-bottom: 1rem; font-weight: 700; }
header p { color: var(--text-sub); }

.card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.form-group label { display: block; font-weight: 700; margin-bottom: 0.8rem; color: var(--text-main); }

input[type="date"] {
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
}

button {
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

button:hover { background: #3d968e; transform: translateY(-2px); }

.result-card { animation: fadeIn 0.4s ease-out; }

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

.subsidy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.subsidy-item {
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.subsidy-item .label { font-size: 0.9rem; color: var(--text-sub); }
.subsidy-item .value { font-size: 1.5rem; font-weight: 700; color: #333; }

footer { text-align: center; padding: 4rem 2rem; color: var(--text-sub); font-size: 0.85rem; }

@media (max-width: 600px) {
  .subsidy-grid { grid-template-columns: 1fr; }
}