/* Glassmorphism base utilities beyond Tailwind */

/* Gradient mesh background */
body.admin-body {
  background: #0a0a1a;
  font-family: 'Montserrat', sans-serif;
}
body.admin-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(56, 189, 248, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 90%, rgba(139, 92, 246, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* Toast animations */
@keyframes toast-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toast-out {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}
.toast-enter { animation: toast-in 0.3s ease-out; }
.toast-exit { animation: toast-out 0.3s ease-in forwards; }

/* CodeMirror theme overrides */
.cm-editor { height: 100%; background: transparent !important; }
.cm-editor .cm-scroller { padding: 16px 0; line-height: 1.7; }
.cm-editor .cm-content { caret-color: #22d3ee; padding: 0 20px; }
.cm-editor .cm-gutters {
  background: transparent !important;
  border-right: 1px solid rgba(255,255,255,0.04) !important;
  color: rgba(255,255,255,0.15) !important;
  min-width: 48px;
}
.cm-editor .cm-activeLineGutter { background: transparent !important; color: rgba(34, 211, 238, 0.5) !important; }
.cm-editor .cm-activeLine { background: rgba(34, 211, 238, 0.03) !important; }
.cm-editor .cm-selectionBackground { background: rgba(34, 211, 238, 0.15) !important; }
.cm-editor.cm-focused .cm-selectionBackground { background: rgba(34, 211, 238, 0.2) !important; }
.cm-editor .cm-cursor { border-left-color: #22d3ee !important; border-left-width: 2px !important; }

/* Pulsing status dot */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.status-pulse { animation: pulse-dot 1.5s ease-in-out infinite; }

/* Sidebar navigation */
.sidebar-nav { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.08) transparent; }

.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.2);
  padding: 0 12px;
  margin-bottom: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  transition: all 0.15s;
  text-decoration: none;
}
.sidebar-link:hover {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.03);
}
.sidebar-link-active {
  color: #22d3ee;
  background: rgba(255,255,255,0.06);
}

.sidebar-link-studio {
  color: rgba(34,211,238,0.7);
  border: 1px solid transparent;
}
.sidebar-link-studio:hover {
  color: #22d3ee;
  background: rgba(34,211,238,0.05);
}
.sidebar-link-studio-active {
  color: #22d3ee;
  background: rgba(34,211,238,0.1);
  border-color: rgba(34,211,238,0.2);
}

.sidebar-icon {
  width: 16px;
  text-align: center;
  font-size: 11px;
  margin-right: 8px;
  opacity: 0.6;
}
.sidebar-link-active .sidebar-icon,
.sidebar-link-studio-active .sidebar-icon {
  opacity: 1;
}

/* Media library icon action buttons */
.media-action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.media-action-btn:hover {
  background: rgba(34,211,238,0.2);
  border-color: rgba(34,211,238,0.4);
  color: #22d3ee;
}
.media-action-btn-danger:hover {
  background: rgba(251,113,133,0.2);
  border-color: rgba(251,113,133,0.4);
  color: #fb7185;
}

/* Idea Board — keyboard-selected card highlight */
.idea-card.is-highlighted {
  box-shadow: 0 0 0 2px rgb(251 191 36) inset;
  background: rgba(255,255,255,0.05);
}
