/* WordPress-inspired admin — Vres-Metaforea.gr */
:root {
  --wp-admin-theme-color: #2271b1;
  --wp-admin-theme-color-darker-10: #135e96;
  --wp-admin-theme-color-darker-20: #0a4b78;
  --wp-body-bg: #f0f0f1;
  --wp-sidebar-bg: #1d2327;
  --wp-sidebar-text: #f0f0f1;
  --wp-sidebar-submenu-bg: #2c3338;
  --wp-sidebar-border: #3c434a;
  --wp-text: #1d2327;
  --wp-text-muted: #646970;
  --wp-border: #c3c4c7;
  --wp-white: #fff;
  --wp-notice-success-bg: #edfaef;
  --wp-notice-success-border: #00a32a;
  --wp-notice-error-bg: #fcf0f1;
  --wp-notice-error-border: #d63638;
  --wp-admin-bar-h: 32px;
  --wp-menu-w: 160px;
  --wp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html.wp-toolbar { padding-top: var(--wp-admin-bar-h); }

body.wp-admin {
  margin: 0;
  font-family: var(--wp-font);
  font-size: 13px;
  line-height: 1.4;
  color: var(--wp-text);
  background: var(--wp-body-bg);
}

a { color: var(--wp-admin-theme-color); }
a:hover { color: var(--wp-admin-theme-color-darker-10); }

/* ── Admin bar (top) ── */
#wpadminbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--wp-admin-bar-h);
  background: #1d2327;
  color: #c3c4c7;
  z-index: 99999;
  display: flex;
  align-items: stretch;
  font-size: 13px;
  box-shadow: 0 1px 0 rgba(0,0,0,.2);
}
#wpadminbar .ab-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 100%;
  color: #f0f0f1;
  text-decoration: none;
  white-space: nowrap;
}
#wpadminbar .ab-item:hover { background: #32373c; color: #72aee6; }
#wpadminbar .ab-icon { width: 16px; height: 16px; opacity: 0.85; }
#wpadminbar .ab-spacer { flex: 1; }
#wpadminbar form { margin: 0; display: flex; align-items: stretch; }
#wpadminbar .ab-logout {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: #f0f0f1;
  padding: 0 12px;
  height: 100%;
}
#wpadminbar .ab-logout:hover { background: #32373c; color: #ffabaf; }

/* ── Layout shell ── */
#wpwrap { display: flex; min-height: 100vh; }

#adminmenuback,
#adminmenuwrap {
  width: var(--wp-menu-w);
  flex-shrink: 0;
  background: var(--wp-sidebar-bg);
}

#adminmenuwrap {
  position: fixed;
  top: var(--wp-admin-bar-h);
  bottom: 0;
  left: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

#adminmenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

#adminmenu li.wp-menu-name {
  display: block;
  padding: 8px 12px 8px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8c8f94;
  pointer-events: none;
}

#adminmenu .wp-menu-separator {
  height: 1px;
  margin: 8px 0;
  background: var(--wp-sidebar-border);
  opacity: 0.4;
}

#adminmenu li.menu-top > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--wp-sidebar-text);
  text-decoration: none;
  line-height: 1.3;
  border-left: 4px solid transparent;
  transition: background 0.1s, color 0.1s;
}

#adminmenu li.menu-top > a:hover,
#adminmenu li.menu-top.current > a,
#adminmenu li.menu-top.wp-has-current-submenu > a {
  background: var(--wp-admin-theme-color);
  color: #fff;
  border-left-color: #72aee6;
}

#adminmenu .menu-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.85;
}

#adminmenu .wp-submenu {
  list-style: none;
  margin: 0;
  padding: 4px 0 8px;
  background: var(--wp-sidebar-submenu-bg);
  display: none;
}

#adminmenu li.wp-has-submenu.wp-menu-open .wp-submenu,
#adminmenu li.wp-has-submenu.current .wp-submenu,
#adminmenu li.wp-has-submenu.wp-has-current-submenu .wp-submenu,
#adminmenu li.wp-has-submenu:hover .wp-submenu {
  display: block;
}

#adminmenu .wp-submenu a {
  display: block;
  padding: 6px 12px 6px 36px;
  color: rgba(240, 246, 252, 0.7);
  text-decoration: none;
  font-size: 12px;
}

#adminmenu .wp-submenu a:hover,
#adminmenu .wp-submenu a.current {
  color: #fff;
}

#adminmenu .wp-submenu a.current { font-weight: 600; }

#wpcontent {
  flex: 1;
  margin-left: var(--wp-menu-w);
  min-width: 0;
}

#wpbody { padding: 0 20px 40px; }

#wpbody-content { padding-top: 18px; max-width: 1400px; }

