/* Composer Suite - Standalone Dashboard Styles */
/* Purple/Pink theme with dark mode */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Colors - OKLCH converted to RGB approximations */
  --background: #000000;
  --foreground: #f3f3f3;
  --card: #1a1a1f;
  --card-foreground: #f3f3f3;
  --popover: #1a1a1a;
  --popover-foreground: #f3f3f3;
  --primary: #a855f7;
  --primary-foreground: #fafafa;
  --secondary: #212121;
  --secondary-foreground: #d9d9d9;
  --muted: #292929;
  --muted-foreground: #8c8c8c;
  --accent: #a855f7;
  --accent-foreground: #fafafa;
  --destructive: #ef4444;
  --destructive-foreground: #fafafa;
  --border: #2e2e2e;
  --input: #212121;
  --ring: #a855f7;
  
  /* Gradient colors */
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-400: #c084fc;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --pink-400: #f472b6;
  
  /* Radius */
  --radius: 0.625rem;
  --radius-sm: 0.425rem;
  --radius-md: 0.525rem;
  --radius-lg: 0.625rem;
  --radius-xl: 0.825rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Auth Pages Background */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: 
    radial-gradient(ellipse 100% 100% at 100% -20%, rgba(168, 85, 247, 0.3), transparent 50%),
    radial-gradient(ellipse 80% 80% at 0% 120%, rgba(168, 85, 247, 0.15), transparent 70%),
    var(--background);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
  margin-bottom: 2rem;
  justify-content: center;
}

.logo-text {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

.logo-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--primary);
}

/* Cards */
.card {
  background: rgba(26, 26, 31, 0.3);
  border: 1px solid rgba(46, 46, 46, 0.4);
  border-radius: var(--radius-xl);
  padding: 2rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-header {
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.card-content {
  margin-top: 1rem;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.25rem;
}

.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.input {
  width: 100%;
  height: 2.5rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  background: rgba(18, 18, 18, 0.5);
  border: 1px solid rgba(46, 46, 46, 0.5);
  border-radius: var(--radius);
  color: var(--foreground);
  transition: all 0.2s;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.input::placeholder {
  color: var(--muted-foreground);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-500), var(--pink-500));
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--purple-600), var(--pink-600));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  background: var(--muted);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background: var(--muted);
}

.btn-full {
  width: 100%;
}

.btn-lg {
  height: 3rem;
  font-size: 1rem;
}

/* Dashboard Layout */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 15rem;
  height: 100vh;
  background: var(--background);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.sidebar-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple-400), var(--pink-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li {
  margin-bottom: 0.25rem;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-lg);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  transition: all 0.2s;
  text-decoration: none;
}

.sidebar-menu a:hover {
  background: var(--muted);
  color: var(--foreground);
}

.sidebar-menu a.active {
  background: rgba(168, 85, 247, 0.1);
  color: var(--primary);
  font-weight: 500;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.plan-card {
  background-color: color-mix(in oklab, #0d0d0d 50%, transparent);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.plan-title {
  font-size: 0.875rem;
  font-weight: 600;
}

.plan-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.logout-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-lg);
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.logout-badge:hover {
  background: var(--muted);
  color: var(--foreground);
}

.logout-badge .icon {
  width: 1rem;
  height: 1rem;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 15rem;
  display: flex;
  flex-direction: column;
}

.header {
  height: 4rem;
  border-bottom: 1px solid var(--border);
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background: transparent;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  transition: background 0.2s;
}

.user-menu:hover {
  background: var(--muted);
}

.user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.user-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.content {
  flex: 1;
  padding: 2rem;
}

/* Dashboard Specific */
.dashboard-hero {
  margin-bottom: 2rem;
}

.hero-label {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-description {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: rgba(26, 26, 31, 0.5);
  border: 1px solid rgba(46, 46, 46, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.metric-card:hover {
  border-color: rgba(46, 46, 46, 0.6);
}

.metric-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.metric-info {
  flex: 1;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
}

.metric-icon {
  padding: 0.5rem;
  background: rgba(168, 85, 247, 0.1);
  border-radius: var(--radius-lg);
  color: var(--primary);
}

.metric-description {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.step-card {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(46, 46, 46, 0.4);
}

.step-number {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-lg);
  background: rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Subscription Page */
.subscription-container {
  max-width: 48rem;
  margin: 0 auto;
}

.subscription-header {
  margin-bottom: 2rem;
}

.subscription-header-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.subscription-title {
  font-size: 1.875rem;
  font-weight: 700;
}

.subscription-description {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.plan-card-large {
  background-color: color-mix(in oklab, #0d0d0d 50%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.plan-header-large {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.plan-info {
  flex: 1;
}

.plan-name-large {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple-400), var(--pink-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  border: 1px solid var(--border);
}

.price-container {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.price-value {
  font-size: 3rem;
  font-weight: 700;
}

.price-period {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.features-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.feature-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 0.75rem;
  height: 0.75rem;
  color: var(--primary);
}

.feature-text {
  font-size: 0.875rem;
}

.btn-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn-loading {
  pointer-events: none;
  opacity: 0.9;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Icons */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--muted-foreground);
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.gradient-text {
  background: linear-gradient(135deg, var(--purple-400), var(--pink-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
}
