/* public/style.css */

/* Core variables & styling */
:root {
  --primary: #4f46e5;       /* indigo-600 */
  --primary-hover: #4338ca; /* indigo-700 */
  --primary-light: #e0e7ff; /* indigo-100 */
  --success: #10b981;       /* emerald-500 */
  --success-hover: #059669; /* emerald-600 */
  --danger: #ef4444;        /* red-500 */
  --danger-hover: #dc2626;  /* red-600 */
  --bg-base: #f8fafc;       /* slate-50 */
  --bg-card: #ffffff;
  --text-main: #0f172a;     /* slate-900 */
  --text-muted: #64748b;    /* slate-500 */
  --border-color: #e2e8f0;  /* slate-200 */
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-base);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Glassmorphism utility */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Custom shadow */
.shadow-premium {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05),
              0 1px 3px rgba(0, 0, 0, 0.02);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.animate-slide-up {
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Selection and Drag states for Moderator panel */
.selected-question {
  border-color: var(--primary) !important;
  background-color: var(--primary-light) !important;
}

.sortable-ghost {
  opacity: 0.4;
  border: 2px dashed var(--primary);
  background: var(--primary-light);
}

.sortable-chosen {
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.15) !important;
}

/* Floating input bar at bottom (user index page) */
.bottom-input-bar {
  position: sticky;
  bottom: 0;
  width: 100%;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
}

/* Hover effects */
.hover-scale {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-scale:hover {
  transform: scale(1.02);
}
.hover-scale:active {
  transform: scale(0.98);
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Form inputs styling */
.custom-input {
  border: 1px solid var(--border-color);
  transition: all 0.2s ease-in-out;
}
.custom-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
  outline: none;
}
