:root {
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --secondary-color: #64748b;
  --bg-dark: #0f172a;
  --card-bg: #1e293b;
  --card-border: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --table-hover: rgba(59, 130, 246, 0.08);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  margin: 0;
  padding-bottom: 60px;
}

/* Glassmorphism Navbar */
.navbar-custom {
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.brand-badge {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

/* Card Styling */
.card-custom {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-custom-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--card-border);
  padding: 16px 20px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

/* Timeline & Archives List */
.archive-card {
  cursor: pointer;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.archive-card:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: var(--primary-color);
  transform: translateX(4px);
}

.archive-card.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

/* Breadcrumbs */
.breadcrumb-custom {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb-custom a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.breadcrumb-custom a:hover {
  color: #fff;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--text-muted);
}

/* File Explorer Table */
.table-custom {
  color: var(--text-main);
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.table-custom th {
  background: rgba(15, 23, 42, 0.5);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--card-border);
  padding: 12px 14px;
}

.table-custom td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.table-custom tr:hover td {
  background-color: var(--table-hover);
}

.folder-row {
  cursor: pointer;
  font-weight: 500;
}

.folder-icon {
  color: #f59e0b;
  margin-right: 8px;
  font-size: 1.15rem;
}

.file-icon {
  color: #94a3b8;
  margin-right: 8px;
  font-size: 1.1rem;
}

/* Console Log Box */
.terminal-output {
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: 10px;
  color: #10b981;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.88rem;
  padding: 16px;
  max-height: 280px;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.5;
}

/* Status Indicators */
.badge-custom {
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
}

.badge-mock {
  background-color: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-cached {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Modal Styling */
.modal-content-custom {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  border-radius: 16px;
}

.form-control-custom {
  background-color: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  border-radius: 8px;
}

.form-control-custom:focus {
  background-color: rgba(15, 23, 42, 0.9);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}
