.logo.vite:hover {
  filter: drop-shadow(0 0 2em #747bff);
}

.logo.react:hover {
  filter: drop-shadow(0 0 2em #61dafb);
}
:root {
  font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;

  color: #0f0f0f;
  background-color: #f6f6f6;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  
  /* Disable scrolling */
  overflow: hidden;
}

/* Disable scrolling on html and body as well */
html, body {
  overflow: hidden;
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Main layout */
.app-container {
  display: flex;
  height: 100vh;
  margin: 0;
}

/* Sidebar styles */
.sidebar {
  width: 300px;
  background-color: #f6f6f6;
  border-right: 1px solid #e0e0e0;
  padding: 0;
  transition: width 0.3s ease;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu-item {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #2c2c2c;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.sidebar-menu-item:hover {
  background-color: #eaeaea;
}

.sidebar-menu-item.active {
  background-color: #e6e6e6;
  font-weight: 500;
}

.sidebar-menu-item img {
  width: 20px;
  height: 20px;
  min-width: 20px;
  flex-shrink: 0;
}

.sidebar-menu-item span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main content area */
.main-content {
  flex: 1;
  padding: 0;
  background-color: #ffffff;
  overflow-y: auto;
  font-size: 0.9rem;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: 0.75s;
}

.logo.tauri:hover {
  filter: drop-shadow(0 0 2em #24c8db);
}

.row {
  display: flex;
  justify-content: center;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}

a:hover {
  color: #535bf2;  
}

h1 {
  text-align: center;
}

input,
button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  color: #0f0f0f;
  background-color: #ffffff;
  transition: border-color 0.25s;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}

button {
  cursor: pointer;
}

button:hover {
  border-color: #396cd8;
}
button:active {
  border-color: #396cd8;
  background-color: #e8e8e8;
}

input,
button {
  outline: none;
}

#greet-input {
  margin-right: 5px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    color: #f6f6f6;
    background-color: #2f2f2f;
  }

  a:hover {
    color: #24c8db;
  }

  input,
  button {
    color: #ffffff;
    background-color: #0f0f0f98;
  }
  button:active {
    background-color: #0f0f0f69;
  }

  .sidebar {
    background-color: #2f2f2f;
    border-right-color: #404040;
  }

  .sidebar-menu-item {
    color: #f6f6f6;
  }

  .sidebar-menu-item:hover {
    background-color: #404040;
  }

  .sidebar-menu-item.active {
    background-color: #404040;
  }

  .main-content {
    background-color: #2f2f2f;
  }

  .sidebar-toggle {
    background: #2f2f2f;
    border-color: #404040;
  }
}

/* Component containers */
.home-container,
.installed-servers-container,
.registry-container {
  padding: 20px;
}

.home-container h2,
.installed-servers-container h2,
.registry-container h2 {
  margin-bottom: 16px;
  font-size: 1.5rem;
  font-weight: 500;
}

.home-container p,
.installed-servers-container p,
.registry-container p {
  color: #666;
  line-height: 1.5;
}

/* Dark mode support for component text */
@media (prefers-color-scheme: dark) {
  .home-container p,
  .installed-servers-container p,
  .registry-container p {
    color: #aaa;
  }
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.loading-content {
  background-color: #1e1e1e;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.loading-content h2 {
  margin-top: 0;
  color: #ffffff;
  font-size: 24px;
}

.loading-content p {
  color: #cccccc;
  margin-bottom: 20px;
}

.progress-bar-container {
  height: 8px;
  background-color: #333333;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 20px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  transition: width 0.3s ease;
}
