.app {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem;
  min-height: 100vh;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: var(--surface-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

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

.app-header h1 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  transform: translateY(-3px);
}

.app-logo {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: inline-block;
}

.btn-icon {
  background: var(--surface-color);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-icon:hover {
  background: var(--bg-color);
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-show-header {
  position: fixed;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  z-index: 1000;
  opacity: 0.5;
  transition: all 0.2s;
  padding: 0;
}

.btn-show-header:hover {
  opacity: 1;
  background: var(--surface-color);
  box-shadow: var(--shadow-sm);
  transform: scale(1.1);
  color: var(--primary-color);
}

.btn-add {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-add:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.add-form {
  background: var(--surface-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  border: 1px solid var(--border-color);
  animation: slideDown 0.3s ease-out;
}

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

.add-form input {
  flex: 1;
  min-width: 250px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  transition: all 0.2s;
  background: var(--bg-color);
  color: var(--text-main);
}

.add-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(134, 239, 172, 0.1);
  background: var(--surface-color);
}

.btn-submit {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-submit:hover {
  background: var(--primary-hover);
}

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

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px dashed var(--border-color);
}

.empty-state p {
  margin: 0.5rem 0;
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.empty-state .hint {
  color: var(--text-light);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .app {
    padding: 1rem;
  }

  .app-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    text-align: center;
    padding: 1rem;
  }

  .app-header h1 {
    justify-content: center;
  }

  .header-actions {
    justify-content: center;
  }
}
