/* Shapes Grid */
.shapes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 0 16px;
  padding: 0;
  height: auto;
  flex-grow: 1;
}

.module-box {
  display: flex;
  flex-direction: column;
  height: 266px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.module-box:nth-child(1) {
  background: #a3c7b5;
}

.module-box:nth-child(2) {
  background: #a3a3c7;
}

.module-box:nth-child(3) {
  background: #c7b5a3;
}

.module-box:nth-child(4) {
  background: #c7a3a3;
}

.module-box:nth-child(5) {
  background: #c7c4a3;
}

.module-box:hover {
  transform: none;
  box-shadow: none;
}

.title-bar {
  background-color: #454554;
  color: white;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px 6px 0 0;
  margin-bottom: 11px;
}

.glued-list {
  flex: 1;
  margin: 0;
  padding: 12px;
  padding-top: 1px;
  list-style: none;
  overflow-y: auto;
  pointer-events: none;
}

.glued-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border-bottom: none;
  margin: 7px 0;
  min-height: 19px;
  pointer-events: none;
}

.glued-favicon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 16px;
  display: block;
  visibility: visible;
  pointer-events: none;
}

.glued-favicon[style*="display: none"] + .glued-url {
  margin-left: 19px;
}

.glued-url {
  color: white;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  cursor: default;
}

.site-divider {
  display: none;
}

/* Dots Menu */
.dots-menu {
  position: absolute;
  top: 5px;
  right: 10px;
  width: 19px;
  height: 19px;
  display: none;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  z-index: 2;
  padding: 3px;
  pointer-events: auto;
}

.dots-menu span {
  width: 3px;
  height: 3px;
  background-color: white;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.module-box:hover .dots-menu {
  display: flex;
}

.dots-menu:hover span {
  background-color: #ffe725;
}

.dots-menu-popup {
  position: fixed;
  background: #ffcf25;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1000;
  min-width: 96px;
  padding: 0;
}

.dots-menu-popup.active {
  display: block;
}

.dots-menu-item {
  padding: 6px 12px;
  color: #90773c;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 11px;
  white-space: nowrap;
  font-weight: 500;
  background: none;
  border: none;
}

.dots-menu-item:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #454554;
}

/* Add Glubler Box */
.add-glubler-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 222, 36, 0.1) !important;
  border: 2px dashed #ffe725;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 266px;
  border-radius: 6px;
}

.add-glubler-box:hover {
  background: rgba(245, 222, 36, 0.2) !important;
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.add-glubler-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.add-glubler-icon {
  font-size: 38px;
  font-weight: 300;
  color: #ffe725;
  margin-bottom: 8px;
}

.add-glubler-text {
  color: #666;
  font-weight: 500;
  font-size: 13px;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px;
  background: #f9f9f9;
  border-radius: 6px;
  color: #666;
  font-size: 13px;
}

.empty-state h3 {
  margin-bottom: 8px;
  color: #454554;
  font-size: 16px;
}

/* Add Button */
.add-button {
  position: fixed;
  bottom: 16px;
  right: 336px;
  width: 36px;
  height: 36px;
  background-color: #ffcf25;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 1000;
  opacity: 1;
  visibility: visible;
  transition: right 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.add-button::before,
.add-button::after {
  content: "";
  position: absolute;
  width: 17.5px;
  height: 2.3px;
  background-color: white;
  border-radius: 2px;
}

.add-button::before {
  transform: rotate(90deg);
}

.add-button::after {
  transform: rotate(0deg);
}

.add-button.slide-left {
  right: 336px;
}

.add-button.slide-right {
  right: 137px;
}

.profile-sidebar.collapsed ~ .add-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
