/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TechStdio DevOps â€” Premium Dark Theme CSS
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2235;
  --bg-card-hover: #1f2a40;
  --bg-input: #0f1724;
  --border-color: rgba(255,255,255,0.06);
  --border-focus: #10b981;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-glow: rgba(16,185,129,0.15);
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(16,185,129,0.15);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--accent); color: #fff; }

/* â”€â”€â”€ Scrollbar â”€â”€â”€ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* â”€â”€â”€ Animations â”€â”€â”€ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 10%,30%,50%,70%,90% { transform: translateX(-4px); } 20%,40%,60%,80% { transform: translateX(4px); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes glow { 0%,100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.1); } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.animate-shake { animation: shake 0.5s ease-in-out; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TOP NAV
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.top-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,23,0.85);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem;
  padding: 0 1.5rem; height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--text-primary); font-weight: 800; font-size: 1.1rem;
}
.brand-icon {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), #059669);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
  box-shadow: 0 0 20px rgba(16,185,129,0.3);
}
.brand-accent { color: var(--accent); }
.nav-links { display: flex; gap: 0.25rem; margin-left: 1rem; }
.nav-link {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: var(--radius-md);
  color: var(--text-secondary); font-size: 0.85rem; font-weight: 500;
  transition: var(--transition);
}
.nav-link:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.user-pill {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  border-radius: 50px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
}
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.75rem;
}
.user-name { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }
.btn-logout {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  border: 1px solid var(--border-color); background: transparent;
  color: var(--text-muted); cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.btn-logout:hover { background: rgba(239,68,68,0.1); color: var(--accent-red); border-color: rgba(239,68,68,0.3); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   LOGIN PAGE
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.login-body { background: var(--bg-primary); min-height: 100vh; }
.login-bg {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
}
.bg-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(16,185,129,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}
.bg-glow {
  position: absolute; border-radius: 50%; filter: blur(100px);
  animation: glow 8s ease-in-out infinite;
}
.bg-glow-1 { width: 500px; height: 500px; top: -100px; right: -100px; background: rgba(16,185,129,0.12); }
.bg-glow-2 { width: 400px; height: 400px; bottom: -80px; left: -80px; background: rgba(59,130,246,0.1); animation-delay: 3s; }
.bg-glow-3 { width: 300px; height: 300px; top: 40%; left: 50%; background: rgba(139,92,246,0.08); animation-delay: 5s; }

.floating-icons { position: absolute; inset: 0; }
.float-icon {
  position: absolute; color: rgba(16,185,129,0.08); font-size: 2rem;
  animation: float 6s ease-in-out infinite;
}
.fi-1 { top: 15%; left: 10%; animation-delay: 0s; }
.fi-2 { top: 25%; right: 15%; animation-delay: 1s; }
.fi-3 { top: 60%; left: 20%; animation-delay: 2s; }
.fi-4 { bottom: 20%; right: 25%; animation-delay: 3s; font-size: 2.5rem; }
.fi-5 { top: 40%; left: 60%; animation-delay: 4s; }
.fi-6 { bottom: 30%; left: 40%; animation-delay: 5s; }

.login-container {
  position: relative; z-index: 1;
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 2rem;
}
.login-card {
  width: 100%; max-width: 420px;
  background: rgba(26,34,53,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  animation: scaleIn 0.5s ease-out;
}
.login-header { text-align: center; margin-bottom: 2rem; }
.login-logo { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.logo-ring {
  width: 64px; height: 64px; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--accent), #059669);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: #fff;
  box-shadow: 0 0 40px rgba(16,185,129,0.3), 0 0 80px rgba(16,185,129,0.1);
}
.login-title { font-size: 1.5rem; font-weight: 900; color: var(--text-primary); }
.text-accent { color: var(--accent); }
.login-subtitle { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* â”€â”€â”€ Form Elements â”€â”€â”€ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
.input-wrapper { position: relative; }
.form-input {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--bg-input); border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md); color: var(--text-primary);
  font-size: 0.9rem; font-family: var(--font); transition: var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; font-family: var(--font-mono); font-size: 0.8rem; }
.field-error { font-size: 0.75rem; color: var(--accent-red); margin-top: 0.25rem; display: block; }
.toggle-password {
  position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 0.9rem; transition: var(--transition);
}
.toggle-password:hover { color: var(--accent); }

/* â”€â”€â”€ Checkbox â”€â”€â”€ */
.checkbox-wrapper {
  display: flex; align-items: center; gap: 0.5rem; cursor: pointer;
  font-size: 0.8rem; color: var(--text-secondary);
}
.checkbox-wrapper input { display: none; }
.checkmark {
  width: 18px; height: 18px; border-radius: 4px;
  border: 1.5px solid var(--border-color); background: var(--bg-input);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); flex-shrink: 0;
}
.checkbox-wrapper input:checked + .checkmark {
  background: var(--accent); border-color: var(--accent);
}
.checkbox-wrapper input:checked + .checkmark::after {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  font-size: 0.6rem; color: #fff;
}
.form-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }

