/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/* System fonts - no external imports needed */

/* ============================================
   OpenWebUI / Ollama Inspired Design System
   ============================================ */

/* Light Theme (Default) */
:root {
  /* Backgrounds */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F9FAFB;
  --bg-tertiary: #F3F4F6;
  --bg-elevated: #FFFFFF;
  --bg-hover: #F3F4F6;
  --bg-active: #E5E7EB;

  /* Borders */
  --border-subtle: #E5E7EB;
  --border-default: #D1D5DB;
  --border-hover: #9CA3AF;
  --border-focus: #6B7280;

  /* Text */
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-tertiary: #6B7280;
  --text-muted: #9CA3AF;
  --text-inverse: #FFFFFF;

  /* Accent - Monochromatic slate */
  --accent: #111827;
  --accent-hover: #1F2937;
  --accent-muted: rgba(17, 24, 39, 0.08);
  --accent-subtle: rgba(17, 24, 39, 0.04);

  /* Status */
  --success: #059669;
  --success-bg: #ECFDF5;
  --warning: #D97706;
  --warning-bg: #FFFBEB;
  --error: #DC2626;
  --error-bg: #FEF2F2;
  --info: #2563EB;
  --info-bg: #EFF6FF;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* Sidebar */
  --sidebar-width: 220px;
  --sidebar-collapsed: 60px;

  /* Header */
  --header-height: 0px;

  /* Landing page effects */
  --orb-1: rgba(99, 102, 241, 0.15);
  --orb-2: rgba(139, 92, 246, 0.12);
  --orb-3: rgba(236, 72, 153, 0.1);
  --grid-color: rgba(0, 0, 0, 0.03);
  --accent-glow: rgba(99, 102, 241, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Dark Theme - Notion/Ollama inspired */
[data-theme="dark"] {
  /* Backgrounds - Pure blacks and neutral grays */
  --bg-primary: #191919;
  --bg-secondary: #202020;
  --bg-tertiary: #2a2a2a;
  --bg-elevated: #303030;
  --bg-hover: #2a2a2a;
  --bg-active: #333333;

  /* Logo filter for dark mode */
  --logo-filter: invert(1);

  /* Borders - Subtle, neutral */
  --border-subtle: #2a2a2a;
  --border-default: #363636;
  --border-hover: #454545;
  --border-focus: #717171;

  /* Text - Warm whites and neutral grays - WCAG AA compliant */
  --text-primary: #ebebeb;
  --text-secondary: #a8a8a8;
  --text-tertiary: #8a8a8a;
  --text-muted: #6b7280;
  /* Raised for contrast compliance */
  --text-inverse: #191919;

  /* Accent - Clean white */
  --accent: #ebebeb;
  --accent-hover: #ffffff;
  --accent-muted: rgba(255, 255, 255, 0.08);
  --accent-subtle: rgba(255, 255, 255, 0.04);

  /* Status - Softer, muted colors */
  --success: #4ade80;
  --success-bg: rgba(74, 222, 128, 0.12);
  --warning: #fbbf24;
  --warning-bg: rgba(251, 191, 36, 0.12);
  --error: #f87171;
  --error-bg: rgba(248, 113, 113, 0.12);
  --info: #a0a0a0;
  --info-bg: rgba(160, 160, 160, 0.12);

  /* Shadows - Very subtle in dark mode */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);

  /* Landing page effects - darker, more subtle */
  --orb-1: rgba(139, 92, 246, 0.08);
  --orb-2: rgba(99, 102, 241, 0.06);
  --orb-3: rgba(236, 72, 153, 0.05);
  --grid-color: rgba(255, 255, 255, 0.02);
  --accent-glow: rgba(255, 255, 255, 0.15);
  --glass-bg: rgba(32, 32, 32, 0.8);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Base Reset & Defaults
   ============================================ */

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

html,
body {
  height: 100%;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* ============================================
   Typography
   ============================================ */

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--text-primary);
}

h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--text-primary);
}

