body {
  font-family: "Open Sans", sans-serif;
  background-color: #f4f4f4;
  color: #333;
  margin: 0;
  padding: 0;
}

.container {
  display: flex;
  height: 100vh;
}

nav {
  width: 250px;
  background-color: #2a3b47;
  color: #fff;
  padding: 20px;
  box-sizing: border-box;
}

.nav-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
}

.logo .rocket {
  font-size: 18pt;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li {
  padding: 15px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.nav-links li i {
  margin-right: 10px;
}

.nav-links li.active,
.nav-links li:hover {
  background-color: #1d2b36;
}

main {
  flex-grow: 1;
  padding: 20px;
  box-sizing: border-box;
  background-color: #fff;
  overflow-y: scroll;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-card {
  flex: 1;
  min-width: 150px;
  background-color: #f9f9f9;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  text-align: center;
}

.stat-card h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #888;
}

.stat-card p {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.charts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 1rem;
}

.chart-container {
  flex: 1;
  width: 300px;
  height: 400px;
  background-color: #f9f9f9;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}
.errorText {
  display: flex;
  align-items: center;
  justify-content: center;
  svg {
    margin-right: 1rem;
  }
  h5 {
    margin-bottom: 0.5rem;
  }
  p {
    margin: 0;
    margin-bottom: 0.5rem;
  }
  button {
    border: none;
    outline: none;
    color: #5335f5;
    background-color: transparent;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
  }
}

.chart-container h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #888;
}

canvas {
  width: 100%;
  height: 200px;
}

.chart-container {
  position: relative;
  margin: 20px 0;
}

.edit-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
}

.edit-btn:hover {
  background-color: #45a049;
}

.edit-container {
  width: 100%;
}

.table-container {
  margin: 20px 0;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table-container table thead {
  background-color: #f0f0f0;
}

.table-container table th,
.table-container table td {
  padding: 10px 20px;
  text-align: left;
}

.table-container table th {
  font-size: 16px;
}

.table-container table tbody tr {
  border-bottom: 1px solid #f0f0f0;
}

.sql-query-container {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.sql-editor {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  width: 100%;
}

.sql-editor textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  font-size: 16px;
}

.update-btn {
  margin-top: 1rem;
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
}

.update-btn:hover {
  background-color: #45a049;
}

.results-container {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.reload-btn {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
}

.reload-btn:hover {
  background-color: #45a049;
}

.execution-time {
  font-size: 16px;
  color: #888;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
}

.results-table thead {
  background-color: #f0f0f0;
}

.results-table th,
.results-table td {
  padding: 10px 20px;
  text-align: left;
}

.results-table th {
  font-size: 16px;
}

.results-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
}

.code-editor {
  display: grid;

  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 4px;
  margin-bottom: 1rem;
}

.monaco-editor {
  border-radius: 8px;
}
#back-btn {
  background-color: white;
  border: none;
  outline: none;
  font-weight: bold;
  cursor: pointer;
  .back-btn {
    margin-right: 8px;
  }
}

.highlighter-applied * {
  pointer-events: all !important;
}

.driver-popover {
  background-color: black;
  color: white;
  border: 1px solid #5335f5;
  border-radius: 8px;
}

.driver-popover-arrow-side-top {
  border-top-color: #5335f5 !important;
}

.driver-popover-arrow-side-bottom {
  border-bottom-color: #5335f5 !important;
}

.driver-popover-arrow-side-left {
  border-left-color: #5335f5 !important;
}

.driver-popover-arrow-side-right {
  border-right-color: #5335f5 !important;
}

.driver-popover-close-btn:hover {
  color: #5335f5 !important;
}

.driver-popover-next-btn {
  background-color: #e7ecfc !important;
  color: #5335f5 !important;
}

.animated-chart {
  opacity: 0;
  padding-bottom: 2rem;
  transform: translateY(300px);
  transition: opatity 2s ease-out, transform 1s ease-out;
}

.animated-chart.entered {
  opacity: 1;
  transform: translateY(0);
}
