window,
window overlay,
window overlay>box {
  background-color: #1e1e1e;
  color: #ffffff;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 13px;
}

* {
  outline: none;
  outline-width: 0;
  outline-color: transparent;
}

button,
entry,
list,
listbox,
row,
listbox row,
list > row,
listview > row,
row:focus,
row:focus-visible,
row:focus-within,
row:selected,
row:active,
listbox row:focus,
listbox row:focus-visible,
listbox row:focus-within,
listbox row:selected,
listbox row:active,
list > row:focus,
list > row:focus-visible,
list > row:selected {
  outline: none;
  outline-width: 0;
  outline-style: none;
  outline-color: transparent;
  box-shadow: none;
}

.header-area {
  background-color: #1C1C1D;
  padding: 16px 16px 4px 16px;
}

.title-row {
  margin-bottom: 6px;
}

.app-brand {
  min-height: 28px;
}

.app-logo {
  margin-right: 2px;
}

.app-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #ffffff;
}

.tab-row {
  margin-bottom: 4px;
}

entry {
  background-color: #1a1a1e;
  color: #ffffff;
  border: 1px solid #3e3e42;
  border-radius: 6px;
  padding: 0px 8px;
  margin-top: 2px;
  transition: all 0.2s;
}

entry:focus {
  border-color: #4cc2ff;
}

entry image.left {
  color: #999999;
  margin-right: 6px;
}

.tab-group {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #3e3e42;
  border-radius: 0;
}

