:root {
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --secondary: #6366f1;
  --bg-main: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --border: rgba(255, 255, 255, 0.1);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --success: #10b981;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
}

/* Layout */
.sidebar {
  width: 260px;
  border-right: 1px solid var(--border);
  padding: 2rem 1.5rem;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
}

.main-content {
  flex: 1;
  padding: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Typography */
h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 2rem; color: #fff; }
h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
p { color: var(--text-muted); line-height: 1.6; }

/* Navigation */
.nav-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.nav-item:hover, .nav-item.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
}

/* Cards */
.card {
  background: var(--bg_card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Connection Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-left: 1rem;
}

.status-connected {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.status-disconnected {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary_hover); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.05); }

/* Grid for Integrations */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

/* Icons Styles */
.provider-icon { width: 24px; height: 24px; margin-right: 12px; }

/* Tabs */
.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.tab {
  padding: 1rem 2rem;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Skeleton/Loader */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, #2d3748 50%, var(--bg-card) 75%);
  background_size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background_position: 200% 0; }
  100% { background_position: -200% 0; }
}
