@tailwind base;
@tailwind components;
@tailwind utilities;

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Cyrah Neural OS â€” Professional UI Enhancement Layer
   Applied across all pages for a cohesive, modern, accessible interface.
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
:root {
  --cyrah-bg-primary: #0a0a14;
  --cyrah-bg-secondary: #0f0f1e;
  --cyrah-bg-tertiary: #14142a;
  --cyrah-surface: rgba(255,255,255,0.04);
  --cyrah-surface-hover: rgba(255,255,255,0.08);
  --cyrah-border: rgba(255,255,255,0.08);
  --cyrah-border-strong: rgba(255,255,255,0.16);
  --cyrah-accent: #6366f1;
  --cyrah-accent-2: #8b5cf6;
  --cyrah-accent-3: #06b6d4;
  --cyrah-success: #10b981;
  --cyrah-warning: #f59e0b;
  --cyrah-danger: #ef4444;
  --cyrah-text: rgba(255,255,255,0.92);
  --cyrah-text-muted: rgba(255,255,255,0.55);
  --cyrah-text-dim: rgba(255,255,255,0.35);
  --cyrah-radius: 14px;
  --cyrah-radius-sm: 10px;
  --cyrah-radius-lg: 20px;
  --cyrah-shadow: 0 4px 24px rgba(0,0,0,0.35);
  --cyrah-shadow-lg: 0 12px 48px rgba(0,0,0,0.45);
  --cyrah-glow: 0 0 24px rgba(99,102,241,0.25);
  --cyrah-transition: 0.25s cubic-bezier(0.16,1,0.3,1);
}
*, *::before, *::after { box-sizing: border-box; }
body {
  background: var(--cyrah-bg-primary);
  color: var(--cyrah-text);
  font-family: 'Outfit','Segoe UI',system-ui,-apple-system,sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Professional glass-morphism panels */
.cyrah-panel, .glass, .glass-panel {
  background: var(--cyrah-surface) !important;
  backdrop-filter: blur(20px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.2) !important;
  border: 1px solid var(--cyrah-border) !important;
  border-radius: var(--cyrah-radius) !important;
  box-shadow: var(--cyrah-shadow) !important;
}
/* Buttons */
.cyrah-btn, .btn-icon, button[class*="bg-"] {
  border-radius: var(--cyrah-radius-sm) !important;
  transition: all var(--cyrah-transition) !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
}
.cyrah-btn:hover, .btn-icon:hover {
  transform: translateY(-1px) !important;
  box-shadow: var(--cyrah-glow) !important;
  border-color: var(--cyrah-border-strong) !important;
}
.cyrah-btn:active, .btn-icon:active { transform: translateY(0) !important; }
/* Inputs */
input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="url"], textarea, select {
  background: var(--cyrah-surface) !important;
  border: 1px solid var(--cyrah-border) !important;
  border-radius: var(--cyrah-radius-sm) !important;
  color: var(--cyrah-text) !important;
  transition: all var(--cyrah-transition) !important;
  outline: none !important;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--cyrah-accent) !important;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15) !important;
}
input::placeholder, textarea::placeholder { color: var(--cyrah-text-dim) !important; }
/* Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyrah-accent), var(--cyrah-accent-2));
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: var(--cyrah-accent-2); }
/* Professional card hover lift */
.cyrah-card {
  background: var(--cyrah-surface);
  border: 1px solid var(--cyrah-border);
  border-radius: var(--cyrah-radius);
  transition: all var(--cyrah-transition);
  overflow: hidden;
}
.cyrah-card:hover {
  background: var(--cyrah-surface-hover);
  border-color: var(--cyrah-border-strong);
  transform: translateY(-3px);
  box-shadow: var(--cyrah-shadow-lg);
}
/* Animated gradient text */
.cyrah-gradient-text {
  background: linear-gradient(135deg, var(--cyrah-accent), var(--cyrah-accent-2), var(--cyrah-accent-3));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: cyrah-grad-shift 4s ease-in-out infinite;
}
@keyframes cyrah-grad-shift {
  0%,100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}
/* Professional badges */
.cyrah-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(99,102,241,0.15);
  color: var(--cyrah-accent);
  border: 1px solid rgba(99,102,241,0.2);
}
.cyrah-badge.success { background: rgba(16,185,129,0.15); color: var(--cyrah-success); border-color: rgba(16,185,129,0.2); }
.cyrah-badge.warning { background: rgba(245,158,11,0.15); color: var(--cyrah-warning); border-color: rgba(245,158,11,0.2); }
.cyrah-badge.danger { background: rgba(239,68,68,0.15); color: var(--cyrah-danger); border-color: rgba(239,68,68,0.2); }
/* Loading spinner */
.cyrah-spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--cyrah-border);
  border-top-color: var(--cyrah-accent);
  border-radius: 50%;
  animation: cyrah-spin 0.7s linear infinite;
}
@keyframes cyrah-spin { to { transform: rotate(360deg); } }
/* Toast notifications */
.cyrah-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: var(--cyrah-radius-sm);
  background: var(--cyrah-bg-tertiary);
  border: 1px solid var(--cyrah-border-strong);
  box-shadow: var(--cyrah-shadow-lg);
  font-size: 14px;
  z-index: 99999;
  animation: cyrah-toast-in 0.3s ease;
}
@keyframes cyrah-toast-in {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
/* Tooltip */
.cyrah-tooltip {
  position: relative;
  cursor: help;
}
.cyrah-tooltip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 100%; left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding: 4px 10px;
  background: var(--cyrah-bg-tertiary);
  border: 1px solid var(--cyrah-border);
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 100;
}
.cyrah-tooltip:hover::after { opacity: 1; }
/* Responsive */
@media (max-width: 768px) {
  :root { --cyrah-radius: 12px; --cyrah-radius-lg: 16px; }
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* Focus visible */
*:focus-visible {
  outline: 2px solid var(--cyrah-accent);
  outline-offset: 2px;
}
/* Link defaults */
a { color: var(--cyrah-accent); text-decoration: none; transition: color var(--cyrah-transition); }
a:hover { color: var(--cyrah-accent-2); }
