/* MUSEMARK_MVP — 공통 스타일 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif;
  background: #f5f6f8;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.5;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
}
button:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary  { background: #2563eb; color: #fff; }
.btn-primary:hover:not(:disabled)  { background: #1d4ed8; }
.btn-secondary { background: #fff; color: #1f2937; border: 1px solid #d1d5db; }
.btn-secondary:hover:not(:disabled) { background: #f3f4f6; }
.btn-danger   { background: #dc2626; color: #fff; }
.btn-danger:hover:not(:disabled)   { background: #b91c1c; }
.btn-ghost    { background: transparent; color: #6b7280; }
.btn-ghost:hover:not(:disabled)    { background: #f3f4f6; }

.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }

input, select, textarea {
  font-family: inherit; font-size: 14px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #1f2937;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
textarea { resize: vertical; min-height: 80px; }

label { display: block; margin-bottom: 4px; font-weight: 500; color: #374151; }

/* 헤더 */
.app-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.app-header .brand {
  font-weight: 700;
  font-size: 18px;
  color: #1f2937;
}
.app-header .brand .badge {
  background: #2563eb; color: #fff;
  font-size: 11px; padding: 2px 8px;
  border-radius: 999px; margin-left: 8px;
  font-weight: 500;
}
.app-header .user-info {
  font-size: 13px; color: #6b7280;
  display: flex; align-items: center; gap: 12px;
}

/* 컨테이너 */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 28px;
}

/* 카드 */
.card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e5e7eb;
}

/* 배지 */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.badge-draft     { background: #fef3c7; color: #92400e; }
.badge-submitted { background: #d1fae5; color: #065f46; }
.badge-info      { background: #dbeafe; color: #1e40af; }

/* 테이블 */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #e5e7eb; }
th { background: #f9fafb; font-weight: 600; color: #374151; font-size: 13px; }
tbody tr:hover { background: #f9fafb; }

/* 토스트 */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: #1f2937; color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  z-index: 1000;
  animation: slideIn 0.2s ease;
}
@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* 빈 상태 */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
}
.empty-emoji { font-size: 48px; margin-bottom: 12px; }