/* â”€â”€â”€ Buttons â”€â”€â”€ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.7rem 1.5rem;
  border-radius: var(--radius-md); font-size: 0.85rem; font-weight: 700;
  font-family: var(--font); cursor: pointer; border: none;
  transition: var(--transition); white-space: nowrap;
}
.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  gap: 0.35rem;
  font-weight: 600;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #059669);
  color: #fff; box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 6px 20px rgba(16,185,129,0.4);
  transform: translateY(-1px);
}
.btn-accent {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.btn-accent:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
  color: #ffffff !important;
}
.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.btn-outline-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5 !important;
}
.btn-outline-danger:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}
.btn-outline-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399 !important;
}
.btn-outline-success:hover {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}
.btn-outline-info {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8 !important;
}
.btn-outline-info:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}
.btn-outline-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24 !important;
}
.btn-outline-warning:hover {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent; color: var(--text-secondary); border: none;
}
.btn-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.btn-login { width: 100%; padding: 0.85rem; font-size: 0.95rem; }
.btn-login .btn-arrow { transition: transform 0.3s; }
.btn-login:hover .btn-arrow { transform: translateX(4px); }

/* â”€â”€â”€ Alert â”€â”€â”€ */
.alert {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1rem; border-radius: var(--radius-md);
  font-size: 0.8rem; font-weight: 500; margin-bottom: 1.25rem;
}
.alert-error {
  background: rgba(239,68,68,0.1); color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.2);
}

/* â”€â”€â”€ Demo Credentials â”€â”€â”€ */
.demo-credentials {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}
.demo-badge {
  font-size: 0.7rem; font-weight: 600; color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.demo-items { display: flex; flex-direction: column; gap: 0.4rem; }
.demo-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0.75rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-color);
  cursor: pointer; transition: var(--transition);
}
.demo-item:hover { background: var(--accent-glow); border-color: rgba(16,185,129,0.2); }
.demo-role { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); }
.demo-item code {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent);
  background: rgba(16,185,129,0.1); padding: 0.15rem 0.5rem; border-radius: 4px;
}
.login-footer {
  margin-top: 1.5rem; text-align: center;
  font-size: 0.7rem; color: var(--text-muted);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MAIN CONTENT & DASHBOARD
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.main-content { max-width: 1400px; margin: 0 auto; padding: 1.5rem; }

/* Hero */
.hero-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: center; padding: 2rem 0 3rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.75rem; border-radius: 50px;
  background: var(--accent-glow); color: var(--accent);
  font-size: 0.75rem; font-weight: 700; border: 1px solid rgba(16,185,129,0.2);
  margin-bottom: 1rem;
}
.hero-title { font-size: 2.25rem; font-weight: 900; line-height: 1.2; margin-bottom: 0.75rem; }
.hero-subtitle { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.5rem; max-width: 480px; }
.btn-hero { padding: 0.85rem 1.75rem; font-size: 0.95rem; }
.btn-hero i:last-child { transition: transform 0.3s; }
.btn-hero:hover i:last-child { transform: translateX(4px); }

/* Terminal Mockup */
.terminal-mockup {
  background: #0d1117; border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-lg);
  overflow: hidden; animation: slideUp 0.8s ease-out;
}
.terminal-header {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem; background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.terminal-title { font-size: 0.7rem; color: var(--text-muted); margin-left: 0.5rem; font-family: var(--font-mono); }
.terminal-body { padding: 1rem; font-family: var(--font-mono); font-size: 0.8rem; }
.term-line { margin-bottom: 0.35rem; }
.term-prompt { color: var(--accent); font-weight: 700; }
.term-cmd { color: var(--text-primary); }
.term-output { color: var(--text-muted); }
.term-success { color: var(--accent); }
.blink-cursor .cursor { animation: blink 1s infinite; color: var(--accent); }

/* Section Header */
.section-header { margin-bottom: 1.5rem; }
.section-header h2 {
  font-size: 1.25rem; font-weight: 800;
  display: flex; align-items: center; gap: 0.5rem;
}
.section-header h2 i { color: var(--accent); font-size: 1rem; }
.section-header p { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Cards Grid */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.action-card {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.5rem; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border-color);
  transition: var(--transition); cursor: pointer;
  animation: fadeIn 0.5s ease-out both;
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit;
}
.action-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-blue));
  opacity: 0; transition: var(--transition);
}
.action-card:hover { transform: translateY(-3px); border-color: rgba(16,185,129,0.2); box-shadow: var(--shadow-glow); }
.action-card:hover::before { opacity: 1; }
.card-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.card-server .card-icon { background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.05)); color: var(--accent); }
.card-cicd .card-icon { background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(59,130,246,0.05)); color: var(--accent-blue); }
.card-proxy .card-icon { background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(139,92,246,0.05)); color: var(--accent-purple); }
.card-git .card-icon { background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.05)); color: var(--accent-amber); }
.card-content h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; }
.card-content p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.card-arrow { color: var(--accent); font-size: 0.9rem; margin-top: auto; }
.card-badge {
  font-size: 0.65rem; font-weight: 700; color: var(--text-muted);
  background: rgba(255,255,255,0.05); padding: 0.25rem 0.6rem;
  border-radius: 50px; display: inline-block; margin-top: auto;
  border: 1px solid var(--border-color);
}

.action-card:nth-child(1) { animation-delay: 0.05s; }
.action-card:nth-child(2) { animation-delay: 0.1s; }
.action-card:nth-child(3) { animation-delay: 0.15s; }
.action-card:nth-child(4) { animation-delay: 0.2s; }