h3 {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

/* Monospace for data/code */
.mono,
code,
.code-block,
[data-mono="true"] {
  font-family: 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

/* ============================================
   Focus States
   ============================================ */

*:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* ============================================
   Links
   ============================================ */

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--text-secondary);
}

/* ============================================
   Inputs & Textareas
   ============================================ */

input,
textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:hover,
textarea:hover {
  border-color: var(--border-hover);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

input::-moz-placeholder, textarea::-moz-placeholder {
  color: var(--text-muted);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:disabled,
textarea:disabled {
  background: var(--bg-secondary);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* ============================================
   Buttons - Flat, Utilitarian Style
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  font-family: inherit;
  white-space: nowrap;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary: Inverted colors (black on light, white on dark) */
.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.btn-primary:hover:not(:disabled) {
  background: var(--text-secondary);
  border-color: var(--text-secondary);
}

/* Secondary: Outlined */
.btn-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-secondary);
  border-color: var(--border-hover);
}

/* Ghost: No background */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* Icon button */
.btn-icon {
  padding: 8px;
  width: 36px;
  height: 36px;
}

.btn-icon.btn-sm {
  width: 32px;
  height: 32px;
  padding: 6px;
}

/* Size variants */
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
}

/* ============================================
   Cards - Clean, Bordered
   ============================================ */

.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: var(--border-default);
}

.card-interactive {
  cursor: pointer;
}

.card-interactive:hover {
  background: var(--bg-secondary);
}

/* Glass Card - Modern glassmorphism effect */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--glass-border),
    transparent
  );
}

/* Glow button hover effect */
.glow-button {
  position: relative;
  overflow: hidden;
}

.glow-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.glow-button:hover::before {
  width: 300px;
  height: 300px;
}

/* ============================================
   Avatar
   ============================================ */

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-secondary);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 20px;
}

/* ============================================
   Tags & Badges
   ============================================ */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  font-family: 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Pastel Skill Tags */
.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 11px;
  font-weight: 500;
}

.skill-tag:nth-child(12n+1) {
  background: rgba(255, 182, 193, 0.3);
  color: #be185d;
}

.skill-tag:nth-child(12n+2) {
  background: rgba(173, 216, 230, 0.3);
  color: #0369a1;
}

.skill-tag:nth-child(12n+3) {
  background: rgba(144, 238, 144, 0.3);
  color: #15803d;
}

.skill-tag:nth-child(12n+4) {
  background: rgba(255, 218, 185, 0.3);
  color: #c2410c;
}

.skill-tag:nth-child(12n+5) {
  background: rgba(221, 160, 221, 0.3);
  color: #7e22ce;
}

.skill-tag:nth-child(12n+6) {
  background: rgba(255, 255, 186, 0.3);
  color: #a16207;
}

.skill-tag:nth-child(12n+7) {
  background: rgba(176, 224, 230, 0.3);
  color: #0e7490;
}

.skill-tag:nth-child(12n+8) {
  background: rgba(255, 182, 193, 0.25);
  color: #9f1239;
}

.skill-tag:nth-child(12n+9) {
  background: rgba(152, 251, 152, 0.3);
  color: #166534;
}

.skill-tag:nth-child(12n+10) {
  background: rgba(216, 191, 216, 0.3);
  color: #6b21a8;
}

.skill-tag:nth-child(12n+11) {
  background: rgba(255, 228, 196, 0.3);
  color: #b45309;
}

.skill-tag:nth-child(12n+12) {
  background: rgba(175, 238, 238, 0.3);
  color: #0891b2;
}

/* Dark mode pastel adjustments - muted and neutral */
[data-theme="dark"] .skill-tag:nth-child(12n+1) {
  background: rgba(235, 235, 235, 0.08);
  color: #c0c0c0;
}

[data-theme="dark"] .skill-tag:nth-child(12n+2) {
  background: rgba(235, 235, 235, 0.08);
  color: #b8b8b8;
}

[data-theme="dark"] .skill-tag:nth-child(12n+3) {
  background: rgba(235, 235, 235, 0.08);
  color: #a8a8a8;
}

