:root {
  --bg-color: #080808;
  --text-color: #e0e0e0;
  --text-dim: #999;

  /* Glassmorphism */
  --glass-bg: rgba(25, 25, 25, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-reflection: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.05) 100%
  );

  --accent-color: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.15);

  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --font-main: 'DM Mono', monospace;
}

@media (max-width: 640px) {
  :root {
    --radius-lg: 16px;
    --radius-md: 12px;
  }
}

[data-theme="light"] {
  --bg-color: #f0f0f0;
  --text-color: #1a1a1a;
  --text-dim: #666;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.08);
  --accent-color: #000000;
  --accent-glow: rgba(0, 0, 0, 0.1);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background elements */
.na-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(circle at 50% 50%, #111, #000);
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
  animation: float 20s infinite alternate ease-in-out;
}

.orb-a {
  width: 500px;
  height: 500px;
  background: #222;
  top: -100px;
  right: -100px;
}

.orb-b {
  width: 400px;
  height: 400px;
  background: #111;
  bottom: -50px;
  left: -50px;
  animation-delay: -5s;
}

.orb-c {
  width: 300px;
  height: 300px;
  background: #333;
  top: 40%;
  left: 20%;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 100px) scale(1.1); }
}

/* Glass effect */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--glass-reflection);
  pointer-events: none;
  z-index: 1;
}

/* Buttons */
.lg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(40, 40, 40, 0.4);
  color: var(--text-color);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.lg-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
}

.lg-btn:hover {
  background: rgba(60, 60, 60, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.lg-btn.primary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.lg-btn.primary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lg-btn.ghost {
  background: transparent;
  border-color: transparent;
}

.lg-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.05);
}

.lg-btn.danger {
  color: #ff5555;
}

.lg-btn.danger:hover {
  background: rgba(255, 85, 85, 0.1);
}

.lg-btn.sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.lg-btn svg {
  width: 18px;
  height: 18px;
}

/* Inputs */
.lg-input, .lg-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-color);
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  outline: none;
}

.lg-input:focus, .lg-textarea:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.lg-input.sm {
  padding: 6px 12px;
}

.lg-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Typography */
.section-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.8;
}

.panel-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text-dim);
}

/* App Shell */
.app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
}

@media (max-width: 640px) {
  .app-shell {
    padding: 1rem;
  }
}

/* Header */
.app-header, .task-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 640px) {
  .app-header, .task-header {
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  color: var(--text-color);
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 1px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Modal Overlay & Panels */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-panel {
  width: 100%;
  max-width: 600px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.modal-panel.small {
  max-width: 400px;
}

.modal-text {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

.modal-img-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-img-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-dim);
}

.modal-img-row {
  display: flex;
  gap: 0.5rem;
}

.modal-img-preview {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 0;
  border: 1px solid var(--glass-border);
}

.modal-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0.7;
  font-style: italic;
  margin-top: -0.5rem;
}

/* Guide Content Styles */
.guide-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.guide-item h4 {
  margin-bottom: 0.5rem;
  color: #fff;
  font-size: 1rem;
}

.guide-item p {
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-color);
}

.guide-item code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 4px;
  border-radius: 4px;
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
}

.guide-item ul {
  margin-left: 1.2rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-color);
}

.guide-item li {
  margin-bottom: 0.3rem;
}

.pro-tip {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #facc15;
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  line-height: 1.4;
}
