/* ==============================================================================
   CretaPanel: Liquid Glass Design System
   Tailored for Rocky Linux Enterprise Cloud Environments
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Glass Core Tokens */
  --glass-blur: 24px;
  --glass-saturation: 190%;
  --glass-opacity: 0.52;
  --glass-bg: rgba(14, 18, 28, var(--glass-opacity));
  --glass-card-bg: rgba(22, 28, 42, 0.48);
  --glass-card-hover: rgba(30, 38, 58, 0.62);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-hover: rgba(255, 255, 255, 0.28);
  --glass-specular: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.45);
  --glass-inner-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.18);

  /* Fluid & Accent Colors */
  --accent-cyan: #00d2d3;
  --accent-blue: #2e86de;
  --accent-purple: #9b59b6;
  --accent-green: #10ac84;
  --accent-amber: #f39c12;
  --accent-red: #ee5253;
  --accent-glow: rgba(0, 210, 211, 0.35);

  /* Rocky Linux Brand Accents */
  --rocky-green: #10b981;
  --rocky-quartz: #1e293b;

  /* Typography */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-code: #54a0ff;

  --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --radius-pill: 9999px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--text-primary);
  background-color: #080a10;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ----------------------------------------------------------------------------
   Liquid Wallpaper & Backdrop Engine
   ---------------------------------------------------------------------------- */
.liquid-wallpaper-container {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.6s ease-in-out;
  transform: scale(1.02);
}

.liquid-wallpaper-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 10%, rgba(10, 15, 28, 0.5) 0%, rgba(5, 7, 14, 0.82) 100%);
  pointer-events: none;
}

/* Ambient Fluid Glow Orbs */
.liquid-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: floatOrb 18s infinite alternate ease-in-out;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #00d2d3, transparent 70%);
  top: -100px;
  left: 20%;
  animation-duration: 22s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7d5fff, transparent 70%);
  bottom: -150px;
  right: 15%;
  animation-duration: 26s;
}

.orb-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #10ac84, transparent 70%);
  top: 40%;
  left: 65%;
  animation-duration: 20s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.12); }
  100% { transform: translate(-40px, 60px) scale(0.95); }
}

/* ----------------------------------------------------------------------------
   Liquid Glass Components
   ---------------------------------------------------------------------------- */
.glass-panel {
  background: var(--glass-card-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  pointer-events: none;
  transition: 0.6s ease;
}

.glass-panel:hover::before {
  left: 100%;
}

.glass-card {
  background: var(--glass-card-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), var(--glass-inner-shadow);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  background: var(--glass-card-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 25px var(--accent-glow);
}

/* Glass Interactive Buttons */
.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.btn-glass:active {
  transform: translateY(0);
}

.btn-glass-primary {
  background: linear-gradient(135deg, rgba(0, 210, 211, 0.8), rgba(46, 134, 222, 0.8));
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 210, 211, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.btn-glass-primary:hover {
  background: linear-gradient(135deg, rgba(0, 210, 211, 1), rgba(46, 134, 222, 1));
  box-shadow: 0 6px 28px rgba(0, 210, 211, 0.6), inset 0 1px 1px #fff;
  border-color: #fff;
}

.btn-glass-danger {
  background: rgba(238, 82, 83, 0.25);
  border-color: rgba(238, 82, 83, 0.4);
  color: #ff7675;
}

.btn-glass-danger:hover {
  background: rgba(238, 82, 83, 0.45);
  border-color: #ee5253;
  color: #fff;
  box-shadow: 0 4px 18px rgba(238, 82, 83, 0.4);
}

/* ----------------------------------------------------------------------------
   Layout Structure
   ---------------------------------------------------------------------------- */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Glass Sidebar / Dock */
.sidebar {
  width: 280px;
  background: rgba(12, 16, 26, 0.65);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.brand-logo-gem {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 210, 211, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  padding: 4px;
  flex-shrink: 0;
}

.brand-logo-gem:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: rgba(0, 210, 211, 0.55);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 32px rgba(0, 210, 211, 0.5), inset 0 1px 1px #fff;
}

.brand-logo-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 210, 211, 0.4));
  transition: var(--transition-smooth);
}

.brand-logo-gem:hover .brand-logo-svg {
  filter: drop-shadow(0 4px 14px rgba(0, 210, 211, 0.7));
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(120deg, #ffffff 30%, #00d2d3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rocky-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  text-decoration: none;
}

.nav-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(0, 210, 211, 0.18), rgba(125, 95, 255, 0.08));
  color: #ffffff;
  border: 1px solid rgba(0, 210, 211, 0.4);
  box-shadow: 0 4px 18px rgba(0, 210, 211, 0.15);
}

.nav-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(0, 210, 211, 0.25);
  color: #00d2d3;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 210, 211, 0.4);
}

