/* ===== RCON TOOL UI COMPONENTS ===== */
.card {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  border: 1.5px solid var(--border);
  margin-bottom: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-header {
  background: none;
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 1.5rem 1rem 1.5rem;
}
.card-title {
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 600;
  margin: 0;
}
.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form-control {
  background-color: #2d2d2d;
  color: #e0e0e0;
  border: 1px solid #4dabf7;
  border-radius: 5px;
  padding: 10px;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 0.8rem;
  transition: border-color 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: #4dabf7;
  box-shadow: 0 0 6px #4dabf7;
}

/* ===== RCON TOOL STYLES ===== */
.rcon-main {
  max-width: none !important;
  width: 100% !important;
}
#rconTool {
  display: flex !important;
  gap: 24px !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}
#rconTool .card {
  flex: 0 0 400px !important;
  max-width: 400px !important;
}
#rconTool .card:nth-child(2) {
  flex: 1 1 auto !important;
  max-width: none !important;
  min-width: 0 !important;
}
.profile-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.profile-controls select,
.profile-controls button {
  height: 2.4rem;
  font-size: 1rem;
  padding: 0 1.1rem;
  min-width: 170px;
  border-radius: 6px;
  margin: 0;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.profile-controls button.btn-danger {
  background-color: #ef4444 !important;
  color: #fff !important;
}
.profile-controls button.btn-danger:hover, .profile-controls button.btn-danger:focus {
  background-color: #dc2626 !important;
  color: #fff !important;
}
.profile-controls button.btn-primary {
  background-color: #2563eb !important;
  color: #fff !important;
}
.profile-controls button.btn-primary:hover, .profile-controls button.btn-primary:focus {
  background-color: #1d4ed8 !important;
  color: #fff !important;
}
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
  user-select: none;
  margin: 0;
}
.checkbox-label input[type="checkbox"] {
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.console-controls {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.control-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.control-group input[type="text"] {
  flex: 1;
  min-width: 200px;
}
.control-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
}
.control-group label input[type="checkbox"] {
  margin: 0;
}
.command-section {
  margin-top: 1rem;
}
.command-section .form-label {
  display: block;
  margin-bottom: 0.5rem;
}
.command-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.command-input-group .form-control {
  flex: 1;
  margin: 0;
}
.command-input-group button {
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}
#toggleControls {
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.2s ease;
}
#toggleControls:hover {
  background: var(--primary);
  color: white;
}
.console-output {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  height: 600px;
  width: 100%;
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-bottom: 1rem;
}
.status-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  background-color: #6c757d;
  transition: background-color 0.3s ease;
}
.status-indicator.connected {
  background-color: #28a745;
}
.status-indicator.connecting {
  background-color: #ffc107;
  animation: pulse 1.5s infinite;
}
.status-indicator.disconnected {
  background-color: #dc3545;
}
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}
.console-line {
  margin-bottom: 2px;
  word-wrap: break-word;
  white-space: pre-wrap;
  padding: 1px 0;
}
.console-line:last-child {
  margin-bottom: 0;
}
.console-error {
  color: var(--error);
}
.console-success {
  color: var(--success);
}
.console-command {
  color: var(--secondary);
  font-weight: 500;
}
.console-response {
  color: var(--primary);
}
.console-info {
  color: var(--text-primary);
}
.btn-group {
  display: flex;
  gap: 1rem;
  margin-top: 1.2rem;
}
.btn-group button {
  flex: 1 1 0;
  min-width: 110px;
  margin: 0;
  height: 2.4rem;
  font-size: 1rem;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.form-group {
  margin-bottom: 1rem;
}
.btn-danger {
  background-color: #ef4444 !important;
  color: #fff !important;
}
.btn-danger:hover, .btn-danger:focus {
  background-color: #dc2626 !important;
  color: #fff !important;
}
@media (max-width: 768px) {
  .console-controls {
    padding: 12px;
  }
  .control-group {
    flex-direction: column;
    align-items: stretch;
  }
  .control-group input[type="text"] {
    min-width: auto;
  }
  .command-section {
    flex-direction: column;
    align-items: stretch;
  }
  .command-section button {
    align-self: flex-start;
  }
  .profile-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .profile-controls select {
    min-width: auto;
  }
} 