body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 0;
}

.top-bar {
  padding: 20px;
  text-align: center;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#search {
  padding: 10px;
  width: 200px;
  font-size: 16px;
}

button {
  padding: 10px 15px;
  margin-left: 10px;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  border: none;
}

#cardContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  gap: 20px;
}

.card {
  background: white;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  max-width: 250px;
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.card h3 {
  margin: 10px;
}

.card p {
  margin: 0 10px 10px;
}

.card:hover {
  transform: scale(1.03);
}

.grid-view .card {
  width: 250px;
}

.list-view {
  flex-direction: column;
  align-items: center;
}

.list-view .card {
  width: 90%;
  display: flex;
  align-items: center;
}

.list-view .card img {
  width: 150px;
  height: 100px;
  margin-right: 20px;
}


/*scripts*/
.scripts-card {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sql-block {
  background: #f8f9fa;
  border-left: 4px solid #007bff;
  padding: 15px;
  margin: 15px 0;
  position: relative;
  border-radius: 5px;
}

.sql-block h4 {
  margin-top: 0;
  font-size: 16px;
}

.sql-block pre {
  background: #272822;
  color: #f8f8f2;
  padding: 10px;
  overflow-x: auto;
  border-radius: 4px;
  font-family: Consolas, monospace;
  font-size: 14px;
}

.sql-block button {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  background-color: #28a745;
  color: white;
  border: none;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
}

.sql-block button:hover {
  background-color: #218838;
}
/* Top bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

#search {
  padding: 8px 12px;
  width: 50%;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.btn-voltar {
  background-color: #6c757d;
  color: #fff;
  padding: 8px 14px;
  text-decoration: none;
  border-radius: 4px;
}

.btn-voltar:hover {
  background-color: #5a6268;
}

/* Script container */
.scripts-card {
  max-width: 900px;
  margin: 30px auto;
  background: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* SQL card */
.sql-card {
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
}

.sql-header {
  padding: 15px 20px;
  font-weight: bold;
  background-color: #e9ecef;
}

.sql-content {
  display: none;
  padding: 15px 20px;
  border-top: 1px solid #ddd;
  background-color: #fff;
  position: relative;
}

.sql-card.open .sql-content {
  display: block;
}

.sql-content pre {
  background-color: #272822;
  color: #f8f8f2;
  padding: 12px;
  border-radius: 4px;
  font-family: Consolas, monospace;
  font-size: 14px;
  overflow-x: auto;
  margin: 0;
}

.sql-content button {
  position: absolute;
  top: 15px;
  right: 20px;
  background-color: #28a745;
  color: #fff;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.sql-content button:hover {
  background-color: #218838;
}