/* Features Grid */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem; margin-bottom: 3rem;
}
.feature-item {
  padding: 1.25rem; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border-color);
  text-align: center; transition: var(--transition);
}
.feature-item:hover { border-color: rgba(16,185,129,0.15); }
.feature-icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: var(--accent-glow); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.75rem; font-size: 1rem;
}
.feature-item h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.25rem; }
.feature-item p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   WIZARD PAGE
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.wizard-page { animation: fadeIn 0.4s ease-out; }
.wizard-header { margin-bottom: 1.5rem; }
.wizard-header h1 {
  font-size: 1.5rem; font-weight: 900;
  display: flex; align-items: center; gap: 0.5rem;
}
.wizard-header h1 i { color: var(--accent); }
.wizard-header p { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.25rem; }

/* Progress Bar */
.wizard-progress { margin-bottom: 2rem; position: relative; }
.progress-track {
  height: 3px; background: rgba(255,255,255,0.06);
  border-radius: 10px; margin-bottom: 1rem; overflow: hidden;
}
.progress-fill {
  height: 100%; width: 14.28%;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue));
  border-radius: 10px; transition: width 0.5s ease;
}
.progress-steps {
  display: flex; justify-content: space-between;
}
.progress-step {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  flex: 1; position: relative;
}
.step-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-card); border: 2px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: var(--text-muted);
  transition: var(--transition); z-index: 1;
}
.progress-step.active .step-circle {
  background: var(--accent); border-color: var(--accent);
  color: #fff; box-shadow: 0 0 20px rgba(16,185,129,0.3);
}
.progress-step.completed .step-circle {
  background: rgba(16,185,129,0.15); border-color: var(--accent);
  color: var(--accent);
}
.progress-step span { font-size: 0.65rem; font-weight: 600; color: var(--text-muted); }
.progress-step.active span { color: var(--accent); }

/* Step Cards */
.wizard-step { display: none; animation: fadeIn 0.4s ease-out; }
.wizard-step.active { display: block; }

.step-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-xl); padding: 2rem;
}
.step-card-header {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.75rem; padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}
.step-icon {
  width: 48px; height: 48px; border-radius: var(--radius-lg);
  background: var(--accent-glow); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
}
.step-card-header h2 { font-size: 1.15rem; font-weight: 800; }
.step-card-header p { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full-width { grid-column: 1 / -1; }

/* Info Banner */
.info-banner {
  display: flex; gap: 1rem; padding: 1.25rem;
  background: rgba(59,130,246,0.05); border: 1px solid rgba(59,130,246,0.15);
  border-radius: var(--radius-lg); margin-bottom: 1.5rem;
}
.info-icon {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: rgba(59,130,246,0.15); color: var(--accent-blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.9rem;
}
.info-content { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; }
.info-content strong { color: var(--text-primary); display: block; margin-bottom: 0.4rem; }
.info-content ol { padding-left: 1.25rem; }
.info-content li { margin-bottom: 0.25rem; }
.info-content code {
  font-family: var(--font-mono); font-size: 0.75rem;
  background: rgba(255,255,255,0.06); padding: 0.1rem 0.4rem;
  border-radius: 4px; color: var(--accent);
}

/* Auth Tabs */
.auth-tabs {
  display: flex; gap: 0.5rem; margin-bottom: 1rem;
}
.auth-tab {
  flex: 1; padding: 0.6rem; border-radius: var(--radius-md);
  background: var(--bg-input); border: 1.5px solid var(--border-color);
  color: var(--text-muted); font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); font-family: var(--font);
}
.auth-tab.active {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-glow);
}
.auth-panel { display: none; }
.auth-panel.active { display: block; }

/* Server Type Cards */
.type-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.type-card {
  padding: 1.5rem; border-radius: var(--radius-lg);
  background: var(--bg-input); border: 2px solid var(--border-color);
  cursor: pointer; transition: var(--transition);
  position: relative; text-align: center;
}
.type-card:hover { border-color: rgba(16,185,129,0.2); }
.type-card.selected { border-color: var(--accent); background: var(--accent-glow); }
.type-icon {
  width: 56px; height: 56px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 1.5rem;
}
.linux-icon { background: linear-gradient(135deg, #2d2d2d, #444); color: #fcc624; }
.iis-icon { background: linear-gradient(135deg, #0078d4, #005a9e); color: #fff; }
.type-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.type-card p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; }
.type-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; justify-content: center; margin-top: 0.75rem; }
.tag {
  font-size: 0.65rem; font-weight: 600; padding: 0.2rem 0.5rem;
  border-radius: 50px; background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-color); color: var(--text-muted);
}
.type-check {
  position: absolute; top: 0.75rem; right: 0.75rem;
  color: var(--accent); font-size: 1.1rem; opacity: 0;
  transition: var(--transition);
}
.type-card.selected .type-check { opacity: 1; }

/* Dependency Cards */
.dep-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.dep-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; border-radius: var(--radius-lg);
  background: var(--bg-input); border: 1.5px solid var(--border-color);
  cursor: pointer; transition: var(--transition); position: relative;
}
.dep-card:hover { border-color: rgba(255,255,255,0.1); }
.dep-card.checked { border-color: var(--accent); background: rgba(16,185,129,0.05); }
.dep-icon {
  width: 42px; height: 42px; border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--dep-color) 15%, transparent);
  color: var(--dep-color); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.dep-info { flex: 1; }