[data-theme="dark"] .skill-tag:nth-child(12n+4) {
  background: rgba(235, 235, 235, 0.08);
  color: #c0c0c0;
}

[data-theme="dark"] .skill-tag:nth-child(12n+5) {
  background: rgba(235, 235, 235, 0.08);
  color: #b8b8b8;
}

[data-theme="dark"] .skill-tag:nth-child(12n+6) {
  background: rgba(235, 235, 235, 0.08);
  color: #a8a8a8;
}

[data-theme="dark"] .skill-tag:nth-child(12n+7) {
  background: rgba(235, 235, 235, 0.08);
  color: #c0c0c0;
}

[data-theme="dark"] .skill-tag:nth-child(12n+8) {
  background: rgba(235, 235, 235, 0.08);
  color: #b8b8b8;
}

[data-theme="dark"] .skill-tag:nth-child(12n+9) {
  background: rgba(235, 235, 235, 0.08);
  color: #a8a8a8;
}

[data-theme="dark"] .skill-tag:nth-child(12n+10) {
  background: rgba(235, 235, 235, 0.08);
  color: #c0c0c0;
}

[data-theme="dark"] .skill-tag:nth-child(12n+11) {
  background: rgba(235, 235, 235, 0.08);
  color: #b8b8b8;
}

[data-theme="dark"] .skill-tag:nth-child(12n+12) {
  background: rgba(235, 235, 235, 0.08);
  color: #a8a8a8;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 11px;
  font-weight: 500;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge-error {
  background: var(--error-bg);
  color: var(--error);
}

.badge-info {
  background: var(--info-bg);
  color: var(--info);
}

.badge-neutral {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

/* ============================================
   Pills (Filters)
   ============================================ */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
}

.pill-label {
  color: var(--text-muted);
}

.pill-value {
  color: var(--text-primary);
  font-weight: 500;
}

/* ============================================
   Sidebar Navigation
   ============================================ */

.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: width 0.2s ease;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed);
}

.sidebar-header {
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.sidebar-logo {
  width: 28px;
  height: 28px;
  background: var(--text-primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-logo svg {
  color: var(--bg-primary);
}

.sidebar-title {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  font-family: 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  letter-spacing: 0.02em;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 8px;
  overflow-y: auto;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 2px;
  text-decoration: none;
}

.sidebar-nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.sidebar-nav-item.active {
  background: var(--bg-active);
  color: var(--text-primary);
}

.sidebar-nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-nav-label {
  white-space: nowrap;
  overflow: hidden;
  font-family: 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 13px;
}

.sidebar.collapsed .sidebar-nav-label,
.sidebar.collapsed .sidebar-title {
  display: none;
}

.sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid var(--border-subtle);
}

.sidebar-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 8px 12px;
}

/* ============================================
   Theme Toggle
   ============================================ */

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* ============================================
   Main Content Layout
   ============================================ */

.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.main-content {
  flex: 1;
  overflow: auto;
  background: var(--bg-primary);
}

.page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px;
}

.page-container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.page-header {
  margin-bottom: 32px;
}

.page-title {
  margin-bottom: 8px;
}

.page-description {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ============================================
   Page Layouts
   ============================================ */

.page-center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-primary);
}

.auth-container {
  width: 100%;
  max-width: 360px;
}

.auth-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  width: 48px;
  height: 48px;
  background: var(--text-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.auth-logo svg {
  color: var(--bg-primary);
}

.auth-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--text-primary);
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ============================================
   Scrollbar
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* ============================================
   Loading States - Minimal Pulsing Bar
   ============================================ */

.loader {
  display: flex;
  align-items: center;
  gap: 4px;
}

.loader-bar {
  width: 4px;
  height: 16px;
  background: var(--text-muted);
  border-radius: 2px;
  animation: loader-pulse 1s ease-in-out infinite;
}

.loader-bar:nth-child(2) {
  animation-delay: 0.15s;
}

.loader-bar:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes loader-pulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Dot loader */
.loader-dots {
  display: flex;
  gap: 4px;
}