.wrap > h1,
.wrap .wp-heading-inline {
  font-size: 23px;
  font-weight: 400;
  margin: 0 0 16px;
  padding: 9px 0 4px;
  line-height: 1.3;
  color: var(--wp-text);
  display: inline-block;
  vertical-align: middle;
}

.page-title-action {
  margin-left: 4px;
  vertical-align: middle;
  text-decoration: none;
}

/* ── Notices ── */
.notice,
div.updated,
div.error {
  padding: 12px 14px;
  margin: 0 0 16px;
  border-left: 4px solid;
  background: var(--wp-white);
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.notice-success, div.updated {
  border-left-color: var(--wp-notice-success-border);
  background: var(--wp-notice-success-bg);
}

.notice-error, div.error {
  border-left-color: var(--wp-notice-error-border);
  background: var(--wp-notice-error-bg);
}

/* ── Postboxes (widgets) ── */
.postbox {
  background: var(--wp-white);
  border: 1px solid var(--wp-border);
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  margin-bottom: 20px;
}

.postbox-header {
  border-bottom: 1px solid var(--wp-border);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}

.postbox-header h2,
.postbox-header h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  padding: 12px 0;
  line-height: 1.4;
}

.postbox-header .postbox-action {
  font-size: 12px;
  text-decoration: none;
}

.postbox .inside {
  padding: 12px;
  margin: 0;
}

.postbox .inside.no-padding { padding: 0; }

/* ── Dashboard welcome ── */
.welcome-panel {
  background: var(--wp-white);
  border: 1px solid var(--wp-border);
  padding: 20px 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.welcome-panel::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(34, 113, 177, 0.06));
  pointer-events: none;
}

.welcome-panel h2 {
  font-size: 21px;
  font-weight: 400;
  margin: 0 0 8px;
}

.welcome-panel p { margin: 0 0 14px; color: var(--wp-text-muted); max-width: 640px; }

.welcome-panel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.welcome-panel-links a {
  text-decoration: none;
  font-weight: 500;
}

/* At a Glance */
#dashboard-widgets .postbox-container { margin-bottom: 0; }

.at-a-glance {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 14px;
}

.at-a-glance li {
  list-style: none;
  margin: 0;
}

.at-a-glance a { text-decoration: none; font-weight: 600; }

.at-a-glance .count {
  color: var(--wp-text-muted);
  font-weight: 400;
}

/* Activity lists */
.activity-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-block li {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f1;
}

.activity-block li:last-child { border-bottom: none; }

.activity-block .activity-title { font-weight: 600; margin-bottom: 2px; }
.activity-block .activity-meta { color: var(--wp-text-muted); font-size: 12px; }

/* ── Buttons ── */
.button,
button.button,
a.button {
  display: inline-block;
  text-decoration: none;
  font-size: 13px;
  line-height: 2.15384615;
  min-height: 30px;
  margin: 0;
  padding: 0 10px;
  cursor: pointer;
  border-width: 1px;
  border-style: solid;
  border-radius: 3px;
  white-space: nowrap;
  box-sizing: border-box;
  background: #f6f7f7;
  border-color: #2271b1;
  color: #2271b1;
}

