body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    display: flex;
    height: 100vh;
    overflow: hidden; /* Prevent page scroll issues with sidebar */
}

/* Top Navigation */
header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
}

header a {
    text-decoration: none;
    color: #000;
    font-size: 13px;
}

header a:hover { text-decoration: underline; }

.profile-icon {
    background-color: #673ab7;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.logo {
    width: 272px;
    margin-bottom: 25px;
}

.search-container {
    width: 100%;
    max-width: 584px;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    display: flex;
    align-items: center;
    padding: 5px 15px;
    margin-bottom: 25px;
}

.search-container:hover {
    box-shadow: 0 1px 6px rgba(32,33,36,.28);
    border-color: rgba(223,225,229,0);
}

.search-container input {
    border: none;
    outline: none;
    height: 42px;
    flex-grow: 1;
    font-size: 16px;
    padding-left: 10px;
}

.search-buttons input {
    background-color: #f8f9fa;
    border: 1px solid #f8f9fa;
    border-radius: 4px;
    color: #3c4043;
    font-size: 14px;
    margin: 11px 4px;
    padding: 0 16px;
    line-height: 36px;
    min-width: 54px;
    cursor: pointer;
}

.search-buttons input:hover {
    border: 1px solid #dadce0;
    color: #202124;
}

.language-offer {
    font-size: 13px;
    margin-top: 15px;
}

.language-offer a {
    color: #1a0dab;
    text-decoration: none;
}

/* Footer */
footer {
    background-color: #f2f2f2;
    color: #70757a;
    font-size: 14px;
}

.footer-top {
    padding: 15px 30px;
    border-bottom: 1px solid #dadce0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 15px 30px;
    flex-wrap: wrap;
}

.footer-bottom div a {
    text-decoration: none;
    color: #70757a;
    margin-right: 25px;
}

.footer-bottom div a:hover { 
    text-decoration: underline; 
}

/* Base style for the selectable button */
.search-button-selectable {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #f1f3f4; /* Default gray */
    border: 1px solid #dadce0;
    /* Top-left: 4px, Top-right: 20px, Bottom-right: 20px, Bottom-left: 4px */
    border-radius: 20px 20px 20px 20px; 
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #3c4043;
    transition: all 0.2s ease;
    margin-right: 10px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.search-button-selectable:hover {
    background-color: #e8eaed;
}

/* The "Selected" State */
.search-button-selectable.active {
    background-color: #f3e8ff; /* Light purple background */
    border-color: #9333ea;     /* Purple border */
    color: #7e22ce;            /* Purple text */
}

.check-icon {
    display: inline-block; /* Changed from 'none' to allow for width transitions */
    width: 0;
    overflow: hidden;
    transition: width 0.2s ease, margin-right 0.2s ease;
    vertical-align: middle;
}

.search-button-selectable.active .check-icon {
    width: 15px; /* The checkmark "slides" out */
    margin-right: 5px;
}


.chip-carousel {
  display: flex;
  align-items: center;
  position: relative;
  max-width: 600px; /* Adjust to fit your layout */
  padding: 10px;
}

.chip-viewport {
  display: flex;
  gap: 12px;
  overflow-x: hidden; /* Hide the scrollbar */
  scroll-behavior: smooth; /* Make the slide look nice */
  white-space: nowrap;
  padding: 0 10px;
}

.nav-btn {
  border: none;
  border-radius: 50%;
  color: white;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
.chip-viewport button {
    animation: fadeIn 0.3s ease forwards;
}