.dep-info h4 { font-size: 0.85rem; font-weight: 700; }
.dep-info p { font-size: 0.7rem; color: var(--text-muted); }
.dep-version { flex-shrink: 0; }
.form-select-sm {
  padding: 0.3rem 0.5rem; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border-color);
  color: var(--text-primary); font-size: 0.75rem; font-family: var(--font);
  outline: none; cursor: pointer;
}
.dep-check {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; opacity: 0; transition: var(--transition);
  flex-shrink: 0;
}
.dep-card.checked .dep-check { opacity: 1; }

/* Toggle Switch */
.toggle-wrapper {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; border-radius: var(--radius-lg);
  background: var(--bg-input); border: 1px solid var(--border-color);
  cursor: pointer; transition: var(--transition);
}
.toggle-wrapper:hover { border-color: rgba(255,255,255,0.1); }
.toggle-wrapper input { display: none; }
.toggle-switch {
  width: 44px; height: 24px; border-radius: 12px;
  background: rgba(255,255,255,0.1); position: relative;
  flex-shrink: 0; transition: var(--transition);
}
.toggle-switch::after {
  content: ''; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; position: absolute; top: 3px; left: 3px;
  transition: var(--transition);
}
.toggle-wrapper input:checked + .toggle-switch { background: var(--accent); }
.toggle-wrapper input:checked + .toggle-switch::after { left: 23px; }
.toggle-info { flex: 1; }
.toggle-label { font-size: 0.85rem; font-weight: 600; display: block; }
.toggle-desc { font-size: 0.7rem; color: var(--text-muted); }

/* Wizard Nav */
.wizard-nav {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 1.5rem; padding-top: 1rem;
}

/* Review Grid */
.review-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-bottom: 1.5rem;
}
.review-item {
  padding: 1rem; border-radius: var(--radius-md);
  background: var(--bg-input); border: 1px solid var(--border-color);
}
.review-label { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.review-value { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-top: 0.25rem; }

/* Deploy Actions */
.deploy-actions { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.btn-deploy { padding: 0.85rem 2rem; font-size: 0.95rem; }

/* Output Tabs */
.output-tabs { display: flex; gap: 0.25rem; margin-bottom: 0; }
.output-tab {
  padding: 0.6rem 1rem; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--bg-input); border: 1px solid var(--border-color);
  border-bottom: none; color: var(--text-muted); font-size: 0.75rem;
  font-weight: 600; cursor: pointer; transition: var(--transition);
  font-family: var(--font);
}
.output-tab.active { background: #0d1117; color: var(--accent); border-color: rgba(16,185,129,0.2); }
.output-panel { display: none; }
.output-panel.active { display: block; }
.code-block {
  background: #0d1117; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 1.25rem; font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--text-secondary); overflow-x: auto; white-space: pre;
  line-height: 1.7; max-height: 400px; overflow-y: auto;
}
.code-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 1rem; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06); border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono);
}
.btn-copy {
  padding: 0.25rem 0.6rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-color);
  color: var(--text-muted); font-size: 0.7rem; cursor: pointer;
  transition: var(--transition); font-family: var(--font);
}
.btn-copy:hover { color: var(--accent); border-color: rgba(16,185,129,0.3); }

