/* Global Styles */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: #655A7C;
  font-family: "Verdana", sans-serif;
  font-size: 14px;
  color: #24364F;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Container for the overall layout */

/* Header Container */
.HeaderContainer {
  background-color: #CEF9F2;
  width: 100%;
  height: 80px;
  position: fixed;
  top: 0;
  left: 0;
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.HeaderContainer h1 {
  color: #352f49;
  margin: 0;
  font-size: 24px;
}

/* Content Section */
.Content {
  color: black;
  position: relative;
  z-index: 1;
  padding-top: 4px;
  margin-top: 4px;
}

.Content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  padding-top: 4px;
}

/* Image Display */
.DisplayImages {
  max-width: 100%;
  height: auto;
  width: 210px;
  float: right;
  padding-right: 10px;
  padding-top: 5px;
}

/* Button Icons */
.ButtonIcons {
  float: left;
  max-width: 100%;
  height: auto;
  width: 40px;
  margin-left: 30px;
  padding: 5px;
  box-shadow: 1.5px 3px 0.75px 0.75px rgba(0, 0, 0, 0.1);
  border-radius: 100px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.ButtonIcons:active {
  background-color: #d1cfd9;
}

/* Query Viewport */
.query-viewport {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  border: 1px solid #ccc;
  box-sizing: border-box;
  z-index: 9999;
  background-color: #655A7C !important;
  padding: 5px;
}

.query-viewport input {
  margin-left: 15px;
}

/* Query Box */
.QueryBox {
  background-color: #655A7C;
  margin-top: 5.5%;
  border-left: 20px solid #655A7C;
  border-right: 20px solid #655A7C;
  border-bottom: 20px solid #655A7C;
  overflow: auto;
  scrollbar-color: #007 #655A7C;
}

.QueryBoxChildren {
  position: relative;
  margin: 15px;
  padding: 10px;
  background-color: #CEF9F2;
  box-shadow: 0px 4px 6px rgba(0, 0.3, 0.3, 0.4);
  border-radius: 12px;
  text-align: left;
  margin-left: 20px;
}
.header-icon {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

.QueryBoxChildren::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

/* Result Table */
.resultTable {
  width: 95%;
  margin-left: 42px;
  font-size: 14px;
  text-align: left;
  border-collapse: collapse;
  margin-right: 0px;
}

.resultTable td {
  padding: 4px;
  margin-bottom: 8px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.resultTable th {
  color: #352f49;
  text-transform: capitalize;
  padding: 4px;
  box-shadow: 0px 4px 6px rgba(0, 0.3, 0.3, 0.4);
  color: #24364F;
}

.resultTable img {
  float: right;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #655A7C;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

/* Toast Message */
.toast-message {
  font-size: 14px;
}

.loan-toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

/* Toast Menu */
.ToastMenu select {
  width: 22%;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin: 5px;
  color: black;
}

.ToastMenu button {
  background-color: #655A7C;
  color: white;
  padding: 10px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  margin-left: 5px;
  margin-top: 10px;
  width: 100px;
}

.ToastMenu button:hover {
  background-color: #534A6C;
}

.ToastMenu {
  background-color: #CEF9F2;
  width: 70%;
  margin-right: auto;
  margin-left: 25%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  padding-left: 1.5%;
  color: #24364F;
  font-weight: bold;
  position: fixed;
  top: 50%;
  z-index: 9999;
  white-space: nowrap;
  max-width: 100%;
}

/* Card Component */
.card {
  background-color: #CEF9F2;
  border-radius: 12px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 300px; /* Set a fixed width for cards */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

/* Buttons inside the Card */
.car-card .car-card-button {
  background-color: #655A7C;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.car-card .car-card-button:hover {
  background-color: #534A6C;
}

/* Images inside the Card */
.car-card img {
  width: 100%;
  height: auto;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

/* Car Card Container */
.car-card-container {
  display: flex;
  flex-wrap: wrap; /* Allows cards to wrap */
  justify-content: center; /* Centers cards horizontally */
  gap: 20px; /* Space between cards */
  padding: 20px; /* Padding around the container */
}

/* Responsive Design */
@media (max-width: 768px) {
  .card-header,
  .card-body,
  .card-footer {
    text-align: center;
  }
}

@media (max-width: 600px) {
  /* Adjust card container */
  .car-card-container {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }
  .header-icon {
    width: 40px;
    height: 40px;
    margin-right: 8px;
    align:
  }

  /* Adjust card size */
  .card {
    width: 100%; /* Full width */
    max-width: 100%;
  }

  /* Adjust header */
  .HeaderContainer {
    height: 60px;
  }

  .HeaderContainer h1 {
    font-size: 20px;
  }

  /* Adjust FAB */
  .fab-container {
    bottom: 20px;
    right: 20px;
  }

  .fab {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
}

/* Adjust #app to account for fixed header */
#app {
  margin-top: 100px; /* Adjust based on your header height */
}
