/* ============================================================
   Bulleys Email Filer - Taskpane styles
   ============================================================ */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  color: #201f1e;
  background: #faf9f8;
}

.pane {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 12px;
  gap: 8px;
}

header h1 {
  font-size: 16px;
  margin: 0 0 4px 0;
  font-weight: 600;
}

.status {
  margin: 0;
  color: #605e5c;
  font-size: 12px;
  min-height: 1.2em;
}

.status.error  { color: #a4262c; }
.status.ok     { color: #107c10; }

.filter input {
  width: 100%;
  padding: 6px 8px;
  font-size: 14px;
  border: 1px solid #c8c6c4;
  border-radius: 2px;
}

.list-wrap {
  flex: 1;
  overflow-y: auto;
  border: 1px solid #c8c6c4;
  border-radius: 2px;
  background: #fff;
}

.folder-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.folder-list li {
  padding: 6px 10px;
  cursor: pointer;
  border-bottom: 1px solid #f3f2f1;
  user-select: none;
}

.folder-list li:hover { background: #f3f2f1; }

.folder-list li.selected {
  background: #deecf9;
  color: #005a9e;
}

footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

button {
  padding: 6px 14px;
  font-size: 14px;
  border: 1px solid #8a8886;
  border-radius: 2px;
  background: #fff;
  color: #201f1e;
  cursor: pointer;
}

button:hover:not(:disabled) { background: #f3f2f1; }

button.primary {
  background: #0078d4;
  color: white;
  border-color: #0078d4;
}

button.primary:hover:not(:disabled) { background: #106ebe; }

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