/* Test Connection Result */
.test-result {
  margin-top: 1rem; padding: 0.75rem 1rem; border-radius: var(--radius-md);
  font-size: 0.8rem; font-weight: 500;
}
.test-result.success { background: rgba(16,185,129,0.1); color: var(--accent); border: 1px solid rgba(16,185,129,0.2); }
.test-result.error { background: rgba(239,68,68,0.1); color: #fca5a5; border: 1px solid rgba(239,68,68,0.2); }

/* â”€â”€â”€ Responsive â”€â”€â”€ */
@media (max-width: 768px) {
  .hero-section { grid-template-columns: 1fr; }
  .terminal-mockup { display: none; }
  .hero-title { font-size: 1.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .type-cards { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  /* .nav-links handled by responsive system */
  .progress-step span { display: none; }
  .step-circle { width: 30px; height: 30px; font-size: 0.7rem; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MULTI-SERVER & APPLICATION MANAGEMENT DASHBOARD STYLES
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.dashboard-enhanced {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.dash-title {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f8fafc;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dash-subtitle {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 0;
}

.dash-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Fleet Stats Grid */
.fleet-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: #131b2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.3);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.icon-server { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.icon-apps { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.icon-ram { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.icon-disk { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.2;
}

.stat-unit {
    font-size: 0.95rem;
    color: #94a3b8;
    font-weight: 500;
}

.stat-label {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0.2rem 0 0.4rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-sub {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Progress Bars */
.progress-bar-container {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    height: 6px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-primary { background: #3b82f6 !important; }
.bg-accent { background: #10b981 !important; }
.bg-warning { background: #f59e0b !important; }
.bg-danger { background: #ef4444 !important; }

/* Section Title Bar */
.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

.section-badge {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Server Panels */
.servers-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.server-panel {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.server-panel:hover {
    border-color: rgba(99, 102, 241, 0.4);
}

.server-header {
    background: #151e33;
    padding: 1.1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 1rem;
}

.server-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.server-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.server-address {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.server-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

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

.status-offline {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    animation: pulse 2s infinite;
}

@@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1); }
}

.server-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.btn-icon.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

/* Server Metrics Grid */
.server-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #0d1322;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.metric-box {
    background: #131c30;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem;
}

.metric-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.metric-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.metric-badge {
    font-size: 0.72rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
}

.metric-number {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.metric-unit {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.metric-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-top: 0.45rem;
}

.metric-detail {
    font-size: 0.75rem;
    margin-top: 0.35rem;
}

.sys-os-text {
    font-size: 0.82rem;
    color: #cbd5e1;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.25rem;
}

.sys-uptime-text {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.2rem;
}

/* Hosted Applications Section */
.server-apps-section {
    padding: 1.25rem 1.5rem;
}

.apps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.apps-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #cbd5e1;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.apps-count-pill {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
}

.no-apps-box {
    padding: 2rem;
    text-align: center;
    color: #64748b;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.no-apps-box i {
    font-size: 1.5rem;
}

/* Apps Table */
.apps-table-wrapper {
    overflow-x: auto;
}

.apps-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.apps-table th {
    text-align: left;
    padding: 0.6rem 0.85rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.apps-table td {
    padding: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.apps-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.app-title-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.app-name {
    font-weight: 600;
    color: #f1f5f9;
}

.app-path {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
}

.badge-port {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

.domain-link {
    color: #38bdf8;
    text-decoration: none;
    font-size: 0.8rem;
    margin-left: 0.4rem;
}

.domain-link:hover {
    text-decoration: underline;
}

.badge-branch {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    margin-left: 0.3rem;
}

.runtime-badges {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.badge-tech {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.72rem;
}

.badge-cicd {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.72rem;
}

.status-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.status-running {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

.status-running .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 6px #34d399;
}

.status-stopped {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border-color: rgba(100, 116, 139, 0.3);
}

.status-stopped .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
}

.app-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.modal-card {
    background: #141d33;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    width: 100%;
    max-width: 620px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: modalPop 0.2s ease-out;
}

@@keyframes modalPop {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 1.5rem;
    max-height: 75vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1rem 1.5rem;
    background: #0f1627;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.col-4 { flex: 4; }
.col-5 { flex: 5; }
.col-6 { flex: 6; }
.col-7 { flex: 7; }
.col-8 { flex: 8; }

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.35rem;
}

.form-control {
    width: 100%;
    background: #0b1120;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    color: #ffffff;
    font-size: 0.88rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: #6366f1;
    outline: none;
}

.form-control.mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #cbd5e1;
    cursor: pointer;
}

.tech-select-row {
    display: flex;
    gap: 1.25rem;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin: 1rem 0;
}

/* Button variants */
.btn-accent {
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1.1rem;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.15s ease;
}

.btn-accent:hover {
    background: #059669;
}

.btn-xs {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 6px;
}

/* Spin animation for refresh */
.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(359deg); }
}

/* Empty State Styling */
.empty-state {
    background: #111827;
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.empty-state .empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #94a3b8;
    font-size: 1rem;
    max-width: 500px;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.user-role-badge {
    background: rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.4);
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 0.4rem;
}


/* ==========================================================================
   TECHSTDIO DEVOPS - COMPREHENSIVE RESPONSIVE DESIGN SYSTEM
   ========================================================================== */

/* Mobile Navigation Hamburger Button */
.mobile-toggle-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-left: auto;
  flex-shrink: 0;
}
.mobile-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  border-color: rgba(16, 185, 129, 0.3);
}

/* Base Card & Data Table Components */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-body {
  padding: 1.5rem;
}

/* Responsive Table Wrapper with Horizontal Scroll Hints */
.table-responsive {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0;
  display: block;
  box-sizing: border-box;
}
.table-responsive::-webkit-scrollbar {
  height: 6px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.35);
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.65);
}
.table-responsive::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.8);
}

/* Unified Data Table & Apps Table Styling */
.data-table, .apps-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 750px;
}
.data-table th, .apps-table th {
  background: rgba(15, 23, 42, 0.85);
  padding: 0.85rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
.data-table td, .apps-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  color: var(--text-secondary);
  font-size: 0.88rem;
}
.data-table tr:hover, .apps-table tr:hover {
  background: rgba(255, 255, 255, 0.025);
}
.data-table tr:last-child td, .apps-table tr:last-child td {
  border-bottom: none;
}

/* Table Actions Cell & Action Buttons Group */
.table-actions-cell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  white-space: nowrap;
}

.table-actions-cell form {
  display: inline-flex;
  margin: 0;
}

.table-actions-cell .btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  line-height: 1.2;
}

/* Sticky Column 1 (Actions) and Column 2 (Name) */
.table-sticky-lead {
  border-collapse: separate;
  border-spacing: 0;
}

.table-sticky-lead th:nth-child(1),
.table-sticky-lead td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 5;
  background: #0d1527;
  min-width: 200px;
}

.table-sticky-lead th:nth-child(2),
.table-sticky-lead td:nth-child(2) {
  position: sticky;
  left: 200px;
  z-index: 4;
  background: #0d1527;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.4);
  min-width: 220px;
}

.table-sticky-lead tr:hover td:nth-child(1),
.table-sticky-lead tr:hover td:nth-child(2) {
  background: #121d36;
}

/* Form Rows and Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.form-row .form-group {
  margin-bottom: 0;
}
.form-row .col-8 { flex: 0 0 calc(66.666% - 0.5rem); }
.form-row .col-7 { flex: 0 0 calc(58.333% - 0.5rem); }
.form-row .col-6 { flex: 0 0 calc(50% - 0.5rem); }
.form-row .col-5 { flex: 0 0 calc(41.666% - 0.5rem); }
.form-row .col-4 { flex: 0 0 calc(33.333% - 0.5rem); }

/* Modal Responsive Behavior */
.modal-overlay, .modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
}
.modal-card, .modal-box {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 650px;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}
.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Desktop, Tablet, Mobile)
   ========================================================================== */

