/* ── EGCU Server Manager — Modern Minimalist Dark Theme ────────── */

:root {
  --bg-main: #0B0F19;
  --bg-surface: rgba(22, 29, 47, 0.75);
  --bg-surface-hover: rgba(30, 41, 66, 0.85);
  --bg-card: rgba(18, 24, 38, 0.85);
  --bg-card-hover: rgba(26, 35, 54, 0.95);
  --bg-modal: #111726;
  --bg-input: rgba(11, 15, 25, 0.8);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-focus: rgba(56, 189, 248, 0.5);
  --border-hover: rgba(255, 255, 255, 0.15);

  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --accent-blue: #38BDF8;
  --accent-blue-hover: #0284C7;
  --accent-blue-bg: rgba(56, 189, 248, 0.12);

  --status-running: #10B981;
  --status-running-bg: rgba(16, 185, 129, 0.14);
  --status-running-glow: rgba(16, 185, 129, 0.4);

  --status-stopped: #F43F5E;
  --status-stopped-bg: rgba(244, 63, 94, 0.14);

  --status-restarting: #F59E0B;
  --status-restarting-bg: rgba(245, 158, 11, 0.14);

  --badge-public-bg: rgba(14, 165, 233, 0.15);
  --badge-public-text: #38BDF8;
  --badge-sim-bg: rgba(168, 85, 247, 0.15);
  --badge-sim-text: #C084FC;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.15);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/* ── Typography & Global Elements ────────────────────────────── */

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.025em;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  user-select: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

button:active {
  transform: scale(0.97);
}

/* ── Lock Screen (PIN Entry) ─────────────────────────────────── */

.lock-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  padding-top: calc(24px + var(--safe-top));
  padding-bottom: calc(24px + var(--safe-bottom));
}

.lock-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lock-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(99, 102, 241, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.lock-icon-wrap svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent-blue);
  fill: none;
}

.lock-card h1 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.lock-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 28px;
}

/* PIN Dots Display */
.pin-dots {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
}

.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-hover);
  background: transparent;
  transition: all 0.2s ease;
}

.pin-dot.filled {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px var(--accent-blue);
  transform: scale(1.15);
}

.pin-error-msg {
  color: var(--status-stopped);
  font-size: 0.85rem;
  font-weight: 500;
  min-height: 22px;
  margin-bottom: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pin-error-msg.visible {
  opacity: 1;
}

/* Numeric Keypad */
.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 280px;
  margin-bottom: 20px;
}

.key-btn {
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 1.45rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.key-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
}

.key-btn:active {
  background: var(--accent-blue-bg);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.key-btn.action-key {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.key-btn.action-key svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.remember-device {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}

.remember-device input[type="checkbox"] {
  accent-color: var(--accent-blue);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Shake animation for incorrect PIN */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.shake {
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* ── App Shell / Navigation ──────────────────────────────────── */

.app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: calc(14px + var(--safe-top)) 24px 14px 24px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-blue), #6366F1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

.brand-logo svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.brand-text h1 {
  font-size: 1.1rem;
  line-height: 1.2;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

.nav-btn.primary {
  background: var(--accent-blue);
  color: #0B0F19;
  font-weight: 600;
  border: none;
}

.nav-btn.primary:hover {
  background: #7DD3FC;
}

.nav-btn svg {
  width: 16px;
  height: 16px;
}

/* ── Main Content Area ───────────────────────────────────────── */

.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 24px calc(40px + var(--safe-bottom)) 24px;
}

/* ── Hero / Status Overview Banner ──────────────────────────── */

.overview-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.status-pill.running {
  background: var(--status-running-bg);
  color: var(--status-running);
  border-color: rgba(16, 185, 129, 0.25);
}

.status-pill.stopped {
  background: var(--status-stopped-bg);
  color: var(--status-stopped);
  border-color: rgba(244, 63, 94, 0.25);
}

.status-pill.total {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border-color: var(--border-subtle);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-dot.pulsing {
  box-shadow: 0 0 10px currentColor;
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.global-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-restart-all {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-restart-all:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #FBBF24;
}

.btn-stop-all {
  background: rgba(244, 63, 94, 0.12);
  color: #FB7185;
  border: 1px solid rgba(244, 63, 94, 0.25);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-stop-all:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: #FB7185;
}

/* ── Filter Controls & Search ────────────────────────────────── */

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.segmented-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
}

.tab-btn {
  padding: 6px 16px;
  border-radius: calc(var(--radius-md) - 4px);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab-btn.active {
  background: var(--accent-blue-bg);
  color: var(--accent-blue);
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.tab-btn .count {
  font-size: 0.75rem;
  opacity: 0.75;
}

.search-box {
  position: relative;
  min-width: 240px;
}

.search-box input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.86rem;
  padding: 8px 12px 8px 36px;
  outline: none;
  transition: border-color 0.2s;
}

.search-box input:focus {
  border-color: var(--accent-blue);
}

.search-box svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--text-dim);
}

/* Group Chips Filter */
.group-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
  scrollbar-width: none;
}

.group-chips::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.chip-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ── Server Cards Grid ───────────────────────────────────────── */

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.server-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card), 0 8px 20px rgba(0, 0, 0, 0.35);
}

