@layer bdr-base {
:root {
  color-scheme: dark;
  --navy: var(--theme-bg);
  --blue: var(--theme-accent);
  --aqua: #18a7a1;
  --ink: var(--theme-text);
  --muted: var(--theme-muted);
  --line: var(--theme-border);
  --bg: var(--theme-bg);
  --white: var(--theme-surface);
  --danger: #b53b3b;
}
body {
  background: var(--theme-bg);
  color: var(--theme-text);
}
.admin-header,
.admin-header .brand {
  background-color: var(--theme-header);
  color: var(--theme-text);
}
.admin-header .brand small {
  color: var(--theme-muted);
}
.admin-header .admin-nav {
  background: var(--theme-header);
  border: 1px solid var(--theme-border);
  box-shadow: none;
}
.admin-header .admin-nav-link {
  background: var(--theme-nav);
  color: #ffffff;
}
.admin-header .admin-nav-link:hover,
.admin-header .admin-nav-link.active {
  background: var(--theme-accent);
  color: #ffffff;
}
.section-heading h1,
.admin-view h1,
.admin-view h2,
.admin-view h3 {
  color: var(--theme-text);
}
.section-heading p:not(.eyebrow),
.muted,
.card-main p,
.card-meta {
  color: var(--theme-muted);
}
.eyebrow {
  color: var(--theme-highlight);
}
.stat-card,
.quick-action,
.content-card,
.admin-form,
.gallery-upload,
.media-admin-item {
  background: var(--theme-surface);
  color: var(--theme-text);
  border: 1px solid var(--theme-border);
  box-shadow: none;
}
.stat-card strong,
.quick-action strong,
.card-main h3 {
  color: var(--theme-text);
}
.stat-card span,
.stat-card small,
.quick-action span {
  color: var(--theme-muted);
}
.admin-form input,
.admin-form textarea,
.admin-form select,
.list-tools input,
.media-filter-bar select {
  background: var(--theme-input);
  color: var(--theme-text);
  border: 1px solid var(--theme-control-border);
}
input::placeholder,
textarea::placeholder {
  color: var(--theme-placeholder);
}
.button {
  background: var(--theme-accent);
  border-color: var(--theme-accent);
  color: #ffffff;
}
.button.secondary {
  background: var(--theme-nav);
  color: #ffffff;
  border-color: var(--theme-control-border);
}
.button.danger {
  background: #a83242;
  border-color: #a83242;
}
.filter-buttons button {
  background: var(--theme-nav);
  border-color: var(--theme-control-border);
  color: var(--theme-text);
}
.filter-buttons button.active {
  background: var(--theme-accent);
  color: #ffffff;
}
.bulk-actions,
.media-filter-bar {
  background: var(--theme-nav);
  color: var(--theme-text);
}
.badge.live {
  background: #154c42;
  color: #8ef1d0;
}
.badge.draft {
  background: #304258;
  color: #d3e0ec;
}
.sponsor-logo {
  background: #ffffff;
}
.login-screen {
  background: linear-gradient(135deg, var(--theme-login-start), var(--theme-login-end));
}
.login-card {
  background: var(--theme-surface);
  color: var(--theme-text);
  border: 1px solid var(--theme-border);
}
.login-card p {
  color: var(--theme-muted);
}
.login-card h1 {
  color: var(--theme-text);
}
@media (max-width: 850px) {
.admin-header .admin-nav {
  background: var(--theme-header);
  border: none;
}
.admin-header .admin-nav-link {
  color: var(--theme-text);
}
}
.table-scroll {
  background: var(--theme-surface);
  border-color: var(--theme-border);
}
.admin-table {
  color: var(--theme-text);
}
.admin-table th {
  color: var(--theme-muted);
}
.admin-table td {
  border-bottom-color: var(--theme-border);
}
.rich-editor {
  border: 1px solid var(--theme-control-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--theme-input);
}
.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--theme-control-border);
  background: linear-gradient(180deg,var(--theme-header),var(--theme-surface));
}
.rich-toolbar button,.rich-toolbar select {
  min-height: 34px;
  border: 1px solid var(--theme-toolbar-border);
  border-radius: 7px;
  padding: 6px 10px;
  background: var(--theme-nav);
  color: var(--theme-text);
  font: inherit;
  cursor: pointer;
}
.rich-toolbar select {
  max-width: 150px;
}
.rich-toolbar input[type="color"] {
  width: 36px;
  height: 34px;
  padding: 3px;
  border: 1px solid var(--theme-toolbar-border);
  border-radius: 7px;
  background: var(--theme-nav);
  cursor: pointer;
}
.rich-divider {
  height: 28px;
  width: 1px;
  margin: 0 2px;
  background: var(--theme-toolbar-border);
}
.rich-toolbar button:hover,.rich-toolbar button.active {
  background: var(--theme-accent);
  color: #fff;
}
.rich-content,.rich-source {
  width: 100%;
  min-height: 330px;
  padding: 14px;
  background: var(--theme-input);
  color: var(--theme-text);
  line-height: 1.65;
}
.rich-content {
  outline: 0;
  overflow: auto;
}
.rich-content:empty::before {
  content: "Metni buraya yazın veya yapıştırın…";
  color: var(--theme-placeholder);
}
.rich-content h2 {
  margin-top: 1.2em;
  color: var(--theme-text);
}
.rich-content a {
  color: var(--theme-link);
}
.rich-content table {
  width: 100%;
  margin: 1em 0;
  border-collapse: collapse;
}
.rich-content th,.rich-content td {
  min-width: 70px;
  padding: 8px;
  border: 1px solid var(--theme-toolbar-border);
}
.rich-content td:empty::after {
  content: " ";
}
.rich-source {
  display: none;
  border: 0;
  resize: vertical;
}
.rich-editor.source-mode .rich-content {
  display: none;
}
.rich-editor.source-mode .rich-source {
  display: block;
}
@media (max-width:650px) {
.rich-toolbar select {
  max-width: 120px;
}
.rich-divider {
  display: none;
}
}
}
