.servers-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap:20px; margin-top:20px; }

/* PAINEL DE AÇÕES */
.server-actions-panel {
  background: linear-gradient(135deg, rgba(30,41,59,0.95) 0%, rgba(15,23,42,0.95) 100%);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 24px;
}

.actions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.actions-title {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.actions-title i {
  color: #3b82f6;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn i {
  font-size: 20px;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.action-btn.action-primary {
  border-color: rgba(59,130,246,0.3);
  background: rgba(59,130,246,0.1);
}

.action-btn.action-primary:hover {
  background: rgba(59,130,246,0.2);
}

.action-btn.action-primary i { color: #3b82f6; }

.action-btn.action-success {
  border-color: rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.1);
}

.action-btn.action-success:hover {
  background: rgba(34,197,94,0.2);
}

.action-btn.action-success i { color: #22c55e; }

.action-btn.action-warning {
  border-color: rgba(234,179,8,0.3);
  background: rgba(234,179,8,0.1);
}

.action-btn.action-warning:hover {
  background: rgba(234,179,8,0.2);
}

.action-btn.action-warning i { color: #eab308; }

.action-btn.action-info {
  border-color: rgba(139,92,246,0.3);
  background: rgba(139,92,246,0.1);
}

.action-btn.action-info:hover {
  background: rgba(139,92,246,0.2);
}

.action-btn.action-info i { color: #8b5cf6; }

.action-result {
  margin-top: 14px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
  color: var(--muted);
  display: none;
}

.action-result.visible {
  display: block;
}

.action-result.success {
  background: rgba(34,197,94,0.1);
  border-color: rgba(34,197,94,0.3);
  color: #4ade80;
}

.action-result.error {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.3);
  color: #f87171;
}

.action-result.info {
  background: rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.3);
  color: #60a5fa;
}

/* FORMULÁRIO ADICIONAR SERVIDOR */
.add-server-panel {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.panel-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-close:hover {
  background: rgba(239,68,68,0.2);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.form-group input {
  background: rgba(15,23,42,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
}

.form-group input:focus {
  outline: 2px solid rgba(59,130,246,0.35);
  border-color: transparent;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.form-status {
  font-size: 13px;
  color: var(--muted);
  padding: 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
}

.form-status.success {
  background: rgba(34,197,94,0.1);
  color: #4ade80;
}

.form-status.error {
  background: rgba(239,68,68,0.1);
  color: #f87171;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.btn-success {
  background: #22c55e;
  color: white;
}

.btn-success:hover {
  background: #16a34a;
}

.server-card {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.2s;
}

.server-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(59,130,246,0.15);
  transform: translateY(-2px);
}

.server-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.server-name {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text);
}

.server-url {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}

.server-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-online {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
}

.status-offline {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
}

.server-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.server-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn-server {
  flex: 1;
  min-width: 80px;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

.btn-warning {
  background: rgba(234,179,8,0.15);
  color: #eab308;
  border: 1px solid rgba(234,179,8,0.2);
}

.btn-warning:hover {
  background: rgba(234,179,8,0.25);
}

.btn-success {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.2);
}

.btn-success:hover {
  background: rgba(34,197,94,0.25);
}

.btn-info {
  background: rgba(14,165,233,0.15);
  color: #0ea5e9;
  border: 1px solid rgba(14,165,233,0.2);
}

.btn-info:hover {
  background: rgba(14,165,233,0.25);
  border-color: rgba(14,165,233,0.4);
}

.btn-danger {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.2);
}

.btn-danger:hover {
  background: rgba(239,68,68,0.25);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

@media (max-width: 768px) {
  .servers-grid {
    grid-template-columns: 1fr;
  }
  
  .actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.server-card {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.2s;
}

.server-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(59,130,246,0.15);
  transform: translateY(-2px);
}

.server-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.server-name {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text);
}

.server-url {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}

.server-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-online {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
}

.status-offline {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
}

.server-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.server-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.btn-server {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

@media (max-width: 768px) {
  .servers-grid {
    grid-template-columns: 1fr;
  }
}

/* MODAL DE EDIÇÃO */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: linear-gradient(135deg, rgba(30,41,59,0.98) 0%, rgba(15,23,42,0.98) 100%);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 16px;
  padding: 0;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(30px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(59,130,246,0.05);
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header h3 i {
  color: #3b82f6;
}

.modal-header .btn-close {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
}

.modal-header .btn-close:hover {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.4);
  color: #ef4444;
}

.modal-content form {
  padding: 24px;
}

.modal-content .form-group {
  margin-bottom: 18px;
}

.modal-content label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
}

.modal-content input[type="text"],
.modal-content input[type="url"],
.modal-content input[type="number"] {
  width: 100%;
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s;
}

.modal-content input:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(59,130,246,0.05);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.modal-content input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #3b82f6;
}

