.rglu-bar {
  background-color: #f5f5f5;
  padding: 15px 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 20px 0;
  position: relative;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.rglu-update-item {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.rglu-date {
  font-weight: bold;
  color: #555;
  margin-right: 15px;
  flex-shrink: 0;
}

.rglu-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #333;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.rglu-text:hover {
  background-color: #f0f8ff;
  border-radius: 3px;
}

/* Tooltip for hover */
.rglu-text::after {
  content: attr(data-full-text);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  white-space: normal;
  word-wrap: break-word;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 400px;
}

.rglu-text:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px);
}

/* Expanded state */
.rglu-text.expanded {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  background-color: #f9f9f9;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}

/* Expand indicator */
.rglu-text.has-more::before {
  content: "▶";
  font-size: 10px;
  margin-right: 5px;
  color: #007cba;
  transition: transform 0.3s ease;
}

.rglu-text.expanded.has-more::before {
  transform: rotate(90deg);
}

.rglu-navigation {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
  margin-left: 15px;
}

.rglu-nav-btn {
  background: #007cba;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 14px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.rglu-nav-btn:hover:not(.disabled) {
  background: #005a87;
}

.rglu-nav-btn.disabled {
  background: #ccc;
  cursor: not-allowed;
  color: #999;
}

.rglu-nav-btn:focus {
  outline: 2px solid #0073aa;
  outline-offset: 2px;
}

/* Responsive design */
@media (max-width: 768px) {
  .rglu-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .rglu-update-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .rglu-date {
    margin-right: 0;
  }

  .rglu-text {
    white-space: normal;
    word-wrap: break-word;
    cursor: default;
  }

  .rglu-text::after {
    display: none;
  }

  .rglu-text::before {
    display: none;
  }

  .rglu-navigation {
    justify-content: center;
    margin-left: 0;
  }
}
