/* Noise SMP Feedback - Modern Minimal Dark */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #08080a;
  --bg-secondary: #0f0f12;
  --card: #141418;
  --card-hover: #1a1a1f;
  --border: #242428;
  --border-focus: #8b5cf6;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --accent-light: #a78bfa;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

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

body {
  font-family: 'Plus Jakarta Sans', 'Outfit', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Background gradient blobs */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  top: -200px;
  left: -200px;
}
.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  top: 40%;
  right: -150px;
}
.blob-3 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  bottom: -300px;
  left: 30%;
  opacity: 0.08;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(8, 8, 10, 0.8);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  color: white;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.logo-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-link {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover {
  color: var(--text-primary);
  border-color: #2a2a30;
  background: var(--card-hover);
}

/* Main */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 32px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a1a1f 0%, #242428 100%);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 16px;
}
.card-header-text h3 {
  font-size: 14px;
  font-weight: 600;
}
.card-header-text span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Textarea */
.textarea-wrap {
  position: relative;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  overflow: hidden;
}
.textarea-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
  background: #0f0f14;
}
textarea {
  width: 100%;
  min-height: 160px;
  background: transparent;
  border: none;
  outline: none;
  padding: 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
}
textarea::placeholder {
  color: var(--text-muted);
}
.textarea-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}
.char-count {
  font-size: 12px;
  color: var(--text-muted);
}
.char-count.warn { color: #f59e0b; }
.char-count.danger { color: var(--danger); }
.textarea-hint {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  margin-top: 16px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25);
  letter-spacing: -0.01em;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}
.btn:active {
  transform: translateY(0);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-secondary {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  box-shadow: none;
}
.btn-secondary:hover {
  background: var(--card-hover);
  box-shadow: none;
}
.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  box-shadow: none;
  padding: 8px 14px;
  font-size: 13px;
  width: auto;
  margin-top: 0;
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

/* Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #18181b;
  border: 1px solid #27272a;
  color: white;
  padding: 14px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  max-width: 90vw;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #10b981;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 14px;
}
.toast.error .toast-icon { background: var(--danger); }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.feature {
  text-align: center;
  padding: 16px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
}
.feature-icon {
  font-size: 20px;
  margin-bottom: 8px;
}
.feature h4 {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}
.feature p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--text-muted);
  font-size: 12px;
}
.footer a { color: var(--text-secondary); text-decoration: none; }
.footer a:hover { color: var(--accent-light); }

/* Admin Specific */
.admin-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.admin-title h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.admin-title p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}
.stat-value {
  font-size: 22px;
  font-weight: 700;
  margin-top: 6px;
}
.stat-value.accent { color: var(--accent-light); }

/* Login Card */
.login-card {
  max-width: 420px;
  margin: 60px auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  text-align: center;
}
.login-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  display: grid;
  place-items: center;
  font-size: 22px;
}
.login-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.login-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.input-group {
  text-align: left;
  margin-bottom: 16px;
}
.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.input-group input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: white;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}
.input-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}
.input-group input::placeholder { color: var(--text-muted); }

/* Messages */
.messages-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.messages-header h2 {
  font-size: 16px;
  font-weight: 600;
}
.messages-count {
  font-size: 12px;
  padding: 6px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
}
.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}
.empty-state-icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.5;
}
.empty-state h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.empty-state p { font-size: 13px; }

.message-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 12px;
  transition: all 0.2s;
  animation: slideIn 0.3s ease;
}
.message-card:hover {
  border-color: #2a2a30;
  background: var(--card-hover);
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.message-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.message-id {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 999px;
  color: var(--accent-light);
}
.message-date {
  font-size: 12px;
  color: var(--text-muted);
}
.message-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 14px;
}
.message-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 640px) {
  .container { padding: 24px 16px 60px; }
  .card { padding: 18px; }
  .features { grid-template-columns: 1fr; gap: 8px; }
  .feature { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; }
  .feature-icon { margin-bottom: 0; font-size: 18px; }
  .stats { grid-template-columns: 1fr; }
  .admin-header { flex-direction: column; align-items: flex-start; }
  .header-inner { padding: 14px 16px; }
}

.shimmer {
  background: linear-gradient(90deg, var(--card) 25%, var(--card-hover) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  height: 80px;
  border-radius: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
