/* Container for the chip buttons */
.floor-chip-container, .floor-block-container  {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0;
  width: 100%;
  overflow: hidden;
}

/* Row for the chip buttons */
.chip-row {
  opacity: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  height: 200px;
  overflow-y: auto;
  align-items: flex-start;
  align-content: flex-start;
  /* optional: space for scrollbar 
  box-shadow : 0 4px 12px rgba(0, 0, 0, 0.1) ;*/
}

.block-row{
  opacity: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  flex-direction: row;
}

/* Individual chip buttons */
.floor-chip-button, .floor-block-button, .fed-floor-chip-button {
  background-color: transparent;
  color: #1976d2;
  border: 1px solid lightgray;
  border-radius: 4px;
  padding: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  word-break: break-word;
  text-align: left;
  /*box-shadow : 0 4px 4px rgba(0, 0, 0, 0.1) ;*/
}

.floor-chip-button:hover, .floor-block-button:hover, .fed-floor-chip-button:hover {
  background-color: #bbdefb;
}

/* Title styling */
.chip-title-main {
  font-weight: 600;
}

/* Subtitle styling */
.chip-title-sub {
  font-size: 12px;
  color: #555;
}

.floor-chip-button img, .fed-floor-chip-button img{
    opacity: 1;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 10px;
}

.chip-row {
  opacity: 1; 
}

@keyframes fadeInChips {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-in-chips {
  animation: fadeInChips 3.5s forwards;
}

@keyframes slideInRight {
  from {
    animation: fadeInChips 3.5s forwards;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 1.0s ease forwards;
}

.slide-out-left {
  animation: slideOutLeft 2.5s ease forwards;
}


.dot {
  font-size: 12px;
  color: #bbb;
  transition: color 0.3s;
}

.dot.active-dot {
  color: #4f5b66;
  font-weight: bold;
}

.floor-chip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  padding: 4px;
  background-color: #f9f9f9;
  color: black;
}

.back-button {
  padding: 0;
  font-size: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: gray;
  text-align: left;
  flex-shrink: 0;
}

.floor-chip-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: 60%; /* Adjust as needed */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  font-size: 14px;
  pointer-events: none; /* prevent overlapping click */
}

.floor-chip-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}

.back-button-placeholder {
  width: 60px; 
}

.floor-block-chip-wrapper {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.floor-block-button.fade-in-block {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.block-row div{
  display: inline-block;
  width: fit-content;
}

.floor-block-button span{
  font-weight: normal;
  font-size: 10px;
}

.floor-chip-button.selected-chip {
  border: 2px solid #1976d2;
  background-color: #e3f2fd;
  font-weight: bold;
}


@media (max-width: 768px) {
  .chip-row {
    max-height: none;
  }
}
