body {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  background-color: #f4f4f4 !important;
  font-family: Arial, sans-serif;
}
.coords {
  font-size: 12px;
}

.gradient-custom-strong {
  /* fallback for old browsers */
  background: #d3e1e8;
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.26);
  border: 1px solid #b1b1b1 !important;
}

.layout-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100vh;
}

.sidebar {
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  overflow-y: scroll;
  max-width: 300px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
  border-radius: 10px;
  padding: 20px;
}

.sidebar::-webkit-scrollbar-track {
  background: #d3e1e8;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #6e686866; /* cor do scroll */
  border-radius: 10px;
  border: none;
}

.config {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.config label {
  margin-right: 0.3em;
}

.config input {
  margin-right: 0.3em;
  flex: 1;
  min-width: 40px;
}

#figureSelect,
#lineAlgorithm,
#circleAlgorithm,
#transformeSelect {
  appearance: none;
  background-color: #f8f9fa;
  border-radius: 15px;
  padding: 4px 4px;
  margin-bottom: 5px;
  width: 100%;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  padding-left: 10px;
}

#figureSelect:hover,
#lineAlgorithm:hover,
#circleAlgorithm:hover,
#transformeSelect:hover {
  background-color: #3358794a !important;
  border: 1px solid #ffffff !important;
  color: white !important;
  font-weight: 600;
}

#figureSelect:focus,
#lineAlgorithm:focus,
#circleAlgorithm:focus,
#transformeSelect:focus {
  background-color: #ffffff !important;
  border: 1px solid #ffffff !important;
  color: rgb(27, 46, 69) !important;
  font-weight: 600;
}

#figureSelect option,
#lineAlgorithm option,
#circleAlgorithm option,
#transformeSelect option {
  background-color: #3358794a !important;
  border: 1px solid #ffffff !important;
  color: white !important;
  font-weight: 600;
}

#figureSelect {
  border: 1px solid #ccc !important;
}
input {
  padding: 5px 10px;

  margin: 5px 0;
  border: 1px solid #ccc !important;
  border-radius: 15px !important;
  font-size: 13px !important;
}

/* Para navegadores WebKit (Chrome, Safari, Edge) */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Para Firefox */
input[type="number"] {
  appearance: textfield;
}

button {
  width: 100%;
  padding: 4px;
  margin-top: 10px !important;
  border: 1px solid #ccc !important;
  border-radius: 20px !important;
  background-color: #ffffff !important;
  color: rgb(0, 0, 0) !important;
  cursor: pointer;
  transition: 0.3s;
  font-size: 14px !important;
}

button:hover {
  background-color: #3358794a !important;
  border: 1px solid #ffffff !important;
  color: white !important;
}

.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  flex-direction: column;
}

.transformer-header {
  flex-shrink: 0;
  width: 220px;
  color: rgb(0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  padding: 20px;
}

canvas {
  border: 1px solid #ccc;
  max-width: 100%;
  height: auto;
}

#iterationLog {
  max-width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  max-width: 800px;
  border-collapse: collapse;
  margin-top: 10px;
}

th,
td {
  border: 1px solid #97a0a4 !important;
  padding: 8px;
  text-align: center;
}

th {
  background-color: #d3e1e8;
  border: 1px solid #97a0a4 !important;
}

/* Responsividade */
@media (min-width: 768px) {
  body {
    flex-direction: row;
  }

  .sidebar {
    width: 280px;
  }

  .main-content {
    width: calc(100% - 280px);
  }
}

#btn-3d {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #0d6efd;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 16px;
  font-weight: bold;
  z-index: 1000;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

#btn-3d:hover {
  background-color: #084298;
}

/* Adicione isto na seção de estilos existente */
#figuraInfo3D {
  font-size: 0.8rem;
}

#figuraInfo3D p {
  margin-bottom: 0.3rem;
}

.vertex-info {
  color: #0d6efd;
  font-weight: bold;
}

.edge-info {
  color: #dc3545;
  font-weight: bold;
}

#worldWindow {
  border: 1px solid #ccc;
  background-color: white;
  margin-top: 10px;
}

.panel {
  margin: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
}

[type="range"] {
  appearance: none;
  display: block;
  background-color: rgb(255, 255, 255);
  border-radius: 10px;
  padding: 4px;
  outline: none;
  border: none;
}

[type="range"]::-webkit-slider-thumb {
  appearance: none;
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 50px;
  background: #d3e1e8;
  border: 1px solid #b1b1b1 !important;
}
