/* BASE GLOBAL */
body {
  background-color: #0f1115;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  padding-top: 65px;
}
.card {
  background-color: #1c1f26;
  border: none;
  border-radius: 10px;
  max-width: 1050px;
  margin: 40px auto;
  padding: 30px;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
}
.form-control {
  background-color: #f5f5f5;
  color: #111;
  border-radius: 8px;
}
.btn-success {
  font-weight: bold;
  font-size: 1rem;
}
h4, h5 {
  color: #f1f1f1;
}
.log-box {
  background-color: #000;
  color: #d3d3d3;
  padding: 14px;
  border-left: 4px solid #2ecc71;
  margin-bottom: 16px;
  border-radius: 6px;
  font-size: 0.92rem;
  white-space: pre-wrap;
}
.log-header {
  color: #58d68d;
  font-weight: bold;
}
.icon-title {
  font-size: 1.3rem;
  margin-right: 8px;
}

/* TABELAS E CHECKBOXES */
table.table-dark td,
table.table-dark th {
  vertical-align: middle;
  text-align: center;
}
.form-check {
  display: flex;
  justify-content: center;
  align-items: center;
}
.form-check-input:checked {
  background-color: #28a745;
  border-color: #28a745;
}

/* TOPO DE PROGRESSO */
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  color: #fff;
  font-size: 1.2rem;
}
.header-left,
.header-center,
.header-right {
  flex: 1;
  text-align: center;
  font-weight: bold;
}
.atualizacao-info {
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
  margin-top: -10px;
  margin-bottom: 10px;
}
.mensagem-surpresa {
  text-align: center;
  font-size: 1.3rem;
  color: #00ffcc;
  font-weight: bold;
  margin-bottom: 20px;
  display: none;
}
.btn-limpar {
  margin: 5px 5px;
}

/* DOCKER CLEANUP / RESULTADOS */
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.btns button {
  flex: 1;
  min-width: 150px;
  font-weight: 600;
}
.log-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: .95rem;
  color: #ddd;
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #555;
  border-top-color: #00c4cc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
form.execute-form {
  margin-top: 12px;
}

/* GERENCIAR SERVIDORES */
.bloco-comando {
  max-width: 900px;
  margin: 40px auto;
  background: #1c1f26;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
}
.mensagem {
  background: #0a53be;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
}
.form-servidor {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}
.form-servidor input {
  flex: 1;
  min-width: 250px;
  background: #333;
  border: none;
  border-radius: 6px;
  padding: 10px;
  color: white;
}
.form-servidor button {
  flex: 1;
  min-width: 180px;
  background: #0d6efd;
  border: none;
  border-radius: 6px;
  padding: 10px;
  color: white;
  cursor: pointer;
  font-weight: bold;
}
.tabela-servidores {
  width: 100%;
  border-collapse: collapse;
}
.tabela-servidores th, .tabela-servidores td {
  padding: 12px;
}
.tabela-servidores th {
  background: #222;
}
.tabela-servidores tr {
  border-bottom: 1px solid #333;
}
.btn-excluir {
  background: #dc3545;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

/* LOGIN */
body.login-body {
  margin: 0;
  padding: 0;
  background: #111;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  color: #fff;
}
.login-box {
  background: #1e1e1e;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
}
.login-box h2 {
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
}
.login-box input {
  width: 100%;
  padding: 14px;
  margin-bottom: 16px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  background: #222;
  color: white;
}
.btn-login {
  width: 100%;
  padding: 14px;
  background: #0d6efd;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
}
.btn-login:hover {
  background: #0a58ca;
}
.erro {
  background: #c62828;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
}

/* BOTÕES CUSTOMIZADOS */
.btn-custom {
  font-weight: bold;
  font-size: 1rem;
  border-radius: 8px;
  padding: 12px 18px;
  transition: background 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-clone {
  background-color: #28a745;
  color: white;
  border: none;
}
.btn-clone:hover {
  background-color: #218838;
  transform: scale(1.03);
}

.btn-historico {
  background-color: #6c757d;
  color: white;
  border: none;
}
.btn-historico:hover {
  background-color: #5a6268;
  transform: scale(1.03);
}

.btn-apagar {
  background-color: #dc3545;
  color: white;
  border: none;
}
.btn-apagar:hover {
  background-color: #c82333;
  transform: scale(1.03);
}
