/* ========================================
   AGENDA SHOW - ADMIN PANEL STYLES
   ======================================== */

:root {
  --color-bg: #0a0a0a;
  --color-surface: #141414;
  --color-surface-light: #1e1e1e;
  --color-surface-border: #282828;
  --color-gold: #d4a843;
  --color-gold-light: #e8c86a;
  --color-gold-dark: #b08930;
  --color-text: #f0ebe3;
  --color-text-muted: #9a9590;
  --color-success: #10b981;
  --color-danger: #ef4444;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --radius: 12px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ========================================
   TOAST NOTIFICATION
   ======================================== */
.toast {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  color: var(--color-text);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 10000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast.success {
  border-color: var(--color-success);
  color: #34d399;
}

.toast.error {
  border-color: var(--color-danger);
  color: #f87171;
}

/* ========================================
   AUTH SCREEN (LOGIN / REGISTER)
   ======================================== */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  background: radial-gradient(circle at top, #1a1508 0%, #0a0a0a 70%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.auth-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.brand-logo span {
  color: var(--color-gold);
}

.brand-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
}

.auth-tabs {
  display: flex;
  background: var(--color-surface-light);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 1.6rem;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  padding: 0.6rem 0.5rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab.active {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-hint {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
}

input[type="text"],
input[type="password"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  background: var(--color-surface-light);
  border: 1px solid var(--color-surface-border);
  border-radius: 8px;
  color: var(--color-text);
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  font-family: inherit;
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 2px rgba(212, 168, 67, 0.2);
}

.input-prefix-wrap {
  display: flex;
  align-items: center;
  background: var(--color-surface-light);
  border: 1px solid var(--color-surface-border);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.input-prefix-wrap:focus-within {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 2px rgba(212, 168, 67, 0.2);
}

.input-prefix {
  padding: 0 0.8rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  user-select: none;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid var(--color-surface-border);
  line-height: 2.6rem;
}

.input-prefix-wrap input {
  border: none;
  background: transparent;
}

.input-prefix-wrap input:focus {
  box-shadow: none;
}

/* BUTTONS */
.btn-primary {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-dark));
  color: #0a0a0a;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

.btn-block {
  width: 100%;
}

.btn-secondary {
  background: var(--color-surface-light);
  color: var(--color-text);
  border: 1px solid var(--color-surface-border);
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-surface-border);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline:hover {
  color: var(--color-danger);
  border-color: var(--color-danger);
}

.btn-mini {
  background: var(--color-surface-light);
  color: var(--color-text);
  border: 1px solid var(--color-surface-border);
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-mini:hover {
  background: var(--color-gold);
  color: #0a0a0a;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-footer a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.auth-footer a:hover {
  color: var(--color-gold);
}

/* ========================================
   DASHBOARD SCREEN
   ======================================== */
.dash-wrapper {
  min-height: 100vh;
  background: var(--color-bg);
  padding-bottom: 4rem;
}

.dash-navbar {
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-surface-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.8rem 1.5rem;
}

.dash-nav-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.dash-brand h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.dash-brand h2 span {
  color: var(--color-gold);
}

.badge-artist {
  background: rgba(212, 168, 67, 0.15);
  color: var(--color-gold);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 168, 67, 0.3);
}

.dash-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.dash-container {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* SHARE BAR */
.share-bar {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.share-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.share-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
}

.share-url {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-gold);
  word-break: break-all;
}

/* DASH TABS */
.dash-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--color-surface-border);
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.dash-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--color-text-muted);
  padding: 0.8rem 1.2rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.dash-tab-btn:hover {
  color: var(--color-text);
}

.dash-tab-btn.active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

/* TAB PANES */
.tab-pane {
  display: none;
}

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

.pane-card {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

.pane-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.pane-subtitle {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 1.8rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

@media (max-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.photo-input-wrap {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.photo-preview-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}

.photo-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* COLOR PRESETS */
.color-presets {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.color-preset-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid transparent;
  background-color: var(--c);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.color-preset-btn:hover {
  transform: scale(1.1);
}

.color-preset-btn.active {
  border-color: #fff;
  transform: scale(1.15);
  box-shadow: 0 0 15px var(--c);
}

.custom-color-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.color-picker-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

input[type="color"] {
  width: 44px;
  height: 40px;
  border: 1px solid var(--color-surface-border);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

/* THEME LIVE PREVIEW */
.theme-live-preview {
  background: var(--color-surface-light);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.preview-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.preview-elements {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.preview-btn-cta {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-dark));
  color: #0a0a0a;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.preview-badge {
  background: rgba(212, 168, 67, 0.15);
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
}

/* SHEET GUIDE */
.sheet-guide {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--color-gold);
  padding: 1rem 1.2rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

.sheet-guide h4 {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--color-gold);
}

.sheet-guide code {
  color: var(--color-text);
  font-size: 0.85rem;
}

.sheet-test-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.test-result {
  font-size: 0.9rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  display: none;
}

.test-result.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--color-success);
  color: #34d399;
}

.test-result.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--color-danger);
  color: #f87171;
}

/* DASH FOOTER */
.dash-footer-bar {
  display: flex;
  justify-content: flex-end;
}

.btn-save {
  padding: 0.95rem 2.2rem;
  font-size: 1.05rem;
}

/* TUTORIAL CARD & STEPS */
.tutorial-card {
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.08) 0%, rgba(20, 20, 20, 0.95) 100%);
  border: 1px solid rgba(212, 168, 67, 0.35);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin-bottom: 2rem;
}

.tutorial-header {
  margin-bottom: 1.4rem;
}

.tutorial-badge {
  display: inline-block;
  background: var(--color-gold);
  color: #0a0a0a;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.tutorial-header h4 {
  font-size: 1.25rem;
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.tutorial-header p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.tutorial-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

@media (max-width: 860px) {
  .tutorial-steps {
    grid-template-columns: 1fr;
  }
}

.tutorial-step {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: 10px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.2s, border-color 0.2s;
}

.tutorial-step:hover {
  border-color: rgba(212, 168, 67, 0.5);
  transform: translateY(-2px);
}

.step-badge-num {
  align-self: flex-start;
  background: rgba(212, 168, 67, 0.15);
  color: var(--color-gold);
  border: 1px solid rgba(212, 168, 67, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.tutorial-step h5 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-text);
}

.tutorial-step p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  flex-grow: 1;
}

.step-img-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-surface-border);
  background: #000;
  cursor: pointer;
  margin-top: 0.4rem;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.step-img-wrap:hover img {
  transform: scale(1.05);
}

.zoom-tag {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(4px);
  color: var(--color-text);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-step-action {
  margin-top: 0.4rem;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  border-radius: 6px;
}

.sheet-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ADVANCED ACCORDION */
.advanced-accordion {
  margin-top: 1.8rem;
  border: 1px solid var(--color-surface-border);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.01);
}

.advanced-accordion summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-muted);
  user-select: none;
  transition: color 0.2s;
}

.advanced-accordion summary:hover {
  color: var(--color-gold);
}

/* LIGHTBOX MODAL */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--color-surface-border);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s, color 0.2s;
}

.lightbox-close:hover {
  color: var(--color-gold);
  transform: scale(1.15);
}
