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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background-color: #0f0f1a;
  color: #e0e0e0;
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
}

.container.wide {
  max-width: 960px;
}

h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
  text-align: center;
}

h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #c0c0c0;
  margin-bottom: 12px;
  margin-top: 24px;
}

.card {
  background: #1a1a2e;
  border: 1px solid #2a2a3e;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.brand {
  text-align: center;
  margin-bottom: 32px;
}

.brand h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #7c6ff7;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.brand p {
  color: #888;
  font-size: 0.9rem;
}

p {
  color: #b0b0c0;
  margin-bottom: 12px;
}

a {
  color: #7c6ff7;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #9d93f9;
}

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

ul li {
  margin-bottom: 8px;
}

ul li a {
  display: block;
  padding: 12px 16px;
  background: #1e1e32;
  border: 1px solid #2a2a3e;
  border-radius: 8px;
  color: #d0d0e0;
  transition: all 0.2s;
}

ul li a:hover {
  background: #26264a;
  border-color: #7c6ff7;
  color: #ffffff;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  background: #12121f;
  border: 1px solid #2a2a3e;
  border-radius: 8px;
  color: #e0e0e0;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #7c6ff7;
}

input::placeholder,
textarea::placeholder {
  color: #555;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

button,
input[type="submit"] {
  padding: 12px 24px;
  background: #7c6ff7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

button:hover,
input[type="submit"]:hover {
  background: #6a5ce0;
}

button.secondary {
  background: #2a2a3e;
  color: #c0c0c0;
}

button.secondary:hover {
  background: #3a3a4e;
}

button.danger {
  background: #e74c5e;
}

button.danger:hover {
  background: #d43d4e;
}

button.small {
  padding: 6px 14px;
  font-size: 0.85rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #2a2a3e;
  font-size: 0.9rem;
}

th {
  background: #1a1a2e;
  color: #9090b0;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  color: #c0c0d0;
}

tr:hover td {
  background: #1e1e32;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-pending { background: #3d3520; color: #f0c040; }
.status-active { background: #1a3520; color: #4ade80; }
.status-approved { background: #1a3520; color: #4ade80; }
.status-rejected { background: #351a1a; color: #f87171; }
.status-sold { background: #1a2535; color: #60a5fa; }
.status-shipped { background: #1a3535; color: #2dd4bf; }
.status-received { background: #1a3520; color: #4ade80; }
.status-canceled { background: #351a1a; color: #f87171; }

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #1e1e32;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: #808098;
  font-size: 0.9rem;
}

.info-value {
  color: #e0e0e0;
  font-weight: 500;
}

.coin-amount {
  color: #f0c040;
  font-weight: 600;
}

.coin-positive { color: #4ade80; }
.coin-negative { color: #f87171; }

#result, .result-message {
  padding: 10px 16px;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 0.9rem;
}

.back-link {
  display: inline-block;
  margin-top: 16px;
  color: #808098;
  font-size: 0.9rem;
}

.back-link:hover {
  color: #7c6ff7;
}

.welcome-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #1a1a2e;
  border: 1px solid #2a2a3e;
  border-radius: 8px;
  margin-bottom: 24px;
}

.welcome-bar .coin {
  color: #f0c040;
  font-weight: 600;
}

.section-divider {
  border: none;
  border-top: 1px solid #2a2a3e;
  margin: 24px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-card {
  background: #1a1a2e;
  border: 1px solid #2a2a3e;
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s;
}

.product-card:hover {
  border-color: #3a3a5e;
}

.product-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #ffffff;
}

.product-card .price {
  color: #f0c040;
  font-weight: 600;
  font-size: 1.1rem;
}

.product-card .stock {
  color: #808098;
  font-size: 0.85rem;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #808098;
}

footer {
  text-align: center;
  padding: 32px 0;
  color: #606080;
  font-size: 0.8rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #7c6ff7;
  outline-offset: 2px;
}

label {
  color: #b0b0c0;
  font-size: 0.9rem;
}

.tab-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid #2a2a3e;
  padding-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  padding: 10px 16px;
  background: transparent;
  color: #808098;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: #c0c0d0;
  background: transparent;
}

.tab-btn.active {
  color: #7c6ff7;
  border-bottom-color: #7c6ff7;
  background: transparent;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-btn {
  padding: 4px 10px;
  background: #1e1e32;
  color: #6a5ce0;
  border: 1px solid #2a2a3e;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
}

.nav-dropdown-btn:hover {
  background: #26264a;
  border-color: #6a5ce0;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: #1a1a2e;
  border: 1px solid #2a2a3e;
  border-radius: 8px;
  padding: 6px 0;
  min-width: 160px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.nav-dropdown-menu.show {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: #b0b0c0;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.15s;
}

.nav-dropdown-menu a:hover {
  background: #26264a;
  color: #ffffff;
}

@media (max-width: 600px) {
  .container { padding: 20px 16px; }
  h1 { font-size: 1.4rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .welcome-bar { flex-direction: column; gap: 8px; text-align: center; }
  table { font-size: 0.8rem; }
  th, td { padding: 8px 6px; }
  .tab-nav { gap: 0; }
  .tab-btn { padding: 8px 10px; font-size: 0.8rem; }
}