button.tab {
  background-color: transparent;
  color: #cccccc;
  border: none;
  border-radius: 0;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  min-height: 28px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

button.tab.tab-first {
  margin-right: 0;
  border-radius: 0;
}

button.tab.tab-last {
  margin-left: 0;
  border-radius: 0;
  border-left: none;
}

button.tab:checked {
  background-color: transparent;
  color: #ffffff;
  font-weight: 600;
  border-bottom-color: #1d7cf2;
}

button.tab:hover:not(:checked) {
  background-color: rgba(255, 255, 255, 0.03);
}

button.header-btn {
  background: none;
  border: none;
  border-radius: 6px;
  color: #999999;
  padding: 4px;
  min-width: 30px;
  min-height: 30px;
  margin-left: 2px;
  transition: all 0.15s ease;
}

button.header-btn:hover {
  background-color: #3e3e42;
  color: #ffffff;
}

button.header-btn:checked {
  background-color: #3e3e42;
  color: #ffffff;
}

scrolledwindow,
scrolledwindow viewport,
scrolledwindow list,
viewport,
viewport list,
list,
stack,
stackpage,
.content-scroll,
.content-scroll viewport,
.content-scroll list,
.empty-state {
  background-color: #1e1e1e;
}

row,
listbox row,
list > row {
  background-color: transparent;
  background: transparent;
  border: none;
  border-color: transparent;
  outline: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

.clipboard-item {
  background-color: #2d2d30;
  border: 1px solid #3e3e42;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 4px 12px;
  transition: all 0.1s;
}

.empty-state .title-2 {
  font-weight: 600;
  color: #e5e5e5;
  margin-top: 8px;
}

.clipboard-item:hover,
.clipboard-item.active,
listbox row.active .clipboard-item,
row.active .clipboard-item,
listbox row:focus .clipboard-item,
listbox row:focus-within .clipboard-item {
  border-color: #4cc2ff;
  background-color: #38383c;
}

.clipboard-item-text {
  color: #d4d4d8;
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.clipboard-item-name {
  color: #e5e5e5;
  font-weight: 600;
  margin-bottom: 4px;
}

.clipboard-item:hover .clipboard-item-name,
.clipboard-item.active .clipboard-item-name,
listbox row.active .clipboard-item-name,
row.active .clipboard-item-name,
listbox row:focus .clipboard-item-name,
listbox row:focus-within .clipboard-item-name {
  color: #4cc2ff;
}

.clipboard-item-meta {
  color: #999999;
  font-size: 10px;
  margin-top: 4px;
}

.content-image {
  border-radius: 4px;
  margin-bottom: 4px;
}

.actions {
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
}

listbox row:hover .actions,
.clipboard-item:hover .actions,
.clipboard-item.active .actions,
listbox row.active .actions,
row.active .actions,
listbox row:focus .actions,
listbox row:focus-within .actions {
  opacity: 1;
}

button.icon-btn {
  background-color: #2d2d30;
  border: 1px solid #3e3e42;
  border-radius: 4px;
  color: #cccccc;
  padding: 0;
  min-width: 22px;
  min-height: 22px;
  margin-left: 4px;
  transition: all 0.15s;
}

button.icon-btn:hover {
  color: #ffffff;
  border-color: transparent;
}

button.icon-btn.copy:hover {
  background-color: #1971c2;
}

button.icon-btn.fav:hover {
  background-color: #f08c00;
}

button.icon-btn.delete:hover {
  background-color: #e03131;
}

button.icon-btn.edit-name:hover {
  background-color: #4cc2ff;
  color: #ffffff;
}

button.icon-btn.active {
  background-color: #f59e0b;
  border-color: #f59e0b;
  color: #ffffff;
}

.toast {
  background-color: #3e3e42;
  color: #ffffff;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  border: 1px solid #4a4a4f;
}

.toast-success {
  background-color: #2b8a3e;
  border-color: #2b8a3e;
}

.toast-info {
  background-color: #1864ab;
  border-color: #1864ab;
}

.toast-warning {
  background-color: #e67700;
  border-color: #e67700;
}

.toast image {
  color: #ffffff;
}

dialog,
dialog>box {
  background-color: #2d2d30;
  color: #ffffff;
}

dialog button {
  background-color: #2d2d30;
  color: #ffffff;
  border-color: #3e3e42;
}

dialog button:hover {
  background-color: #3e3e42;
}


button.theme-card {
  background-color: #2d2d30;
  border: 1px solid #3e3e42;
  border-radius: 10px;
  padding: 14px 8px;
  min-height: 64px;
  color: #999999;
  transition: all 0.15s ease;
}

button.theme-card:hover {
  background-color: #38383c;
  border-color: #5a5a5f;
  color: #cccccc;
}

button.theme-card.theme-card-active {
  background-color: rgba(29, 124, 242, 0.15);
  border-color: #1d7cf2;
  color: #4cc2ff;
}

.theme-card-label {
  font-size: 12px;
  font-weight: 600;
}

button.settings-restore-btn {
  background-color: #3e3e42;
  border: 1px solid #5a5a5f;
  color: #e5e5e5;
  border-radius: 8px;
  padding: 10px;
  font-weight: 600;
  transition: all 0.15s;
}

button.settings-restore-btn:hover {
  background-color: #3e3e42;
  color: #ffffff;
  border-color: #5a5a5f;
}

button.settings-restore-btn:active {
  background-color: #4a4a4f;
}

/* Dropdown & Combobox Styles - Force consistency */
dropdown, 
dropdown > button {
  background-color: #1C1C1D;
  color: #ffffff;
  border-radius: 6px;
}

dropdown {
  border: 1px solid #3e3e42;
  padding: 0;
}

dropdown > button {
  border: none;
  min-height: 32px;
  padding: 0 8px;
  box-shadow: none;
}

dropdown:hover {
  border-color: #5a5a5f;
}

/* Popover & Dropdown Menu Styles */
popover {
  box-shadow: none;
}

popover > contents {
  border: 1px solid #3e3e42;
  border-radius: 8px;
}

popover listview {
  color: #ffffff;
  margin: 0px;
}

popover row:selected,
popover listview > row:selected {
  background-color: #1d7cf2;
  color: #ffffff;
}

button.shortcut-capture-btn {
  background-color: #2d2d30;
  border: 1px solid #5a5a5f;
  border-radius: 6px;
  color: #e5e5e5;
  padding: 4px 12px;
  min-width: 160px;
  font-family: monospace;
  font-size: 12px;
  transition: all 0.15s ease;
}

button.shortcut-capture-btn:hover {
  background-color: #38383c;
  border-color: #4cc2ff;
}

button.shortcut-capture-btn:focus {
  background-color: rgba(29, 124, 242, 0.15);
  border-color: #1d7cf2;
  color: #4cc2ff;
  outline: none;
}

button.shortcut-clear-btn {
  min-width: 34px;
  min-height: 30px;
}
