.server-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.server-filters {
  display: flex;
  gap: 10px;
}

.filter-select {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 8px 12px;
  color: var(--text-primary);
  font-family: "Orbitron", sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  text-transform: uppercase;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.server-list {
  max-height: calc(100vh - 350px);
  overflow-y: auto;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
}

.server-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
  padding: 12px 20px;
  margin-bottom: 8px;
  border-radius: 2px;
  border: 1px solid var(--border-color);
  position: relative;
}

.server-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
  opacity: 0.6;
}

.server-card:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
}

.server-card:hover::before {
  opacity: 1;
}

.server-info {
  display: flex;
  align-items: center;
  flex: 1;
}

.server-name {
  font-family: "Orbitron", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-right: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.server-players {
  font-family: "Space Mono", monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  max-width: 100px;
}

.status-indicator.online {
  width: 10px;
  height: 10px;
  background: var(--success-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success-color);
  margin-right: 15px;
  animation: status-pulse 2s infinite ease-in-out;
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.server-section-title {
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 4px;
}

.server-loading,
.server-empty {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-family: "Orbitron", sans-serif;
}

.server-loading i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* Кнопки */
.server-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.galaxy-button {
  height: 35px;
  min-width: 120px;
}
.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  opacity: 0.6;
}

.server-search-input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 10px 12px 10px 35px;
  color: var(--text-primary);
  font-family: "Orbitron", sans-serif;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.server-search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.control-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.server-details-text {
  display: flex;
  flex-direction: column;
}
@media screen and (max-width: 600px) {
  .server-card {
    flex-direction: column;
    text-align: center;

    button {
      font-size: 12px;
    }
  }

  .server-info {
    flex-direction: column;
    gap: 10px;
  }

  .server-name {
    margin-right: 0;
    font-size: 12px;
  }

  .status-indicator.online {
    margin-right: 0;
    margin-bottom: 5px;
  }
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 15px;
}

.status-indicator.online {
  background: var(--success-color);
  box-shadow: 0 0 10px var(--success-color);
  animation: status-pulse 2s infinite ease-in-out;
}

.status-indicator.offline {
  background: #555;
  box-shadow: none;
  animation: none;
  opacity: 0.5;
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@media screen and (max-width: 600px) {
  .status-indicator.online,
  .status-indicator.offline {
    margin-right: 0;
    margin-bottom: 5px;
  }
}
