/* GOV.TODAY — оформлення адмінки, центру керування і сторінки входу */

/* Фірмові кольори меню WordPress */
#adminmenu #toplevel_page_govtoday .wp-menu-image img { width: 20px; height: 20px; padding-top: 7px; opacity: 1; }
#adminmenu #toplevel_page_govtoday > a { background: #a52b30; color: #fff; font-weight: 600; }
#adminmenu #toplevel_page_govtoday.wp-has-current-submenu > a, #adminmenu #toplevel_page_govtoday > a:hover { background: #78191e; }
#wpadminbar .gv-ab-logo { display: inline-block; width: 18px; height: 18px; line-height: 18px; text-align: center; background: #fff; color: #181817 !important; font-family: Georgia, serif; font-weight: 700; border-radius: 3px; margin-right: 4px; box-shadow: 2px 2px 0 #a52b30; }
#wpadminbar #wp-admin-bar-govtoday > .ab-item { background: #a52b30; }

/* Центр керування */
.gv-admin { max-width: 1400px; }
.gv-admin-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; background: #17191d; color: #cfcac0; margin: 10px 0 18px -20px; padding: 14px 20px; }
.gv-admin-brand { display: flex; align-items: center; gap: 10px; font-family: Georgia, serif; font-size: 22px; font-weight: 700; color: #fff; }
.gv-admin-brand small { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 600; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #9d988e; }
.gv-admin-mark { display: grid; place-items: center; width: 30px; height: 30px; background: #fff; color: #181817; border-radius: 4px; box-shadow: 3px 3px 0 #a52b30; }
.gv-red { color: #e0493f; }
.gv-admin-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.gv-admin-nav a { color: #cfcac0; text-decoration: none; padding: 6px 10px; font-weight: 600; font-size: 13px; }
.gv-admin-nav a:hover { color: #fff; }
.gv-admin-nav a.is-active { background: #a52b30; color: #fff; }
.gv-admin-title { font-family: Georgia, serif; font-size: 30px !important; font-weight: 400 !important; margin: 6px 0 4px !important; }
.gv-admin-desc { font-size: 14px; color: #50575e; max-width: 900px; margin-top: 0; }
.gv-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gv-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 16px; }
@media (max-width: 1100px) { .gv-cols { grid-template-columns: 1fr; } }
.gv-panel { background: #fff; border: 1px solid #dcdcde; border-top: 3px solid #181817; padding: 4px 20px 16px; margin-top: 16px; }
.gv-panel h2 { font-family: Georgia, serif; font-weight: 400; font-size: 20px; }
.gv-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.gv-kpis.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wrap .gv-kpis.is-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .gv-kpis, .wrap .gv-kpis.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gv-kpi { display: block; background: #fff; border: 1px solid #dcdcde; padding: 14px 16px; text-decoration: none; color: #50575e; }
a.gv-kpi:hover { border-color: #a52b30; }
.gv-kpi b { display: block; font-family: Georgia, serif; font-weight: 400; font-size: 28px; color: #181817; line-height: 1.1; margin-bottom: 4px; }
.gv-kpi span { font-size: 12px; }
.gv-health { margin: 0; }
.gv-health li { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid #f0f0f1; margin: 0; }
.gv-health span { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 700; color: #fff; flex: none; }
.gv-health .is-ok span { background: #2c7a4b; }
.gv-health .is-bad span { background: #d63638; }
.gv-log td { font-size: 12px; }
.gv-log tr.is-error td { color: #b32d2e; }
.gv-log tr.is-ok td:last-child { color: #1d6b3a; }
.gv-pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: #f0f0f1; color: #50575e; }
.gv-pill.is-ok { background: #e7f5ec; color: #1d6b3a; }
.gv-pill.is-bad { background: #fcf0f1; color: #b32d2e; }
.gv-list li { margin-bottom: 6px; }
.gv-tabs { margin-bottom: 16px; }
.gv-inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0; }

/* Таблиці-репітери */
.gv-sources td, .gv-plans-admin td { vertical-align: top; }
.gv-sources input[type=text] { width: 100%; }
.gv-src-state small { display: block; color: #787c82; font-size: 11px; margin-top: 3px; }
.gv-remove { color: #b32d2e !important; font-size: 16px; text-decoration: none; }

/* Перемикач */
.gv-switch { position: relative; display: inline-block; width: 40px; height: 22px; vertical-align: middle; }
.gv-switch input { opacity: 0; width: 0; height: 0; }
.gv-switch span { position: absolute; inset: 0; background: #c3c4c7; border-radius: 22px; transition: .15s; cursor: pointer; }
.gv-switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.gv-switch input:checked + span { background: #a52b30; }
.gv-switch input:checked + span::before { transform: translateX(18px); }
.gv-switch input:focus-visible + span { outline: 2px solid #2271b1; outline-offset: 2px; }

/* Рекламні місця */
.gv-slot { background: #fff; border: 1px solid #dcdcde; margin-bottom: 8px; }
.gv-slot summary { padding: 12px 16px; cursor: pointer; }
.gv-slot summary small { color: #787c82; margin-left: 6px; }
.gv-slot .form-table { margin: 0 16px 8px; width: calc(100% - 32px); }

/* Метабокси модулів */
.gv-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.gv-meta-grid .description { display: block; margin-top: 3px; }
@media (max-width: 900px) { .gv-meta-grid { grid-template-columns: 1fr; } }

/* Сторінка входу */
body.login { background: #f1eee7; }
body.login h1 a { background: none !important; width: auto !important; height: auto !important; text-indent: 0 !important; font-family: Georgia, serif; font-size: 36px; font-weight: 700; color: #181817; }
body.login h1 a::after { content: "Geopolitical & Public Sector Intelligence"; display: block; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #65635e; font-weight: 600; margin-top: 6px; }
body.login form { border: 0; border-top: 4px solid #a52b30; border-radius: 0; box-shadow: 0 10px 30px rgba(0, 0, 0, .06); }
body.login .button-primary { background: #a52b30; border-color: #a52b30; border-radius: 0; }
body.login .button-primary:hover { background: #78191e; border-color: #78191e; }
