/* Villanyan-Agent 3.0 — Custom CSS (Tailwind-free, zero build) */

:root {
  --page: #000000;
  --surface: #111111;
  --surface-hover: #1E1E1E;
  --border: #2C2C2E;
  --accent: #00D18B;
  --primary: #FFFFFF;
  --secondary: #8E8E93;
  --success: #00D18B;
  --danger: #FF453A;
  --warning: #FF9F0A;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--page);
  color: var(--primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-none { flex: none; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-around { justify-content: space-around; }
.self-end { align-self: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-0\.5 { gap: 0.125rem; }
.min-w-0 { min-width: 0; }
.shrink-0 { flex-shrink: 0; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }
.h-screen { height: 100vh; }
.min-h-screen { min-height: 100vh; }
.min-h-32 { min-height: 8rem; }
.min-h-\[80vh\] { min-height: 80vh; }
.h-1\.5 { height: 0.375rem; }
.h-2 { height: 0.5rem; }
.h-2\.5 { height: 0.625rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-64 { height: 16rem; }
.h-full { height: 100%; }
.w-1\.5 { width: 0.375rem; }
.w-2 { width: 0.5rem; }
.w-2\.5 { width: 0.625rem; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { height: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-64 { width: 16rem; }
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-md { max-width: 28rem; }
.max-w-sm { max-width: 24rem; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-\[80\%\] { max-width: 80%; }
.max-w-\[200px\] { max-width: 200px; }
.max-h-96 { max-height: 24rem; }
.max-h-64 { max-height: 16rem; }

/* Spacing */
.p-1 { padding: 0.25rem; }
.p-1\.5 { padding: 0.375rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-4 { padding-top: 1rem; }
.pb-4 { padding-bottom: 1rem; }
.pl-5 { padding-left: 1.25rem; }
.pr-12 { padding-right: 3rem; }
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-\[26px\] { margin-left: 26px; }
.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.-m-6 { margin: -1.5rem; }

/* Typography */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[12px\] { font-size: 12px; }
.text-\[13px\] { font-size: 13px; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-5xl { font-size: 3rem; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.font-mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; }
.font-sans { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.whitespace-nowrap { white-space: nowrap; }
.break-words { word-wrap: break-word; }
.break-all { word-break: break-all; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.not-italic { font-style: normal; }
.line-through { text-decoration: line-through; }

/* Colors */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-page { color: var(--page); }
.text-white { color: #ffffff; }
.text-\[#f5a623\] { color: #f5a623; }
.text-accent\/60 { color: rgba(0, 209, 139, 0.6); }
.text-secondary\/30 { color: rgba(142, 142, 147, 0.3); }
.text-secondary\/60 { color: rgba(142, 142, 147, 0.6); }
.text-secondary\/70 { color: rgba(142, 142, 147, 0.7); }
.bg-page { background-color: var(--page); }
.bg-surface { background-color: var(--surface); }
.bg-surface-hover { background-color: var(--surface-hover); }
.bg-accent { background-color: var(--accent); }
.bg-white { background-color: #ffffff; }
.bg-transparent { background-color: transparent; }
.bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); }
.bg-black\/60 { background-color: rgba(0, 0, 0, 0.6); }
.bg-page\/50 { background-color: rgba(0, 0, 0, 0.5); }
.bg-surface\/30 { background-color: rgba(17, 17, 17, 0.3); }
.bg-surface\/50 { background-color: rgba(17, 17, 17, 0.5); }
.bg-surface-hover\/30 { background-color: rgba(30, 30, 30, 0.3); }
.bg-surface-hover\/50 { background-color: rgba(30, 30, 30, 0.5); }
.bg-accent\/5 { background-color: rgba(0, 209, 139, 0.05); }
.bg-accent\/10 { background-color: rgba(0, 209, 139, 0.1); }
.bg-accent\/20 { background-color: rgba(0, 209, 139, 0.2); }
.bg-success\/10 { background-color: rgba(0, 209, 139, 0.1); }
.bg-danger\/10 { background-color: rgba(255, 69, 58, 0.1); }
.bg-secondary { background-color: #8E8E93; }
.bg-success { background-color: #00D18B; }
.border-accent { border-color: var(--accent); }
.border-accent\/10 { border-color: rgba(0, 209, 139, 0.1); }
.border-accent\/20 { border-color: rgba(0, 209, 139, 0.2); }
.border-accent\/50 { border-color: rgba(0, 209, 139, 0.5); }
.border-border-custom { border-color: var(--border); }
.border-success\/30 { border-color: rgba(0, 209, 139, 0.3); }
.border-danger\/30 { border-color: rgba(255, 69, 58, 0.3); }
.border-transparent { border-color: transparent; }
.border-t-transparent { border-top-color: transparent; }
.hover\:border-transparent:hover { border-color: transparent; }
.hover\:text-accent:hover { color: var(--accent); }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:text-danger:hover { color: var(--danger); }
.hover\:text-success:hover { color: var(--success); }
.hover\:bg-accent:hover { background-color: var(--accent); }
.hover\:bg-surface-hover:hover { background-color: var(--surface-hover); }
.hover\:bg-danger\/10:hover { background-color: rgba(255, 69, 58, 0.1); }
.hover\:bg-success\/10:hover { background-color: rgba(0, 209, 139, 0.1); }
.hover\:bg-success\/20:hover { background-color: rgba(0, 209, 139, 0.2); }
.hover\:bg-accent\/10:hover { background-color: rgba(0, 209, 139, 0.1); }
.hover\:bg-accent\/20:hover { background-color: rgba(0, 209, 139, 0.2); }
.hover\:bg-accent\/90:hover { background-color: rgba(0, 209, 139, 0.9); }
.hover\:bg-danger\/20:hover { background-color: rgba(255, 69, 58, 0.2); }
.hover\:border-accent:hover { border-color: var(--accent); }
.hover\:border-accent\/30:hover { border-color: rgba(0, 209, 139, 0.3); }
.hover\:border-accent\/50:hover { border-color: rgba(0, 209, 139, 0.5); }
.hover\:border-danger:hover { border-color: var(--danger); }
.hover\:border-success\/50:hover { border-color: rgba(0, 209, 139, 0.5); }

/* Borders */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-r { border-right-width: 1px; }
.border-dashed { border-style: dashed; }
.rounded-sm { border-radius: 0.125rem; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-bl-md { border-bottom-left-radius: 0.375rem; }
.rounded-br-md { border-bottom-right-radius: 0.375rem; }

/* Position */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.right-3 { right: 0.75rem; }
.top-0 { top: 0; }
.top-1\/2 { top: 50%; }
.bottom-0 { bottom: 0; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.-translate-x-full { transform: translateX(-100%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.translate-x-0 { transform: translateX(0); }

/* Transitions */
.transition-all { transition: all 0.2s ease; }
.transition-colors { transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.transition-transform { transition: transform 0.2s ease; }
.duration-200 { transition-duration: 0.2s; }
.duration-500 { transition-duration: 0.5s; }
.ease-in-out { transition-timing-function: ease-in-out; }
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.select-none { user-select: none; }
.resize-none { resize: none; }
.outline-none { outline: none; }
.opacity-0 { opacity: 0; }
.opacity-5 { opacity: 0.05; }
.opacity-10 { opacity: 0.1; }
.opacity-30 { opacity: 0.3; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.group:hover .group-hover\:opacity-100 { opacity: 1; }

/* Shadow */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.4); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.col-span-2 { grid-column: span 2 / span 2; }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

/* Form elements */
input[type="text"], input[type="password"], input[type="number"], select, textarea {
  background-color: var(--page);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--primary);
  outline: none;
  transition: border-color 0.2s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
}
input::placeholder, textarea::placeholder {
  color: rgba(142, 142, 147, 0.5);
}

/* Buttons */
button, .btn {
  cursor: pointer;
  transition: all 0.2s ease;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Card */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

/* Animations */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-25%); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes typing { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
.animate-spin { animation: spin 1s linear infinite; }
.animate-ping { animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-bounce { animation: bounce 1s infinite; }

/* HTMX transitions */
.htmx-swapping { opacity: 0; transition: opacity 0.2s ease-out; }

/* Sidebar active state */
.sidebar-item-active {
  background-color: rgba(0, 209, 139, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 209, 139, 0.2);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background-color: #3C3C3E; }

/* Accent checkbox */
.accent-accent { accent-color: var(--accent); }

/* Space utilities */
.space-y-0\.5 > * + * { margin-top: 0.125rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Table */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 0.75rem 1rem; }
td { padding: 0.75rem 1rem; }
.divide-y > * + * { border-top: 1px solid var(--border); }

/* List */
.list-decimal { list-style: decimal; padding-left: 1.25rem; }

/* Important overrides */
.min-w-\[16px\] { min-width: 16px; }

/* Inline helpers */
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Transform utility */
.transform { transform: none; }

/* Rotate */
.rotate-180 { transform: rotate(180deg); }

/* Extra utilities */
.last\:border-0 > *:last-child { border-width: 0; }
.last\:border-b-0 > *:last-child { border-bottom-width: 0; }

/* Skeleton loading */
@keyframes skeleton-loading { 0% { opacity: 0.05; } 50% { opacity: 0.15; } 100% { opacity: 0.05; } }

/* Line clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Progress bar */
.progress-bar {
  height: 4px;
  background-color: var(--border);
  border-radius: 9999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background-color: var(--accent);
  border-radius: 9999px;
  transition: width 0.5s ease;
}
.progress-fill-warn { background-color: var(--warning); }
.progress-fill-danger { background-color: var(--danger); }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
}
.badge-success { background: rgba(0,209,139,0.1); color: var(--success); border: 1px solid rgba(0,209,139,0.2); }
.badge-danger { background: rgba(255,69,58,0.1); color: var(--danger); border: 1px solid rgba(255,69,58,0.2); }
.badge-warning { background: rgba(255,159,10,0.1); color: var(--warning); border: 1px solid rgba(255,159,10,0.2); }
.badge-secondary { background: rgba(142,142,147,0.1); color: var(--secondary); border: 1px solid rgba(142,142,147,0.2); }

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: var(--secondary);
  text-align: center;
}
.empty-state-icon { font-size: 2rem; margin-bottom: 0.75rem; opacity: 0.4; }
.empty-state-title { font-size: 0.875rem; font-weight: 600; color: var(--primary); margin-bottom: 0.25rem; }
.empty-state-desc { font-size: 0.75rem; opacity: 0.7; }

/* Misc */
.pointer-events-none { pointer-events: none; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.appearance-none { appearance: none; }
.focus\:outline-none:focus { outline: none; }
.focus\:ring-0:focus { box-shadow: none; }
.focus\:border-accent:focus { border-color: var(--accent); }
.focus\:border-accent\/50:focus { border-color: rgba(0, 209, 139, 0.5); }
.disabled\:opacity-30:disabled { opacity: 0.3; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }
.disabled\:opacity-50:disabled { opacity: 0.5; }
.group { position: relative; }
.placeholder-secondary\/50::placeholder { color: rgba(142, 142, 147, 0.5); }
.password-toggle { cursor: pointer; user-select: none; }
.focus\:border-accent:focus { border-color: var(--accent); }
.focus\:border-accent\/50:focus { border-color: rgba(0, 209, 139, 0.5); }
.hover\:border-accent\/30:hover { border-color: rgba(0, 209, 139, 0.3); }
.bg-danger { background-color: var(--danger); }
.bg-success { background-color: var(--success); }

/* Nav items (sidebar) */
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  color: var(--secondary);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  border: 1px solid transparent;
}
.nav-item:hover {
  color: var(--primary);
  background-color: var(--surface-hover);
}
.nav-item-active {
  background-color: rgba(0, 209, 139, 0.08);
  color: var(--accent);
  border-color: rgba(0, 209, 139, 0.18);
}
.nav-item svg { flex-shrink: 0; opacity: 0.7; }
.nav-item-active svg { opacity: 1; }
.nav-item > span:not(.nav-badge):not(.nav-count) { flex: 1; }
.nav-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-left: auto;
}
.nav-badge-accent { color: var(--accent); }
.nav-badge-danger { color: var(--danger); }
.nav-count {
  font-size: 0.65rem;
  font-weight: 700;
  background-color: var(--accent);
  color: var(--page);
  padding: 0.1rem 0.35rem;
  border-radius: 9999px;
  margin-left: auto;
  min-width: 18px;
  text-align: center;
}
.nav-divider {
  height: 1px;
  background-color: var(--border);
  margin: 0.5rem 0.75rem;
  opacity: 0.5;
}

/* Topbar metrics (RPi) */
.topbar-metric {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: var(--secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.topbar-metric:hover {
  background-color: var(--surface-hover);
  border-color: var(--border);
}
.topbar-metric-warn { color: var(--warning); }
.topbar-metric-danger { color: var(--danger); animation: pulse 1.5s ease-in-out infinite; }
.topbar-sep {
  width: 1px;
  height: 1.25rem;
  background-color: var(--border);
  margin: 0 0.25rem;
}

/* Topbar Hermes status */
.topbar-hermes {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(0, 209, 139, 0.2);
  background-color: rgba(0, 209, 139, 0.05);
  color: var(--success);
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}
.topbar-hermes-offline {
  border-color: rgba(255, 69, 58, 0.2);
  background-color: rgba(255, 69, 58, 0.05);
  color: var(--secondary);
}
.topbar-hermes-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.topbar-hermes-dot-online {
  background-color: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: pulse 2s ease-in-out infinite;
}
.topbar-hermes-dot-offline {
  background-color: var(--danger);
}
.topbar-hermes-model {
  font-size: 0.65rem;
  color: var(--secondary);
  font-weight: 400;
  padding-left: 0.25rem;
  border-left: 1px solid var(--border);
  margin-left: 0.125rem;
}

/* Login card */
.login-card {
  max-width: 380px;
  width: 100%;
}

/* ============================================================== */
/* RESPONSIVE MEDIA QUERIES — wszystkie @media na zewnątrz klas   */
/* ============================================================== */

@media (min-width: 640px) {
  .sm\:flex { display: flex !important; }
  .sm\:hidden { display: none !important; }
  .sm\:block { display: block !important; }
  .sm\:inline-block { display: inline-block !important; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:hidden { display: none !important; }
  .md\:inline { display: inline !important; }
  .md\:block { display: block !important; }
  .md\:w-64 { width: 16rem; }
  .md\:p-4 { padding: 1rem; }
  .md\:p-6 { padding: 1.5rem; }
  .md\:gap-2 { gap: 0.5rem; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:table-cell { display: table-cell; }
}

@media (min-width: 1024px) {
  .lg\:translate-x-0 { transform: translateX(0) !important; }
  .lg\:inline { display: inline !important; }
  .lg\:block { display: block !important; }
  .lg\:hidden { display: none !important; }
  .lg\:flex { display: flex !important; }
  .lg\:relative { position: relative !important; }
  .lg\:w-64 { width: 16rem; }
  .lg\:p-8 { padding: 2rem; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
}
