/* General HTML and Body Styling */
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html, body {
  position: relative;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

.container, .rz-container {
    /*max-width: 100% !important;*/
    width: 100% !important;
    padding-left: 0;
    padding-right: 0;
}

/* Focus Styling */
.btn:focus, 
.btn:active:focus, 
.btn-link.nav-link:focus, 
.form-control:focus, 
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Navbar */
.navbar-brand {
  font-weight: bold;
}

/* Headings */
h1, h3 {
  margin-top: 20px;
}

/* Card Styling */
.card {
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s ease-in-out;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-size: 1.1rem;
}

.card img {
  height: 200px;
  object-fit: cover; 
}

.btn-outline-primary {
  font-size: 0.9rem;
}

ul.list-unstyled li {
  font-size: 0.9rem;
}

.rz-header {
    width: 100vw !important;
}


/* Buttons */
.btn-outline-danger {
  font-size: 1.5rem;
}

/* Placeholder Styling */
.longer-placeholder {
  padding-left: 20px;
  padding-right: 20px;
  font-size: 1.4rem;
  height: 60px;
  border: 2px solid #ccc;
  border-radius: 8px;
}

.longer-placeholder::placeholder {
  color: #ccc;
  font-size: 1.2rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .longer-placeholder {
    font-size: 1.2rem;
    height: 50px;
  }

  .longer-placeholder::placeholder {
    font-size: 1rem;
  }
}

/* Input Placeholder */
input::placeholder {
  color: #888;
  font-size: 0.9rem;
}

/* Footer Styling */
footer p {
  margin: 0;
}

/* Hover Effects */
.nav-link.text-dark:hover {
  color: #000;
  text-decoration: underline;
}

/* Input Group for Icon Alignment */
.input-group .btn {
  height: 100%;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* Modal Dialogs */
.modal-sm {
  max-width: 400px;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Color Label Styling */
.color-label {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  width: 90px; /* Increased width for better appearance */
  transition: all 0.3s ease-in-out;
}

.color-label input {
  display: none;
}

.color-label input:checked ~ .color-content {
  border: 2px solid #258cfb;
}

.color-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
}

.color-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: 5px;
  transition: transform 0.3s ease-in-out;
}

.color-circle:hover {
  transform: scale(1.1);
}

.color-name {
  font-size: 0.9rem;
  color: #333;
}

.text-muted {
  font-size: 0.8rem;
  color: #888;
}



/* Scrollable Sidebar */
.page-container {
  display: flex;
  align-items: flex-start;
}

.filter-sidebar {
  position: sticky;
  top: 0;
  height: calc(100vh - 20px); 
  overflow-y: auto;
  width: 400px; 
  padding-right: 15px;
}

.filter-sidebar::-webkit-scrollbar {
  width: 8px;
}

.filter-sidebar::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
}

.main-content {
  flex-grow: 1; 
  padding-left: 20px; 
}

/* Adjust layout for smaller screens */
@media (max-width: 768px) {
  .page-container {
      flex-direction: column;
  }

  .filter-sidebar {
      position: relative;
      width: 100%;
      height: auto;
      overflow: visible;
      margin-bottom: 20px;
  }

  .main-content {
      padding-left: 0;
  }
}



/* CarDetails Page Styling */
.main-image {
  border-radius: 10px;
  width: 100%;
  height: auto;
}

.thumbnail-image {
  cursor: pointer;
  border-radius: 10px;
  width: 100px;
  transition: opacity 0.3s ease-in-out;
}

.thumbnail-image:hover {
  opacity: 0.8;
}

.price-box {
  background-color: #e9ecef;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.price-box h2 {
  color: #0d6efd;
  font-weight: bold;
}

.feature-list li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #555;
}


@media (max-width: 768px) {
  .main-image {
      height: auto;
  }
  
  .thumbnail-image {
      width: 70px;
  }

  .price-box h2 {
      font-size: 1.5rem;
  }
}