/* Laptop & Medium Screens (< 1150px) */
@media (max-width: 1150px) {
  .mobile-toggle-btn {
    display: flex;
  }
  .nav-inner {
    position: relative;
    gap: 1rem;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    gap: 0.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    margin-left: 0;
    z-index: 1000;
  }
  .nav-links.mobile-active {
    display: flex !important;
    animation: fadeInMenu 0.25s ease forwards;
  }
  .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    width: 100%;
  }
  .nav-link:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
  }
}

@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tablet Screens (< 992px) */
@media (max-width: 992px) {
  .fleet-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1rem !important;
  }
  .dash-title {
    font-size: 1.55rem;
  }
  .server-meta-stats {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

/* Mobile Screens (< 768px) */
@media (max-width: 768px) {
  .main-content {
    padding: 1rem 0.75rem 2.5rem 0.75rem;
  }
  .dashboard-enhanced {
    padding: 1rem 0.5rem 2.5rem 0.5rem;
  }
  .nav-inner {
    padding: 0 1rem;
  }
  .brand-text {
    font-size: 0.95rem;
  }
  .user-name, .user-role-badge {
    display: none;
  }
  .user-pill {
    padding: 0.2rem;
    border: none;
    background: transparent;
  }
  
  .dash-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .dash-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .dash-actions .btn, .dash-actions a.btn {
    width: 100%;
    justify-content: center;
  }
  
  .fleet-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  
  .grid-2 {
    grid-template-columns: 1fr !important;
  }
  .form-row .col-8,
  .form-row .col-7,
  .form-row .col-6,
  .form-row .col-5,
  .form-row .col-4 {
    flex: 0 0 100% !important;
  }

  .server-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .server-header .server-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .server-header .server-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .modal-overlay, .modal-backdrop {
    padding: 0.75rem;
  }
  .modal-card, .modal-box {
    max-height: calc(100vh - 1.5rem);
    border-radius: var(--radius-lg);
  }
  .modal-header, .modal-body, .modal-footer {
    padding: 1rem;
  }
  .modal-footer {
    flex-direction: column-reverse;
  }
  .modal-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Small Mobile Screens (< 480px) */
@media (max-width: 480px) {
  .dash-title {
    font-size: 1.35rem;
  }
  .dash-subtitle {
    font-size: 0.85rem;
  }
  .stat-card {
    padding: 1rem;
  }
  .stat-icon {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
  .stat-value {
    font-size: 1.4rem;
  }
  .data-table th, .apps-table th,
  .data-table td, .apps-table td {
    padding: 0.75rem 0.85rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Universal Responsive Grid Toolbar, Search & Pagination Styles
   ═══════════════════════════════════════════════════════════════ */
.grid-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.grid-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.grid-toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.grid-entries-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.grid-page-size-select {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #f8fafc;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.grid-page-size-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.grid-total-count-badge {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.grid-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.grid-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 240px;
}

.grid-search-icon {
  position: absolute;
  left: 10px;
  color: #64748b;
  font-size: 0.82rem;
  pointer-events: none;
  transition: var(--transition);
}

.grid-search-input {
  width: 100%;
  padding: 6px 30px 6px 30px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  color: #f8fafc;
  font-size: 0.85rem;
  font-family: var(--font);
  outline: none;
  transition: all 0.2s ease;
}

.grid-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  background: #0b1329;
}

.grid-search-clear {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px;
  display: none;
}

.grid-search-clear:hover {
  color: #ef4444;
}

/* Pagination Footer */
.grid-pagination-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  font-size: 0.82rem;
  color: #94a3b8;
}

.grid-info-text {
  font-size: 0.82rem;
  color: #94a3b8;
}

.grid-info-text strong {
  color: #f1f5f9;
}

.grid-pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.grid-page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  user-select: none;
}

.grid-page-btn:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.grid-page-btn.active {
  background: linear-gradient(135deg, var(--accent), #059669);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.grid-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.04);
}

.grid-page-ellipsis {
  padding: 0 4px;
  color: #64748b;
  font-weight: bold;
  user-select: none;
}

/* Enhanced Table Responsiveness */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
  background: rgba(15, 23, 42, 0.5);
}

.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.25);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.45);
}

