/* Shared styles for CadenzReqSaaS public pages. */
:root {
  --main-color: #ff00ff;
  --bg: #f0f2f5;
  --panel-bg: #ffffff;
  --text: #222;
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  margin: 0;
  padding: 20px;
  color: var(--text);
}

.card {
  background: var(--panel-bg);
  padding: 25px;
  border-radius: 15px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

h2 {
  margin-top: 0;
  border-left: 5px solid var(--main-color);
  padding-left: 10px;
  font-size: 1.2rem;
}

input, select {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 14px;
}

button {
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  color: white;
  transition: 0.2s;
  font-size: 14px;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary { background: var(--main-color); }
.btn-save { background: #28a745; }
.btn-del { background: #ff4d4d; }
.btn-sing { background: #00ccff; }
.btn-secondary { background: #666; }

.song-list {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-top: 15px;
}

.song-item {
  padding: 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column;
}

.song-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.song-title { font-weight: bold; font-size: 15px; color: #333; }
.song-artist { font-size: 12px; color: #666; }

.song-meta {
  font-size: 11px;
  color: #666;
  margin-top: 4px;
  display: flex;
  gap: 10px;
}

.badge { background: #eee; padding: 2px 6px; border-radius: 4px; }
.memo { font-size: 11px; color: #999; margin-top: 4px; font-style: italic; }

.banner {
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 13px;
}

.banner.warn { background: #ffe9a8; color: #6b5300; }
.banner.ok { background: #d4f7d4; color: #1c5c1c; }
.banner.err { background: #ffd6d6; color: #7a1414; }

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #222;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.btn-primary { flex-shrink: 0; }

.now {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #1f1f26;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 14px;
}
.now-label { color: var(--main-color); font-weight: bold; font-size: 11px; letter-spacing: .05em; flex-shrink: 0; }

details summary { cursor: pointer; font-size: 14px; font-weight: bold; color: #444; }
.queue-list { font-size: 13px; color: #444; padding-left: 22px; margin: 8px 0 0; }
.queue-list li { padding: 3px 0; }

.credit { margin-top: 16px; text-align: center; font-size: 11px; color: #999; }
.credit a { color: #999; }

@media (max-width: 480px) {
  body { padding: 10px; }
  .card { padding: 16px; }
  .toast { left: 10px; right: 10px; top: 10px; }
}