.server-card.running-card {
  border-left: 3px solid var(--status-running);
}

.server-card.stopped-card {
  border-left: 3px solid rgba(244, 63, 94, 0.5);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

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

.server-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge.public {
  background: var(--badge-public-bg);
  color: var(--badge-public-text);
}

.badge.sim {
  background: var(--badge-sim-bg);
  color: var(--badge-sim-text);
}

.badge.group {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.server-path {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Status Badge */
.card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.card-status.running {
  background: var(--status-running-bg);
  color: var(--status-running);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.card-status.stopped {
  background: var(--status-stopped-bg);
  color: var(--status-stopped);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.card-status.restarting {
  background: var(--status-restarting-bg);
  color: var(--status-restarting);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Card Action Buttons */
.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.btn-action {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
}

.btn-restart {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.25);
}

.btn-restart:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #FBBF24;
}

.btn-start {
  background: var(--status-running-bg);
  color: var(--status-running);
  border-color: rgba(16, 185, 129, 0.25);
}

.btn-start:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--status-running);
}

.btn-stop {
  background: rgba(244, 63, 94, 0.1);
  color: #FB7185;
  border-color: rgba(244, 63, 94, 0.2);
}

.btn-stop:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: #FB7185;
}

.btn-icon-only {
  width: 38px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.btn-icon-only:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.btn-icon-only svg {
  width: 17px;
  height: 17px;
}

/* ── Log Viewer Drawer ───────────────────────────────────────── */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-content {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 680px;
  background: var(--bg-modal);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.7);
}

.drawer-overlay.active .drawer-content {
  transform: translateX(0);
}

.drawer-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.drawer-header h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-container {
  flex: 1;
  background: #060911;
  padding: 16px 20px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: #D1D5DB;
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal-line {
  display: block;
}

.log-info { color: #60A5FA; }
.log-warn { color: #FBBF24; }
.log-error { color: #F87171; font-weight: 600; }
.log-success { color: #34D399; }

/* ── Modal Dialogs (Settings, Confirmations) ─────────────────── */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.modal-box {
  background: var(--bg-modal);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 26px;
  box-shadow: var(--shadow-card);
  transform: scale(0.95);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-box h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.modal-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-secondary {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.btn-danger {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: #E11D48;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}

.btn-danger:hover {
  background: #F43F5E;
}

/* ── Toasts ──────────────────────────────────────────────────── */

.toast-container {
  position: fixed;
  bottom: calc(20px + var(--safe-bottom));
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: var(--text-main);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  animation: slide-up 0.25s ease-out;
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast.success svg { stroke: var(--status-running); }
.toast.error svg { stroke: var(--status-stopped); }
.toast.info svg { stroke: var(--accent-blue); }

/* ── Responsive Adaptations (Mobile & iPhone) ────────────────── */

@media (max-width: 768px) {
  .nav-container {
    padding: 0;
  }
  
  .brand-text span {
    display: none;
  }

  .overview-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .status-pills {
    justify-content: space-between;
  }

  .global-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .segmented-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
  }

  .tab-btn {
    justify-content: center;
  }

  .search-box {
    width: 100%;
  }

  .server-grid {
    grid-template-columns: 1fr;
  }

  .drawer-content {
    top: auto;
    bottom: 0;
    max-width: 100%;
    height: 80vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    transform: translateY(100%);
  }

  .drawer-overlay.active .drawer-content {
    transform: translateY(0);
  }

  .toast-container {
    left: 16px;
    right: 16px;
    bottom: calc(16px + var(--safe-bottom));
  }
}