.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Main Content Area */
.main-viewport {
  margin-left: 280px;
  flex: 1;
  min-width: 0;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Glass Top Header */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  background: rgba(14, 18, 28, 0.55);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  width: 320px;
  transition: var(--transition-smooth);
}

.search-box:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 210, 211, 0.3);
  width: 380px;
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.9rem;
  width: 100%;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.header-status-pills {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  font-size: 0.82rem;
  font-weight: 500;
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

/* ----------------------------------------------------------------------------
   Tab: App Store
   ---------------------------------------------------------------------------- */
.store-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.store-title h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.store-title p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.category-chips-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  scrollbar-width: none;
}

.category-chip {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.category-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.category-chip.active {
  background: linear-gradient(135deg, rgba(0, 210, 211, 0.35), rgba(46, 134, 222, 0.35));
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 210, 211, 0.3);
}

/* Apps Grid */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.app-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  min-width: 0;
  position: relative;
}

.app-card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.app-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.app-meta {
  flex: 1;
  min-width: 0;
}

.app-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.app-category-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-tagline {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.4;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
  width: 100%;
  gap: 10px;
}

.app-port-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-cyan);
  background: rgba(0, 210, 211, 0.12);
  border: 1px solid rgba(0, 210, 211, 0.25);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

/* ----------------------------------------------------------------------------
   Tab: Containers Manager
   ---------------------------------------------------------------------------- */
.containers-table-card {
  padding: 24px;
}

.container-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  margin-bottom: 12px;
  transition: var(--transition-smooth);
}

.container-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.container-info-col {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 260px;
}

.container-status-glow {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.container-status-glow.running {
  background: var(--accent-green);
  box-shadow: 0 0 12px var(--accent-green);
}

.container-status-glow.stopped {
  background: #718096;
}

.container-stats-col {
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ----------------------------------------------------------------------------
   Tab: Rocky Linux Host Telemetry
   ---------------------------------------------------------------------------- */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-gauge-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gauge-circle {
  width: 110px;
  height: 110px;
  position: relative;
  margin: 12px 0;
}

.gauge-circle svg {
  transform: rotate(-90deg);
  width: 110px;
  height: 110px;
}

.gauge-value-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Rocky Host Details Banner */
.rocky-banner {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.rocky-banner-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.rocky-icon-gem {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #10b981, #047857);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4), inset 0 1px 2px #fff;
}

/* ----------------------------------------------------------------------------
   Tab: Wallpaper & Liquid Glass Studio
   ---------------------------------------------------------------------------- */
.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.wallpaper-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  height: 170px;
  border: 2px solid transparent;
  transition: var(--transition-smooth);
}

.wallpaper-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.wallpaper-card:hover img {
  transform: scale(1.06);
}

.wallpaper-card.active {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px var(--accent-cyan);
}

.wallpaper-overlay-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}

.wallpaper-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.wallpaper-author {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.license-pill {
  display: inline-block;
  font-size: 0.65rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  align-self: flex-start;
}

/* Glass Studio Controls */
.studio-controls {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

.slider-group input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* ----------------------------------------------------------------------------
   Modal Dialogs (Deploy Wizard & Logs)
   ---------------------------------------------------------------------------- */
.glass-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.glass-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.glass-modal-window {
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 30px;
  background: rgba(18, 24, 38, 0.88);
  border: 1px solid var(--glass-border-hover);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px var(--accent-glow);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.glass-modal-backdrop.active .glass-modal-window {
  transform: scale(1);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 210, 211, 0.3);
}

/* Code Editor / Logs View */
.code-terminal {
  background: rgba(5, 8, 15, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #a5b4fc;
  overflow-x: auto;
  max-height: 480px;
  white-space: pre-wrap;
  line-height: 1.6;
}

/* Animations */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(0, 210, 211, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(0, 210, 211, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 210, 211, 0); }
}

.pulse {
  animation: pulseGlow 2s infinite;
}

/* ----------------------------------------------------------------------------
   Sites (Static Web Hosting) Styles
   ---------------------------------------------------------------------------- */
.glass-dropzone {
  border: 2px dashed rgba(0, 210, 211, 0.4);
  background: rgba(0, 210, 211, 0.03);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.glass-dropzone:hover, .glass-dropzone.drag-over {
  border-color: var(--accent-cyan);
  background: rgba(0, 210, 211, 0.08);
  box-shadow: 0 0 25px rgba(0, 210, 211, 0.2);
  transform: translateY(-2px);
}

.template-choice-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: block;
}

.template-choice-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.template-choice-card.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 210, 211, 0.08);
  box-shadow: 0 0 15px rgba(0, 210, 211, 0.15);
}

.template-choice-card strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
  margin-bottom: 4px;
}

