:root {
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --accent: #10b981;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --border: #e2e8f0;
  --radius: 12px;
}

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

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

.navbar {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  font-size: 2rem;
  background: #e0f2fe;
  padding: 0.5rem;
  border-radius: var(--radius);
}

.brand h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f1f5f9;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
}

.container {
  max-width: 1300px;
  width: 100%;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.5rem;
  flex: 1;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.text-sm {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border);
}

.text-green {
  color: var(--accent);
}

.tool-list {
  list-style: none;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tool-list code {
  background: #f1f5f9;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  color: var(--primary);
  font-family: monospace;
}

.telemetry-log {
  background: #0f172a;
  color: #38bdf8;
  font-family: monospace;
  font-size: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.log-entry {
  line-height: 1.4;
  word-break: break-word;
}

.workspace-card {
  min-height: 550px;
  display: flex;
  flex-direction: column;
}

.empty-state {
  margin: auto;
  text-align: center;
  max-width: 480px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state h2 {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.alert-banner {
  background-color: var(--danger-bg);
  border: 1px solid var(--danger);
  color: #991b1b;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hidden {
  display: none !important;
}

/* Homework Assignment Layouts */
.assignment-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.assignment-table th, .assignment-table td {
  border: 1px solid var(--border);
  padding: 0.75rem;
  text-align: left;
  font-size: 0.85rem;
}

.assignment-table th {
  background-color: #f1f5f9;
}

.assignment-header {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* Visual Breathing Circle Animation */
.grounding-box {
  text-align: center;
  padding: 2rem 0;
}

.breathing-circle {
  width: 140px;
  height: 140px;
  margin: 1.5rem auto;
  border-radius: 50%;
  background: #bae6fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--primary-hover);
  animation: breathe 8s infinite ease-in-out;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); background: #bae6fd; content: "Breathe In"; }
  50% { transform: scale(1.4); background: #7dd3fc; content: "Exhale Gently"; }
}

footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--card-bg);
}
