/* Light mode — Slate palette, soft shadows for depth */

window,
window overlay,
window overlay>box {
  background-color: #F8FAFC;
  color: #1E293B;
}

.header-area {
  background-color: #F1F5F9;
}

.app-title {
  color: #1E293B;
}

entry {
  background-color: #FFFFFF;
  color: #1E293B;
  border-color: #E2E8F0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

entry:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

entry image.left {
  color: #94A3B8;
}

.tab-group {
  border-bottom-color: #E2E8F0;
}

button.tab {
  color: #64748B;
}

button.tab:checked {
  color: #1E293B;
  border-bottom-color: #3B82F6;
}

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

button.header-btn {
  color: #64748B;
}

button.header-btn:hover {
  background-color: #E2E8F0;
  color: #1E293B;
}

button.header-btn:checked {
  background-color: #E2E8F0;
  color: #1E293B;
}

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

* {
  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;
}

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: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.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: #3B82F6;
  background-color: #FFFFFF;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.04);
}

.clipboard-item-text {
  color: #1E293B;
}

.clipboard-item-name {
  color: #0F172A;
  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: #3B82F6;
}

.clipboard-item-meta {
  color: #64748B;
}

button.icon-btn {
  background-color: #FFFFFF;
  border-color: #E2E8F0;
  color: #64748B;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

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

button.icon-btn.edit-name:hover {
  background-color: #3B82F6;
  color: #FFFFFF;
}

button.icon-btn.copy:hover {
  background-color: #3B82F6;
  color: #FFFFFF;
}

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

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

.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.shortcut-capture-btn {
  background-color: #FFFFFF;
  border-color: #CBD5E1;
  color: #1E293B;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

button.shortcut-capture-btn:hover {
  background-color: #F8FAFC;
  border-color: #3B82F6;
  color: #0F172A;
}

button.shortcut-capture-btn:focus {
  background-color: #EFF6FF;
  border-color: #3B82F6;
  color: #1D4ED8;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

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

.toast {
  background-color: #1E293B;
  color: #FFFFFF;
  border-color: #334155;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

dialog,
dialog>box {
  background-color: #FFFFFF;
  color: #1E293B;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

dialog button {
  background-color: #FFFFFF;
  color: #1E293B;
  border-color: #E2E8F0;
}

dialog button:hover {
  background-color: #F1F5F9;
}


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

button.theme-card {
  background-color: #FFFFFF;
  border-color: #E2E8F0;
  color: #64748B;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

button.theme-card:hover {
  background-color: #F8FAFC;
  border-color: #CBD5E1;
  color: #1E293B;
}

button.theme-card.theme-card-active {
  background-color: rgba(59, 130, 246, 0.08);
  border-color: #3B82F6;
  color: #3B82F6;
}

button.settings-restore-btn {
  background-color: #F1F5F9;
  border-color: #CBD5E1;
  color: #334155;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

button.settings-restore-btn:hover {
  background-color: #F8FAFC;
  border-color: #CBD5E1;
  color: #1E293B;
}

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

/* Dropdown & Combobox Styles */
dropdown, 
dropdown > button {
  background-color: #f1f5f9;
  border-radius: 6px;
  color: #1E293B;
}

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

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

dropdown:hover {
  border-color: #CBD5E1;
}

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

popover > contents {
  color: #1E293B;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

popover listview {
  background-color: #f1f5f9;
  color: #1E293B;
  margin: 0;
}

popover row:selected,
popover listview > row:selected {
  background-color: #3B82F6;
  color: #FFFFFF;
  border-radius: 4px;
}

/* Keyboard focus reuses the hover look instead of GTK's default focus ring. */
listbox row:focus,
listbox row:focus-visible,
listbox row:focus-within {
  outline: none;
  box-shadow: none;
}
