.server-card {
  display: flex;
  background: #2c2c2c;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin: 0rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.server-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.server-image {
  width: 200px;
  min-height: 150px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.server-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-info {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.server-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.server-name {
  color: #ffffff;
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.server-status {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
}

.server-status.online {
  background: #28a745;
  color: white;
}

.server-status.offline {
  background: #dc3545;
  color: white;
}

.server-status.maintenance {
  background: #ffc107;
  color: #212529;
}

.server-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
}

.label {
  color: #b0b0b0;
  font-weight: 500;
}

.value {
  color: #ffffff;
  font-weight: 600;
}

.server-actions {
  display: flex;
  gap: 0.8rem;
}

.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-primary:hover {
  background: #0056b3;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #545b62;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

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

/* Responsive design */
@media (max-width: 768px) {
  .server-card {
    flex-direction: column;
  }
  
  .server-image {
    display: none;;
  }
  
  .server-details {
    grid-template-columns: 1fr;
  }
  
  .server-actions {
    flex-direction: column;
  }
}