/* public/css/dashboard.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-color: #0a0a0f;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.1);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-blue: #6366f1;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --gradient-primary: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  --font-body: 'Inter', sans-serif;
  --font-code: 'JetBrains Mono', monospace;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 24px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid var(--card-border);
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-body);
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.centered-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid var(--card-border);
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links a {
  color: var(--text-secondary);
  margin-left: 20px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.dashboard-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.stat-card h3 {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0;
}

.stat-card .value {
  font-size: 2rem;
  font-weight: 700;
  margin: 10px 0 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
}

th {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.code-block {
  background: #000;
  padding: 16px;
  border-radius: 6px;
  font-family: var(--font-code);
  font-size: 0.9rem;
  overflow-x: auto;
  color: #e2e8f0;
  border: 1px solid var(--card-border);
  margin: 1em 0;
}

/* Docs specific */
.docs-layout {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
}

.docs-sidebar {
  width: 250px;
  padding: 32px 24px;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
  border-right: 1px solid var(--card-border);
}

.docs-sidebar ul {
  list-style: none;
  padding: 0;
}

.docs-sidebar li {
  margin-bottom: 12px;
}

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

.docs-sidebar a:hover, .docs-sidebar a.active {
  color: var(--accent-cyan);
}

.docs-content {
  flex: 1;
  padding: 40px;
  max-width: 900px;
}

.docs-content h2 {
  margin-top: 40px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--card-border);
}

@media (max-width: 768px) {
  .docs-layout {
    flex-direction: column;
  }
  .docs-sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--card-border);
    position: static;
    padding: 16px;
  }
}

.progress-bar-container {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  height: 8px;
  width: 100%;
  margin-top: 10px;
  overflow: hidden;
}

.progress-bar {
  background: var(--gradient-primary);
  height: 100%;
  border-radius: 10px;
  transition: width 0.3s;
}

.copy-container {
  display: flex;
  gap: 10px;
  align-items: center;
}
.copy-container input {
  flex: 1;
  font-family: var(--font-code);
}
.error-msg {
  color: #ef4444;
  margin-top: 10px;
  display: none;
}
