.blog-selector {
  max-width: 100%;
  margin: 0 auto 20px;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: #f9fafb;
  color: #333;
}

.blog-selector-flex {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-selector-input-group {
  flex-grow: 1;
}

.blog-selector-label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.blog-selector-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: #efefef;
  color: #333;
}

.blog-selector-button {
  padding: 8px 16px;
  background: #4285f4;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  height: 36px;
  align-self: flex-end;
  width: 150px;
}

#table-outer table {
  width: 100%;
  margin: 0;
  padding: 0;
}

#table-outer input,
#table-outer select {
  padding: 4px;
  font: inherit;
  background: #efefef;
  width: 100%;
  box-sizing: border-box;
  border: none;
  color: inherit;
  border: 1px solid #eaeaea;
  transition: all 0.6s;
}

#table-outer select {
  cursor: pointer;
  outline: none;
}

#table-outer input:focus {
  outline: none;
  background: #fff;
  border-color: #dadada;
}

#resultDesc {
  margin-bottom: 10px;
}

#feedContainer {
  overflow: hidden;
  margin-top: 20px;
}

#feedContainer strong {
  font-size: 10px;
}

#feedContainer,
#feedContainer li {
  padding: 0;
  margin: 0;
  list-style: none;
}

#feedContainer li {
  float: left;
  width: 50%;
  margin-bottom: 5px;
  position: relative;
  z-index: 0;
}

#feedContainer .inner {
  display: block;
  height: 150px;
  padding: 10px;
  margin: 5px 5px 0 5px;
  position: relative;
  background-color: #f9fafb;
  box-shadow: 0 0 0 1px inherit;
  opacity: 0.9;
  transition: all 0.6s;
  overflow: hidden;
}

#feedContainer .inner:hover {
  opacity: 1;
  box-shadow: 0 0 0 1px #dadada;
}

#feedContainer img {
  float: left;
  margin: 0 8px 0 0;
  max-width: 100%;
  padding: 1px;
  background: #ddd;
}

#feedContainer .toc-title {
  max-height: 33px;
  overflow: hidden;
  font-weight: 400;
}

#feedContainer .news-text {
  font-size: 0.8em;
  color: inherit;
  display: block;
}

#feedNav a,
#feedNav span {
  display: block;
  text-align: center;
  color: #ddd;
  background-color: #444;
  padding: 5px 0;
  width: 100%;
  margin: 0 auto;
  margin-top: 10px;
  transition: all 0.3s linear;
}

#feedNav a:hover,
#feedNav span:hover {
  background-color: #444;
  transition: all 0.3s linear;
}

#feedContainer .date {
  display: block;
  position: absolute;
  bottom: 9px;
  left: 16px;
  background-color: white;
  color: inherit;
  font-size: 0.8em;
  width: 150px;
}

#feedContainer .date .dd {
  font-size: 1em;
  line-height: 5px;
  font-weight: bold;
}

#feedContainer .date span {
  display: inline-block;
  line-height: 5px;
  text-align: center;
  margin-left: 5px;
}

.error-message {
  color: #d32f2f;
  padding: 10px;
  background: #ffebee;
  border-radius: 4px;
  margin: 10px 0;
  text-align: center;
}

.error-message button {
  background: #d32f2f;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  margin-left: 10px;
}

/* Responsive */
@media (min-width: 601px) and (max-width: 900px) {
  #feedContainer li {
    width: 100%;
  }
  .inner strong.optional-info{display: none !important;}
}

@media (max-width: 600px) {
  #feedContainer li {
    width: 100%;
  }
  .inner strong.optional-info{display: none !important;}
}

/* Dark mode */
[data-mode="dark"] .blog-selector {
  background: #1e293b; /* Dark grayish background */
  color: #e5e7eb; /* Light text */
}

[data-mode="dark"] .blog-selector-input {
  background: #334155; /* Darker input */
  color: #e5e7eb;
  border: 1px solid #475569;
}

[data-mode="dark"] .blog-selector-input::placeholder {
  color: #94a3b8;
}

[data-mode="dark"] .blog-selector-button {
  background: #3b82f6; /* Slightly brighter blue */
  color: #fff;
}

[data-mode="dark"] #feedContainer .inner {
  background-color: #27303d;
}

[data-mode="dark"] #feedContainer .inner:hover {
  opacity: 1;
  box-shadow: 0 0 0 1px #444;
}

[data-mode="dark"] #table-outer input,
[data-mode="dark"] #table-outer select {
  background: #334155;
  border: 1px solid #475569;
  color: #e5e7eb;
}

[data-mode="dark"] #table-outer input:focus {
  background: #1e293b;
  border-color: #475569;
}