@media (max-width: 768px) {
  .grid-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .grid-search-wrapper {
    min-width: 100%;
  }
  .grid-pagination-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ==========================================================================
   FULL-SCREEN ADMIN PANEL CONSOLE ARCHITECTURE
   ========================================================================== */

body.admin-body-layout {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: #080c14;
  color: #f1f5f9;
}

.public-main-content {
  min-height: 100vh;
}

/* Admin Shell Layout */
.admin-shell {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: #080c14;
  position: relative;
}

/* --------------------------------------------------------------------------
   LEFT ADMIN SIDEBAR
   -------------------------------------------------------------------------- */
.admin-sidebar {
  width: 280px;
  min-width: 280px;
  height: 100vh;
  background: #0c121e;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  user-select: none;
}

/* Collapsed Sidebar State */
.admin-sidebar.collapsed {
  width: 76px;
  min-width: 76px;
}

.admin-sidebar.collapsed .brand-text-group,
.admin-sidebar.collapsed .admin-nav-header,
.admin-sidebar.collapsed .nav-item-text,
.admin-sidebar.collapsed .cluster-status-text,
.admin-sidebar.collapsed .sidebar-user-info,
.admin-sidebar.collapsed .sidebar-logout-form {
  display: none !important;
}

.admin-sidebar.collapsed .admin-sidebar-header {
  justify-content: center;
  padding: 0 0.5rem;
}

.admin-sidebar.collapsed .admin-brand {
  display: flex;
  justify-content: center;
}

.admin-sidebar.collapsed .sidebar-collapse-toggle {
  position: absolute;
  top: 18px;
  right: -14px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.admin-sidebar.collapsed .sidebar-collapse-toggle i {
  transform: rotate(180deg);
}

.admin-sidebar.collapsed .admin-nav-item {
  justify-content: center;
  padding: 0.75rem 0.5rem;
}

.admin-sidebar.collapsed .admin-nav-item .nav-item-icon {
  margin: 0;
  font-size: 1.15rem;
}

.admin-sidebar.collapsed .sidebar-cluster-status {
  justify-content: center;
  padding: 0.6rem 0.4rem;
}

.admin-sidebar.collapsed .sidebar-user-card {
  justify-content: center;
  padding: 0.5rem 0.25rem;
}

/* Sidebar Header */
.admin-sidebar-header {
  height: 64px;
  min-height: 64px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
  gap: 0.5rem;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  overflow: hidden;
  max-width: calc(100% - 36px);
}

.brand-icon-glow {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
  flex-shrink: 0;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.brand-highlight {
  color: #10b981;
}

.brand-badge {
  font-size: 0.58rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.08em;
  margin-top: 1px;
}

.sidebar-collapse-toggle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.sidebar-collapse-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.15);
}

/* Sidebar Nav Body */
.admin-sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.15rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.admin-sidebar-scroll::-webkit-scrollbar {
  width: 4px;
}

.admin-sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.admin-nav-section {
  display: flex;
  flex-direction: column;
}

.admin-nav-header {
  font-size: 0.65rem;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.08em;
  padding: 0 0.75rem 0.5rem 0.75rem;
}

.admin-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.admin-nav-item .nav-item-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #64748b;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
}

.admin-nav-item:hover .nav-item-icon {
  color: #38bdf8;
}

.admin-nav-item.active {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.03));
  color: #10b981;
  border-left: 3px solid #10b981;
  font-weight: 700;
}

.admin-nav-item.active .nav-item-icon {
  color: #10b981;
}

/* Sidebar Footer */
.admin-sidebar-footer {
  padding: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sidebar-cluster-status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.18);
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.cluster-status-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.status-title {
  font-size: 0.62rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-val {
  font-size: 0.74rem;
  color: #10b981;
  font-weight: 700;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 500;
}

.sidebar-logout-form {
  margin: 0;
  display: flex;
}

.sidebar-logout-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.06);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.78rem;
}

.sidebar-logout-btn:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

/* --------------------------------------------------------------------------
   RIGHT MAIN AREA & TOPBAR
   -------------------------------------------------------------------------- */
.admin-main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  min-width: 0;
  background: #080c14;
}

.admin-topbar {
  height: 64px;
  min-height: 64px;
  background: rgba(12, 18, 30, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  gap: 1.25rem;
  z-index: 100;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.admin-mobile-toggle-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
  font-size: 1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.admin-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumb-item {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb-item:hover {
  color: #f1f5f9;
}

.breadcrumb-item.active {
  color: #f8fafc;
  font-weight: 700;
}

.breadcrumb-separator {
  color: #475569;
  font-size: 0.65rem;
}

.topbar-center {
  flex: 1;
  max-width: 420px;
  display: flex;
  justify-content: center;
}

.admin-quick-search {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.95rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #64748b;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-quick-search:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(16, 185, 129, 0.3);
  color: #94a3b8;
}

.search-placeholder {
  flex: 1;
}

.search-shortcut {
  display: flex;
  align-items: center;
  gap: 2px;
}

.search-shortcut kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: #94a3b8;
}

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

.topbar-status-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 50px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
  font-size: 0.72rem;
  font-weight: 700;
}

.topbar-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulse 2s infinite;
}

.topbar-quick-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-topbar-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-topbar-accent {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}

.btn-topbar-accent:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
}

.btn-topbar-primary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

.btn-topbar-primary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.topbar-user-dropdown {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.6rem 0.3rem 0.3rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
}

.topbar-user-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e8f0;
}

.topbar-logout-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.topbar-logout-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* --------------------------------------------------------------------------
   ADMIN CONTENT VIEWPORT & BODY CONTAINER
   -------------------------------------------------------------------------- */
.admin-content-viewport {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.75rem 1rem 2rem 1rem;
  background: #080c14;
}

.admin-content-viewport::-webkit-scrollbar {
  width: 6px;
}

.admin-content-viewport::-webkit-scrollbar-track {
  background: #080c14;
}

.admin-content-viewport::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 6px;
}

.admin-content-viewport::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

.admin-content-inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

/* Fluid Layout Overrides for Admin Mode */
.admin-content-viewport .main-content {
  max-width: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
}