.button:hover { background: #f0f0f1; border-color: #0a4b78; color: #0a4b78; }

.button-primary,
a.button-primary {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
}

.button-primary:hover,
a.button-primary:hover {
  background: #135e96;
  border-color: #135e96;
  color: #fff;
}

.button-small { font-size: 11px; line-height: 1.8; min-height: 24px; padding: 0 8px; }

.button-link-delete { color: #b32d2e; border-color: #b32d2e; background: #fff; }
.button-link-delete:hover { background: #fcf0f1; color: #8a1114; }

/* Map existing Tailwind admin buttons */
.wp-admin .bg-brand-600.text-white,
.wp-admin a.bg-brand-600 {
  background: #2271b1 !important;
  border: 1px solid #2271b1 !important;
  color: #fff !important;
  border-radius: 3px !important;
  font-weight: 400 !important;
  box-shadow: none !important;
}

.wp-admin .bg-brand-600:hover,
.wp-admin a.bg-brand-600:hover {
  background: #135e96 !important;
  border-color: #135e96 !important;
}

/* ── List tables ── */
.wp-list-table,
.wp-admin main table.w-full {
  width: 100%;
  border-collapse: collapse;
  background: var(--wp-white);
  border: 1px solid var(--wp-border);
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.wp-list-table thead th,
.wp-admin main table.w-full thead th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--wp-text);
  border-bottom: 1px solid var(--wp-border);
  padding: 8px 10px;
  background: var(--wp-white);
}

.wp-list-table tbody td,
.wp-admin main table.w-full tbody td {
  padding: 10px;
  border-bottom: 1px solid #f0f0f1;
  vertical-align: top;
  font-size: 13px;
}

.wp-list-table tbody tr:hover,
.wp-admin main table.w-full tbody tr:hover {
  background: #f6f7f7;
}

.wp-admin main .bg-white.border.border-gray-200.rounded-xl {
  border-radius: 0 !important;
  border-color: var(--wp-border) !important;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.wp-admin main .bg-white.rounded-xl.border {
  border-radius: 0 !important;
}

/* Subsubsub filters (WP style tabs) */
.subsubsub {
  list-style: none;
  margin: 8px 0 12px;
  padding: 0;
  font-size: 13px;
  color: var(--wp-text-muted);
}

.subsubsub li { display: inline; margin: 0; }

.subsubsub li::after { content: " | "; color: var(--wp-border); }
.subsubsub li:last-child::after { content: ""; }

.subsubsub a { text-decoration: none; }
.subsubsub a.current { font-weight: 600; color: var(--wp-text); pointer-events: none; }

/* WordPress nav tabs */
.nav-tab-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--wp-border);
  margin: 0 0 16px;
  padding: 0;
  line-height: inherit;
}

.nav-tab {
  display: inline-block;
  position: relative;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  color: #50575e;
  text-decoration: none;
  margin: 0 4px -1px 0;
  padding: 6px 12px;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 3px 3px 0 0;
  transition: background 0.1s, color 0.1s;
}

.nav-tab:hover {
  background: #fff;
  color: var(--wp-admin-theme-color);
}

.nav-tab-active,
.nav-tab.nav-tab-active {
  background: var(--wp-white);
  border-color: var(--wp-border);
  border-bottom-color: var(--wp-white);
  color: var(--wp-text);
  font-weight: 600;
}

.nav-tab .count {
  font-weight: 400;
  color: #646970;
}

.nav-tab-active .count { color: #646970; }

/* In-page screen tabs (dashboard) */
.screen-tabs .tab-panel { display: none; }
.screen-tabs .tab-panel.is-active { display: block; }

.screen-tabs .nav-tab[data-tab] { cursor: pointer; }
.screen-tabs .nav-tab[data-tab].nav-tab-active { cursor: default; }

/* Search box */
.wp-admin input[type="search"],
.wp-admin input.border.border-gray-300 {
  border: 1px solid #8c8f94 !important;
  border-radius: 3px !important;
  padding: 0 8px !important;
  min-height: 30px;
  font-size: 13px;
  box-shadow: none !important;
}

.wp-admin input:focus {
  border-color: var(--wp-admin-theme-color) !important;
  box-shadow: 0 0 0 1px var(--wp-admin-theme-color) !important;
  outline: 2px solid transparent !important;
}

/* Grid helpers for dashboard */
.metabox-holder.columns-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 960px) {
  #adminmenuwrap { width: 36px; }
  #adminmenuwrap .menu-label,
  #adminmenuwrap .wp-menu-name,
  #adminmenuwrap .wp-submenu { display: none; }
  #wpcontent { margin-left: 36px; }
  .metabox-holder.columns-2 { grid-template-columns: 1fr; }
}

/* Login page */
body.login {
  background: #f0f0f1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--wp-font);
}

#login {
  width: 320px;
  padding: 26px 24px 34px;
  margin: 0 auto;
  background: transparent;
}

#login h1 a {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #1d2327;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.3;
}

#loginform {
  background: #fff;
  border: 1px solid var(--wp-border);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  padding: 26px 24px;
  margin-top: 20px;
}

#loginform label {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: #1d2327;
}

#loginform input[type="text"],
#loginform input[type="password"],
#loginform input[type="number"] {
  width: 100%;
  font-size: 16px;
  line-height: 1.33333333;
  padding: 3px 8px;
  margin: 0 0 16px;
  min-height: 40px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.07);
}

.login-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.login-captcha {
  margin: 4px 0 8px;
  padding: 12px;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  background: #f6f7f7;
}

.login-captcha-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #646970;
}

.login-not-robot {
  margin: 0;
}

.login-not-robot label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  cursor: pointer;
}

.login-not-robot input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

#loginform input:focus {
  border-color: var(--wp-admin-theme-color);
  box-shadow: 0 0 0 1px var(--wp-admin-theme-color);
  outline: 2px solid transparent;
}

#loginform .button-primary {
  width: 100%;
  min-height: 40px;
  font-size: 14px;
  line-height: 1.5;
  padding: 6px 12px;
  float: none;
}

.login .message,
.login .notice-error {
  border-left: 4px solid var(--wp-notice-error-border);
  background: var(--wp-notice-error-bg);
  padding: 12px;
  margin-bottom: 16px;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.login #backtoblog {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
}

.login #backtoblog a { color: #50575e; text-decoration: none; }
.login #backtoblog a:hover { color: var(--wp-admin-theme-color); }