.loader-dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: loader-dot-pulse 1.2s ease-in-out infinite;
}

.loader-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loader-dot-pulse {

  0%,
  80%,
  100% {
    opacity: 0.3;
  }

  40% {
    opacity: 1;
  }
}

/* Skeleton loading - see Enhanced Skeleton Loaders section below */

/* ============================================
   Animations - Subtle & Clean
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.2s ease forwards;
}

.animate-slide-in {
  animation: slideIn 0.3s ease forwards;
}

/* Stagger children */
.stagger-children>* {
  opacity: 0;
  animation: slideIn 0.3s ease forwards;
}

.stagger-children>*:nth-child(1) {
  animation-delay: 0ms;
}

.stagger-children>*:nth-child(2) {
  animation-delay: 50ms;
}

.stagger-children>*:nth-child(3) {
  animation-delay: 100ms;
}

.stagger-children>*:nth-child(4) {
  animation-delay: 150ms;
}

.stagger-children>*:nth-child(5) {
  animation-delay: 200ms;
}

/* Pulse animation for loading indicators */
@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.95);
  }
}

.animate-pulse-dot {
  animation: pulse-dot 1.5s ease-in-out infinite;
}

/* ============================================
   Code Block
   ============================================ */

.code-block {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 16px;
  font-family: 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
  overflow-x: auto;
  white-space: pre;
  line-height: 1.6;
}

/* ============================================
   Section Headers
   ============================================ */

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   Dividers
   ============================================ */

.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 16px 0;
}

/* ============================================
   Utility Classes
   ============================================ */

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 4px;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.gap-4 {
  gap: 16px;
}

.gap-6 {
  gap: 24px;
}

.text-center {
  text-align: center;
}

.text-sm {
  font-size: 13px;
}

.text-xs {
  font-size: 12px;
}

.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

/* ============================================
   Stats Grid
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 20px;
}

.stat-value {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   Progress Bar
   ============================================ */

.progress-bar {
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ============================================
   Empty State
   ============================================ */

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--text-muted);
}

.empty-state-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-description {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 300px;
  margin: 0 auto;
}

/* ============================================
   Action Cards (Dashboard)
   ============================================ */

.action-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.action-card:hover {
  background: var(--bg-secondary);
  border-color: var(--border-default);
}

.action-card-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.action-card-content {
  flex: 1;
}

.action-card-title {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.action-card-description {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ============================================
   Search Specific
   ============================================ */

.search-bar-container:focus-within {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.search-bar-container input::-moz-placeholder {
  color: var(--text-muted);
}

.search-bar-container input::placeholder {
  color: var(--text-muted);
}

/* ============================================
   Profile Card (Search Results)
   ============================================ */

.profile-card {
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.profile-card:hover {
  background: var(--bg-secondary);
}

.profile-card.selected {
  background: var(--bg-secondary);
  border-color: var(--border-default);
}

.profile-card.checked {
  background: var(--accent-subtle);
  border-color: var(--border-default);
}

/* ============================================
   Tooltip
   ============================================ */

.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  padding: 6px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s ease;
  pointer-events: none;
  z-index: 100;
  margin-bottom: 4px;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   Alert/Notice
   ============================================ */

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success);
}

.alert-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.alert-error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid var(--error);
}

.alert-info {
  background: var(--info-bg);
  color: var(--info);
  border: 1px solid var(--info);
}

/* ============================================
   Drag & Drop Zone
   ============================================ */

.drop-zone {
  border: 2px dashed var(--border-default);
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.drop-zone:hover {
  border-color: var(--border-hover);
  background: var(--bg-secondary);
}

.drop-zone.active {
  border-color: var(--text-primary);
  background: var(--bg-secondary);
}

.drop-zone-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--text-muted);
}

