@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

/* 
  Custom Design System - "Deep Blue Premium"
*/

:root {
  /* Colors - HSL for easy manipulation */
  --primary-h: 215;
  --primary-s: 90%;
  --primary-l: 52%;
  /* Brand Blue */

  --bg-h: 220;
  --bg-s: 40%;
  --bg-l: 10%;
  /* Deepest Blue/Black */

  --surface-h: 220;
  --surface-s: 30%;
  --surface-l: 16%;
  /* Card Background */

  --text-main: hsl(0, 0%, 100%);
  --text-muted: hsl(220, 15%, 70%);

  /* Derived Colors */
  --color-primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
  --color-primary-glow: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.5);

  --color-bg: hsl(var(--bg-h), var(--bg-s), var(--bg-l));
  --color-surface: hsl(var(--surface-h), var(--surface-s), var(--surface-l));
  --color-surface-hover: hsl(var(--surface-h), var(--surface-s), 22%);

  /* State Colors */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;

  /* Glassmorphism */
  --glass-bg: hsla(220, 30%, 16%, 0.7);
  --glass-border: hsla(0, 0%, 100%, 0.1);

  /* Layout */
  --sidebar-width: 260px;
  --header-height: 70px;
}

body {
  background-color: var(--color-bg);
  background-image:
    radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(147, 51, 234, 0.08) 0%, transparent 25%);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.text-gradient {
  background: linear-gradient(135deg, #60A5FA 0%, #A78BFA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #3B82F6 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px var(--color-primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--color-primary-glow);
}

.form-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  width: 100%;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 2px var(--color-primary-glow);
}

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

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4B5563;
}