.template-choice-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.deploy-source-tab {
  font-size: 0.82rem;
  padding: 8px 12px;
}

.deploy-source-tab.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 210, 211, 0.15);
  color: #fff;
}

.editor-file-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

.site-card {
  transition: var(--transition-smooth);
}

.site-card:hover {
  border-color: rgba(0, 210, 211, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 210, 211, 0.1);
  transform: translateY(-3px);
}

.site-ctrl-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.site-ctrl-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  padding: 7px 2px !important;
  width: 100% !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  border-radius: var(--radius-sm, 8px) !important;
  box-sizing: border-box !important;
  transition: var(--transition-smooth) !important;
}

.site-ctrl-btn span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.site-ctrl-btn:hover {
  transform: translateY(-1px) !important;
}

/* ----------------------------------------------------------------------------
   In-Panel Update Engine & Control Plane Status Styling
   ---------------------------------------------------------------------------- */
.control-plane-update-card {
  position: relative;
  overflow: hidden;
  background: rgba(18, 24, 38, 0.65);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur, 24px));
  -webkit-backdrop-filter: blur(var(--glass-blur, 24px));
  transition: all 0.3s ease;
}

.control-plane-update-card.has-update {
  border-color: rgba(0, 210, 211, 0.4);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 210, 211, 0.15);
}

.update-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

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

.update-status-badge.available {
  background: linear-gradient(135deg, rgba(0, 210, 211, 0.2), rgba(125, 95, 255, 0.25));
  color: #00f2fe;
  border: 1px solid rgba(0, 242, 254, 0.4);
  box-shadow: 0 0 12px rgba(0, 210, 211, 0.25);
}

.update-status-badge.checking {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

.update-pulse-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #00d2d3, #7d5fff);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 210, 211, 0.5);
  animation: updatePulse 2s infinite ease-in-out;
}

@keyframes updatePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(0, 210, 211, 0.4);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.8);
  }
}

.spin-animation {
  animation: spinSlow 1s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-ping-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  animation: radarPing 1.8s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes radarPing {
  0% {
    width: 20px;
    height: 20px;
    opacity: 1;
  }
  100% {
    width: 90px;
    height: 90px;
    opacity: 0;
  }
}

.update-step-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.update-step-card.active {
  background: rgba(0, 210, 211, 0.08);
  border-color: rgba(0, 210, 211, 0.35);
  box-shadow: 0 0 15px rgba(0, 210, 211, 0.1);
}

.update-step-card.done {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.3);
}

.changelog-commit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
  transition: background 0.2s ease;
}

.changelog-commit-item:hover {
  background: rgba(255, 255, 255, 0.06);
}




/* ============================================================================
   Panel Lock / Custom Sign-In Screen
   ============================================================================ */
.panel-lock-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 15%, rgba(0, 210, 211, 0.16), transparent 42%),
    radial-gradient(circle at 82% 85%, rgba(108, 92, 231, 0.2), transparent 46%),
    rgba(4, 6, 12, 0.82);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}

.panel-lock-screen.active {
  display: flex;
  animation: lockFadeIn 0.28s ease;
}

@keyframes lockFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.panel-lock-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 210, 211, 0.18), transparent 68%);
  filter: blur(50px);
  pointer-events: none;
}

.panel-lock-card {
  position: relative;
  width: min(440px, 100%);
  padding: 34px 34px 26px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(160deg, rgba(24, 31, 47, 0.9), rgba(12, 16, 27, 0.94));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.65),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  animation: lockCardIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lockCardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.panel-lock-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.panel-lock-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.panel-lock-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-top: 2px;
}

.panel-lock-lock-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  background: rgba(0, 210, 211, 0.12);
  border: 1px solid rgba(0, 210, 211, 0.35);
  box-shadow: 0 0 26px rgba(0, 210, 211, 0.18);
  margin-bottom: 16px;
}

.panel-lock-heading {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.panel-lock-copy {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 22px;
}

.panel-lock-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.panel-lock-input {
  width: 100%;
  font-size: 1rem;
  padding: 13px 16px;
}

.panel-lock-error {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #ff7675;
  background: rgba(255, 118, 117, 0.12);
  border: 1px solid rgba(255, 118, 117, 0.35);
}

.panel-lock-submit {
  width: 100%;
  justify-content: center;
  margin-top: 18px;
  padding: 13px 18px;
  font-size: 0.92rem;
  font-weight: 700;
}

.panel-lock-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  text-align: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
}

body.panel-is-locked {
  overflow: hidden;
}

/* Avoid flashing the dashboard before the panel lock check completes. */
.app-container {
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.panel-ready .app-container {
  opacity: 1;
}

body.panel-is-locked .app-container,
body.panel-is-locked #toast-container {
  visibility: hidden;
}