.drop-zone-title {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.drop-zone-description {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ============================================
   Mobile Responsive Styles
   ============================================ */

@media (max-width: 768px) {

  /* Hide sidebar on mobile */
  .sidebar {
    position: fixed;
    left: -100%;
    z-index: 100;
    height: 100%;
    transition: left 0.3s ease;
  }

  .sidebar.open {
    left: 0;
  }

  .main-content {
    margin-left: 0 !important;
  }

  /* Stack layout on mobile */
  .app-layout {
    flex-direction: column;
  }

  /* Full width containers */
  .page-container {
    padding: 16px;
  }

  /* Stack cards */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Smaller stat cards */
  .stat-card {
    padding: 16px;
  }

  .stat-value {
    font-size: 24px;
  }

  /* Hide profile detail panel on mobile */
  @media (max-width: 640px) {
    .stats-grid {
      grid-template-columns: 1fr;
    }
  }

  /* Auth pages */
  .auth-container {
    padding: 16px;
  }

  .auth-card {
    padding: 24px;
  }

  /* Search page adjustments */
  .search-input-shortcut {
    display: none;
  }
}

@media (max-width: 480px) {

  /* Even smaller screens */
  .page-header h1,
  .page-title {
    font-size: 20px;
  }

  .btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .btn-lg {
    padding: 12px 20px;
  }

  /* Hide sidebar completely */
  .sidebar {
    display: none;
  }

  /* Cards smaller */
  .card {
    padding: 16px;
  }
}

/* ============================================
   Command Palette (Cmd+K)
   ============================================ */

.command-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
}

.command-dialog {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  z-index: 1000;
  padding: 0 16px;
}

.command-root {
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.command-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.command-search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.command-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  padding: 0;
}

.command-input::-moz-placeholder {
  color: var(--text-muted);
}

.command-input::placeholder {
  color: var(--text-muted);
}

.command-kbd {
  padding: 4px 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-family: 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.command-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
}

.command-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.command-group {
  margin-bottom: 8px;
}

.command-group [cmdk-group-heading] {
  padding: 8px 12px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

.command-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.1s;
}

.command-item:hover,
.command-item[aria-selected="true"] {
  background: var(--bg-hover);
}

.command-item-icon {
  font-size: 16px;
  width: 24px;
  text-align: center;
}

.command-item-label {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
}

.command-shortcut {
  padding: 4px 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-family: 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
}

/* ============================================
   Enhanced Skeleton Loaders
   ============================================ */

.skeleton {
  background: linear-gradient(90deg,
      var(--bg-tertiary) 0%,
      var(--bg-hover) 50%,
      var(--bg-tertiary) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.profile-skeleton {
  padding: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  margin-bottom: 12px;
}

.skeleton-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.skeleton-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.skeleton-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-results-skeleton {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-card-skeleton {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-item-skeleton {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

/* ============================================
   Enhanced Page Transitions
   ============================================ */

/* Smooth transitions for all interactive elements */
button,
a,
.card,
.profile-card,
.action-card,
input,
textarea {
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Micro-interactions */
.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.card-interactive:active {
  transform: scale(0.995);
}

/* Link hover effect */
.sidebar-nav-item {
  position: relative;
  overflow: hidden;
}

.sidebar-nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--text-primary);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.sidebar-nav-item.active::before {
  transform: scaleY(1);
}

/* List item hover highlight */
.profile-card {
  position: relative;
}

.profile-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  opacity: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      var(--accent-muted) 0%,
      transparent 70%);
  pointer-events: none;
  transition: opacity 0.3s;
}

.profile-card:hover::after {
  opacity: 1;
}

/* Focus ring animation */
@keyframes focus-ring-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 3px var(--accent-muted);
  }

  50% {
    box-shadow: 0 0 0 5px var(--accent-muted);
  }
}

.btn:focus-visible {
  animation: focus-ring-pulse 1.5s ease infinite;
}

/* Smooth height transitions for collapsibles */
.collapsible-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.collapsible-content.open {
  grid-template-rows: 1fr;
}

.collapsible-inner {
  overflow: hidden;
}

/* Toast notification styles */
.toast-custom {
  font-family: 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace !important;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .skeleton {
    animation: none;
    background: var(--bg-tertiary);
  }
}
