*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: "Noto Sans KR", sans-serif; background: #f8fafc; color: #0f172a; min-height: 100vh; }

.admin-header {
  background: #fff; border-bottom: 1px solid #e2e8f0;
  padding: 16px 24px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.admin-brand { display: flex; align-items: center; gap: 12px; }
.admin-brand-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem; color: #fff;
}
.admin-brand strong { font-size: 0.95rem; color: #1e293b; }
.admin-nav { display: flex; gap: 8px; }
.admin-nav a {
  padding: 8px 16px; border-radius: 8px; font-size: 0.82rem;
  font-weight: 600; color: #64748b; text-decoration: none;
}
.admin-nav a:hover { background: #f1f5f9; color: #2563eb; }

.admin-body { max-width: 800px; margin: 0 auto; padding: 24px; }

.btn-new {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 10px; border: none;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff; font-size: 0.88rem; font-weight: 700;
  font-family: inherit; cursor: pointer; margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.btn-new:hover { transform: translateY(-1px); }

.notice-item {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 20px; margin-bottom: 12px; display: flex; gap: 16px; align-items: flex-start;
}
.notice-item .ni-body { flex: 1; }
.notice-item h3 { margin: 0 0 6px; font-size: 0.95rem; font-weight: 700; color: #1e293b; }
.notice-item p { margin: 0 0 8px; font-size: 0.82rem; color: #64748b; line-height: 1.5; }
.notice-item .ni-meta { font-size: 0.74rem; color: #94a3b8; display: flex; gap: 10px; align-items: center; }
.tag-badge {
  padding: 2px 8px; border-radius: 6px; font-size: 0.7rem; font-weight: 700;
}
.tag-badge.notice { background: #fff7ed; color: #ea580c; }
.tag-badge.recruit { background: #fdf2f8; color: #db2777; }
.tag-badge.new { background: #f0fdf4; color: #16a34a; }
.tag-badge.info { background: #eef2ff; color: #4f46e5; }
.ni-actions { display: flex; gap: 6px; flex-shrink: 0; }
.ni-actions button {
  padding: 6px 12px; border-radius: 8px; border: 1px solid #e2e8f0;
  background: #fff; font-size: 0.76rem; font-weight: 600; color: #64748b;
  cursor: pointer; font-family: inherit;
}
.ni-actions button:hover { border-color: #2563eb; color: #2563eb; }
.ni-actions button.del:hover { border-color: #dc2626; color: #dc2626; }

/* 모달 */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(15,23,42,0.6); align-items: center; justify-content: center;
}
.modal-overlay.visible { display: flex; }
.modal {
  background: #fff; border-radius: 20px; padding: 32px;
  max-width: 520px; width: calc(100% - 40px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2); max-height: 90vh; overflow-y: auto;
}
.modal h3 { margin: 0 0 20px; font-size: 1.1rem; font-weight: 800; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.8rem; font-weight: 700; color: #475569; margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 14px; border-radius: 10px;
  border: 1.5px solid #e2e8f0; font-size: 0.88rem; font-family: inherit;
  outline: none; transition: border-color 200ms;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: #2563eb; }
.field textarea { resize: vertical; min-height: 100px; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.checkbox-field { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.checkbox-field label { font-size: 0.82rem; color: #475569; margin: 0; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions button {
  flex: 1; padding: 12px; border-radius: 10px; border: none;
  font-size: 0.9rem; font-weight: 700; font-family: inherit; cursor: pointer;
}
.btn-save { background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; }
.btn-cancel { background: #f1f5f9; color: #475569; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  padding: 12px 24px; border-radius: 12px; background: #1e293b; color: #fff;
  font-size: 0.84rem; font-weight: 600; z-index: 10000;
  opacity: 0; transition: opacity 300ms;
}
.toast.show { opacity: 1; }
.empty-msg { text-align: center; padding: 40px; color: #94a3b8; }
