/* Reset & Base */
*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: rgb(39 39 42);
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: inherit;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

/* Layout & Flexbox */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* Position & Sizing */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.inset-0 { inset: 0px; }
.inset-\[-3px\] { inset: -3px; }
.inset-x-0 { left: 0px; right: 0px; }
.inset-x-4 { left: 1rem; right: 1rem; }

.top-4 { top: 1rem; }
.top-16 { top: 4rem; }
.top-20 { top: 5rem; }
.bottom-6 { bottom: 1.5rem; }
.bottom-10 { bottom: 2.5rem; }

.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.w-2 { width: 0.5rem; }
.w-2\.5 { width: 0.625rem; }
.w-4 { width: 1rem; }
.w-8 { width: 2rem; }
.w-full { width: 100%; }
.w-screen { width: 100vw; }

.h-2 { height: 0.5rem; }
.h-2\.5 { height: 0.625rem; }
.h-8 { height: 2rem; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }

.max-w-sm { max-width: 24rem; }
.max-w-2xl { max-width: 42rem; }
.max-h-\[85vh\] { max-height: 85vh; }

/* Margin & Padding */
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-2 { margin-left: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mt-0\.5 { margin-top: 0.125rem; }

.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.pt-1 { padding-top: 0.25rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.py-0\.2 { padding-top: 0.05rem; padding-bottom: 0.05rem; }
.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-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }

/* Typography */
.font-sans { font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-\[9px\] { font-size: 9px; line-height: 12px; }
.text-\[10px\] { font-size: 10px; line-height: 14px; }
.text-\[11px\] { font-size: 11px; line-height: 16px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-relaxed { line-height: 1.625; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }

/* Colors - Text */
.text-zinc-100 { color: rgb(244 244 245); }
.text-zinc-200 { color: rgb(228 228 231); }
.text-zinc-300 { color: rgb(212 212 216); }
.text-zinc-400 { color: rgb(161 161 170); }
.text-zinc-500 { color: rgb(113 113 122); }
.text-zinc-600 { color: rgb(82 82 91); }
.text-zinc-950 { color: rgb(9 9 11); }
.text-white { color: rgb(255 255 255); }
.text-sky-300 { color: rgb(125 211 252); }
.text-sky-400 { color: rgb(56 189 248); }
.text-amber-300 { color: rgb(252 211 77); }
.text-amber-400 { color: rgb(251 191 36); }
.text-emerald-400 { color: rgb(52 211 153); }
.text-purple-400 { color: rgb(192 132 252); }

/* Colors - Background */
.bg-zinc-950 { background-color: rgb(9 9 11); }
.bg-zinc-950\/40 { background-color: rgb(9 9 11 / 0.4); }
.bg-zinc-950\/50 { background-color: rgb(9 9 11 / 0.5); }
.bg-zinc-950\/60 { background-color: rgb(9 9 11 / 0.6); }

.bg-zinc-900 { background-color: rgb(24 24 27); }
.bg-zinc-900\/60 { background-color: rgb(24 24 27 / 0.6); }
.bg-zinc-900\/80 { background-color: rgb(24 24 27 / 0.8); }
.bg-zinc-900\/90 { background-color: rgb(24 24 27 / 0.9); }
.bg-zinc-900\/95 { background-color: rgb(24 24 27 / 0.95); }

.bg-zinc-800 { background-color: rgb(39 39 42); }
.bg-zinc-700 { background-color: rgb(63 63 70); }
.bg-zinc-600 { background-color: rgb(82 82 91); }

.bg-sky-500 { background-color: rgb(14 165 233); }
.bg-sky-500\/10 { background-color: rgb(14 165 233 / 0.1); }
.bg-sky-500\/20 { background-color: rgb(14 165 233 / 0.2); }
.bg-sky-400 { background-color: rgb(56 189 248); }

.bg-amber-400 { background-color: rgb(251 191 36); }
.bg-amber-500\/20 { background-color: rgb(245 158 11 / 0.2); }

.bg-emerald-500 { background-color: rgb(16 185 129); }
.bg-black\/70 { background-color: rgb(0 0 0 / 0.7); }

/* Borders */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }

.border-zinc-800 { border-color: rgb(39 39 42); }
.border-zinc-800\/60 { border-color: rgb(39 39 42 / 0.6); }
.border-zinc-800\/80 { border-color: rgb(39 39 42 / 0.8); }
.border-zinc-700\/80 { border-color: rgb(63 63 70 / 0.8); }

.border-sky-500\/20 { border-color: rgb(14 165 233 / 0.2); }
.border-sky-500\/30 { border-color: rgb(14 165 233 / 0.3); }
.border-sky-500\/40 { border-color: rgb(14 165 233 / 0.4); }

.border-amber-500\/30 { border-color: rgb(245 158 11 / 0.3); }
.border-emerald-500\/80 { border-color: rgb(16 185 129 / 0.8); }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Effects & Filters */
.backdrop-blur-sm { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.backdrop-blur-md { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.backdrop-blur-xl { -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }

.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.shadow-\[0_0_30px_rgba\(56\,189\,248\,0\.25\)\] { box-shadow: 0 0 30px rgba(56, 189, 248, 0.25); }
.shadow-\[0_0_40px_rgba\(16\,185\,129\,0\.35\)\] { box-shadow: 0 0 40px rgba(16, 185, 129, 0.35); }
.shadow-\[0_10px_35px_rgba\(0\,0\,0\,0\.4\)\,0_0_25px_rgba\(56\,189\,248\,0\.12\)\] { box-shadow: 0 10px 35px rgba(0,0,0,0.4), 0 0 25px rgba(56,189,248,0.12); }

.opacity-0 { opacity: 0; }

/* Interactive & Cursor */
.cursor-grab { cursor: grab; }
.select-none { -webkit-user-select: none; user-select: none; }
.touch-none { touch-action: none; }
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* Hover & Active States */
.hover\:bg-zinc-800:hover { background-color: rgb(39 39 42); }
.hover\:bg-zinc-700:hover { background-color: rgb(63 63 70); }
.hover\:bg-zinc-500:hover { background-color: rgb(113 113 122); }
.hover\:bg-zinc-900\/90:hover { background-color: rgb(24 24 27 / 0.9); }
.hover\:bg-sky-400:hover { background-color: rgb(56 189 248); }
.hover\:bg-emerald-400:hover { background-color: rgb(52 211 153); }

.hover\:border-zinc-700:hover { border-color: rgb(63 63 70); }
.hover\:border-zinc-700\/80:hover { border-color: rgb(63 63 70 / 0.8); }
.hover\:border-zinc-500:hover { border-color: rgb(113 113 122); }

.hover\:text-white:hover { color: rgb(255 255 255); }
.hover\:text-zinc-100:hover { color: rgb(244 244 245); }
.hover\:text-zinc-200:hover { color: rgb(228 228 231); }
.hover\:text-zinc-300:hover { color: rgb(212 212 216); }
.hover\:text-sky-300:hover { color: rgb(125 211 252); }

.active\:scale-95:active { transform: scale(0.95); }
.active\:cursor-grabbing:active { cursor: grabbing; }

/* Group Hover */
.group\/putty-host:hover .group-hover\/putty-host\:opacity-100 { opacity: 1; }
.group\/putty-host:hover .group-hover\/putty-host\:text-zinc-100 { color: rgb(244 244 245); }

/* Transitions */
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-\[1200ms\] { transition-duration: 1200ms; }

.transform-gpu { transform: translate3d(0, 0, 0); }

/* Animations */
.animate-spin { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.animate-ping { animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }

.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse { 50% { opacity: .5; } }

.animate-bounce { animation: bounce 1s infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: none; animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

.animate-in { animation-duration: 150ms; animation-fill-mode: both; }
.fade-in { animation-name: fadeIn; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.zoom-in-95 { animation-name: zoomIn95; }
@keyframes zoomIn95 { from { transform: scale(0.95); } to { transform: scale(1); } }

.slide-in-from-top-3 { animation-name: slideInFromTop3; }
@keyframes slideInFromTop3 { from { transform: translateY(-0.75rem); } to { transform: translateY(0); } }

.shadow-\[0_0_30px_rgba\(56\,189\,248\,0\.25\)\] { box-shadow: 0 0 30px rgba(56, 189, 248, 0.25); }
.shadow-\[0_0_40px_rgba\(16\,185\,129\,0\.35\)\] { box-shadow: 0 0 40px rgba(16, 185, 129, 0.35); }
.shadow-\[0_10px_35px_rgba\(0\,0\,0\,0\.4\)\,0_0_25px_rgba\(56\,189\,248\,0\.12\)\] { box-shadow: 0 10px 35px rgba(0,0,0,0.4), 0 0 25px rgba(56,189,248,0.12); }
