body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  height: 100vh;
}

/* 🔹 상단 메뉴바 */
.navbar {
  background: #1f1f1f;
  color: white;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar h1 {
  margin: 0;
  font-size: 20px;
}

.navbar nav a {
  color: #ddd;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
}

.navbar nav a:hover {
  color: white;
}

/* 🔹 메인 영역 */
.main-container {
  display: flex;
  flex: 1;
  height: calc(100vh - 60px);
}

/* 왼쪽 카테고리 */
.sidebar {
  width: 220px;
  background: #f2f2f2;
  padding: 20px;
  border-right: 1px solid #ddd;
}

.sidebar h3 {
  margin-top: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin-bottom: 8px;
}

.sidebar button {
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.sidebar button:hover {
  background: #e9e9e9;
}

/* 중앙 스타일 빌더 */
.workspace {
  flex: 1;
  padding: 20px;
  background: #fafafa;
}

.style-board {
  margin-top: 20px;
  min-height: 400px;
  background: white;
  border: 2px dashed #ccc;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #999;
  font-size: 14px;
}
/* ✅ Manage Page */
.manage-page {
  padding: 30px;
  background: #fafafa;
}

.actions {
  margin-bottom: 20px;
}

.btn-primary {
  background: #1f1f1f;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
}

.btn-primary:hover {
  background: #333;
}

/* 테이블 스타일 */
.item-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.item-table th, .item-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.item-table th {
  background: #f5f5f5;
  font-weight: 600;
}

.thumb {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

/* 버튼 */
.btn-edit {
  color: #007bff;
  text-decoration: none;
  margin-right: 6px;
}

.btn-delete {
  color: #ff4444;
  text-decoration: none;
}

.form-page {
  padding: 30px;
  background: #fafafa;
  max-width: 600px;
  margin: 0 auto;
}

.item-form {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.form-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.btn-cancel {
  background: #ccc;
  color: #000;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
}

.btn-cancel:hover {
  background: #aaa;
}
.navbar nav a.active {
  color: #fff;
  font-weight: bold;
  border-bottom: 2px solid #fff;
}

.footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #777;
  background: #f5f5f5;
  border-top: 1px solid #ddd;
}


/* Tabs */
.tabs { display: flex; gap: 8px; margin: 14px 0 18px; }
.tab {
  padding: 8px 12px; background: #eee; border-radius: 8px;
  text-decoration: none; color: #333; font-weight: 600;
}
.tab.active { background: #1f1f1f; color: #fff; }

/* Cards / Forms */
.card { background: #fff; padding: 16px; border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form input[type="text"], .inline-form select { padding: 6px 8px; border:1px solid #ccc; border-radius: 6px; }

.grid-form {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin-bottom: 14px;
}
.grid-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.grid-form input[type="text"], .grid-form select {
  padding: 8px; border:1px solid #ccc; border-radius: 6px; font-weight: 400;
}
.form-actions { display: flex; align-items: end; }

/* Buttons */
.btn-primary { background:#1f1f1f; color:#fff; padding:8px 12px; border-radius:8px; text-decoration:none; }
.btn-primary:hover { background:#333; }
.btn-edit { color:#007bff; text-decoration:none; padding:6px 10px; }
.btn-edit:hover { text-decoration: underline; }
.btn-delete { color:#ff4444; text-decoration:none; padding:6px 10px; }
.btn-delete:hover { text-decoration: underline; }

/* Small table */
.item-table.small th, .item-table.small td { padding: 8px 10px; }