.admin-content-viewport .dashboard-enhanced {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   RESPONSIVE MOBILE & TABLET DRAWER
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: translateX(-100%);
    z-index: 1100;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.85);
  }

  .admin-sidebar.mobile-open {
    transform: translateX(0);
  }

  .admin-mobile-toggle-btn {
    display: flex;
  }

  .sidebar-collapse-toggle {
    display: none;
  }

  .admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1050;
  }

  .admin-sidebar-overlay.active {
    display: block;
  }

  .topbar-center {
    display: none;
  }

  .admin-topbar {
    padding: 0 1rem;
  }

  .admin-content-viewport {
    padding: 1rem 1rem 2.5rem 1rem;
  }

  .topbar-status-pill {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar-quick-actions .btn-text {
    display: none;
  }

  .topbar-user-name {
    display: none;
  }
}

/* ==========================================================================
   SERVER FLEET GRID & NODE CARD AESTHETICS (/Servers)
   ========================================================================== */

.server-fleet-toolbar {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.75rem;
  background: #111827;
  padding: 0.85rem 1.25rem;
}

.server-fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.server-node-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.server-node-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(16, 185, 129, 0.1);
}

.node-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  gap: 0.5rem;
}

.node-status-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.node-quick-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-icon-xs {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-icon-xs:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn-danger-xs:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
}

.node-card-identity {
  margin-bottom: 1.15rem;
}

.node-name-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #f8fafc;
  transition: color 0.2s ease;
  margin-bottom: 0.35rem;
}

.node-name-link:hover {
  color: #10b981;
}

.node-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}

.node-name-link i {
  font-size: 0.75rem;
  color: #64748b;
  transition: transform 0.2s ease, color 0.2s ease;
}

.node-name-link:hover i {
  color: #10b981;
  transform: translate(2px, -2px);
}

.node-ip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #94a3b8;
}

.node-ip-badge code {
  color: #38bdf8;
  font-size: 0.76rem;
}

.node-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.node-metric-cell {
  background: #0d1322;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-value-sm {
  font-size: 1rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
}

.metric-unit-sm {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
}

.node-card-footer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.node-action-btn {
  flex: 1;
  justify-content: center;
}

@media (max-width: 480px) {
  .server-fleet-grid {
    grid-template-columns: 1fr;
  }
  .node-metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SERVER ADMIN HUB & DETAIL VIEW RESPONSIVENESS
   ========================================================================== */

.server-admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.server-admin-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.25rem 0.85rem;
  position: sticky;
  top: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  box-sizing: border-box;
}

.server-admin-body {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-sizing: border-box;
}

.server-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .server-admin-layout {
    grid-template-columns: 1fr;
  }
  
  .server-admin-sidebar {
    position: static;
    width: 100%;
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .sidebar-section-title {
    display: none;
  }

  .server-admin-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }

  .admin-nav-item {
    flex: 0 0 auto;
    width: auto;
    padding: 6px 12px;
    border-radius: 8px;
    gap: 8px;
  }

  .admin-nav-item .nav-icon {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .admin-nav-item .nav-title {
    font-size: 0.82rem;
  }

  .admin-nav-item .nav-desc {
    display: none;
  }

  .sidebar-server-card {
    display: none;
  }
}

@media (max-width: 768px) {
  .dash-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dash-actions {
    width: 100%;
  }

  .dash-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .grid-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .grid-toolbar-left, .grid-toolbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .grid-search-wrapper {
    width: 100%;
    min-width: 0;
  }
}

/* ==========================================================================
   STICKY 1ST & 2ND COLUMN TABLE GRID (ACTION PINNED & NAME PINNED)
   ========================================================================== */

.table-sticky-lead {
  border-collapse: separate !important;
  border-spacing: 0;
  width: 100%;
}

.table-sticky-lead thead th {
  background: #111a2e !important;
  position: sticky;
  top: 0;
  z-index: 8;
  white-space: nowrap;
}

/* 1st Column: Deployment & File Actions (Sticky Left 0) */
.table-sticky-lead thead th:nth-child(1),
.table-sticky-lead tbody td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 10;
  background: #0d1526;
  min-width: 320px;
  max-width: 340px;
  width: 320px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.table-sticky-lead thead th:nth-child(1) {
  z-index: 15;
  background: #111a2e !important;
}

/* 2nd Column: Application / Project Name (Sticky Left 320px) */
.table-sticky-lead thead th:nth-child(2),
.table-sticky-lead tbody td:nth-child(2) {
  position: sticky;
  left: 320px;
  z-index: 9;
  background: #0d1526;
  min-width: 250px;
  max-width: 320px;
  width: 260px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.5);
}

.table-sticky-lead thead th:nth-child(2) {
  z-index: 14;
  background: #111a2e !important;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.5);
}

/* Hover effect on sticky cells */
.table-sticky-lead tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.table-sticky-lead tbody tr:hover td:nth-child(1),
.table-sticky-lead tbody tr:hover td:nth-child(2) {
  background: #152037 !important;
}

/* Action button strip inside table cell */
.table-actions-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 300px;
}

.table-actions-cell form {
  margin: 0;
  display: inline-flex;
}

.table-actions-cell .btn {
  white-space: nowrap;
  font-size: 0.76rem;
  padding: 0.32rem 0.65rem;
}

/* Live URL styling */
.live-url-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8 !important;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.live-url-link:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.live-url-link i {
  font-size: 0.72rem;
}

/* Remaining scrollable columns formatting */
.table-sticky-lead thead th:nth-child(n+3),
.table-sticky-lead tbody td:nth-child(n+3) {
  min-width: 160px;
  white-space: nowrap;
}



