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

body {
  font-family: 'Inter', sans-serif;
  background-color: #0b0f19;
  color: #f3f4f6;
  height: 100vh;
  overflow: hidden;
}

.app-layout {
  display: flex;
  height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background-color: #111827;
  border-right: 1px solid #1f2937;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.brand h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.port-list h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.port-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  color: #d1d5db;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.2s ease;

  &:hover, &.active {
    background-color: #1f2937;
    color: #ffffff;
  }
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
}

.custom-loader {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.custom-loader input {
  background-color: #1f2937;
  border: 1px solid #374151;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  outline: none;
}

.custom-loader button {
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 0.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;

  &:hover {
    background-color: #2563eb;
  }
}

/* Viewport */
.viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 50px;
  background-color: #111827;
  border-bottom: 1px solid #1f2937;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  font-weight: 600;
}

.icon-btn {
  background: transparent;
  border: 1px solid #374151;
  color: #d1d5db;
  padding: 0.35rem 0.75rem;
  border-radius: 0.375rem;
  cursor: pointer;

  &:hover {
    background-color: #1f2937;
  }
}

.frame-wrapper {
  flex: 1;
  position: relative;
  background-color: #000;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #6b7280;
}

.hidden {
  display: none;
}