/*
 * YABHost theme for HestiaCP (light) — the panel's look for every account.
 * Installed as /usr/local/hestia/web/css/themes/custom/yabhost.css:
 * Hestia's supported place for custom themes, kept across Hestia upgrades. Hestia loads its default.min.css first,
 * then this file, which only overrides colours and the logo size; the font is Hestia's own Exo.
 * Black and white since 2026-11-13 (owner: "noir et blanc", "design bhal dyal hestia", "police de hestia EXO").
 * Colours: brand/palette/yabhost-palette.css (text pairings WCAG 2.1 AA, brand/source/palette_check.py). Covers every rule in Hestia 1.10.5's
 * default.min.css that uses one of Hestia's accent colours (33 rules), plus the top bar, login page, buttons and icons.
 * After a Hestia upgrade: open the panel and the login page once and check nothing turned Hestia-blue again.
 * Buttons keep Hestia's geometry (1 px border, 3 px radius, 3px 25px, .85rem/500) with flat black/white colours.
 */

:root {
	--font-family: "Exo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Hestia's own font (default.min.css @font-face) */
	--border-radius-base: 4px; /* Hestia's default */

	--color-text: #5e5e63;            /* ardoise — 6.45:1 on white */
	--color-text-link: #0b0b0c;       /* noir — 19.67:1 on white */
	--color-text-link-hover: #5e5e63; /* ardoise — 6.45:1 on white */
	--color-text-heading: #0b0b0c;    /* noir */
	--color-background: #ffffff;

	--alert-border-color: #0000;
	--alert-info-color: #0b0b0c;
	--alert-danger-color: #b91c1c;
	--alert-success-color: #15803d;

	/* Icons: black and greys + the palette's status colours (all ≥ 3:1 on white) */
	--icon-color-teal: #0b0b0c;
	--icon-color-purple: #5e5e63;
	--icon-color-maroon: #5e5e63;
	--icon-color-red: #b91c1c;
	--icon-color-green: #15803d;
	--icon-color-orange: #a16207;
	--icon-color-blue: #0b0b0c;
	--icon-color-lightblue: #2a2a2d;

	/* Top bar: white with a 1 px line in light mode (owner 2026-10-28), black in dark mode (dark block below) — like yabhost.com */
	--top-bar-background: #ffffff;
	--top-bar-box-shadow: none;
	--top-bar-border-bottom: 1px solid #e5e5e7;

	--chart-label-color: #5e5e63;
	--chart-grid-color: #e5e5e7;
	--chart-line-1-color: #0b0b0c;
	--chart-line-2-color: #5e5e63;
	--chart-line-3-color: #15803d;
}

/* ---------- Top bar (light; dark mode overrides it in the dark block) ---------- */
.top-bar-logo img { width: auto; height: 30px; content: url("/images/custom/logo-header-light.svg"); } /* black wordmark on white */
.top-bar-usage-inner,
.top-bar-usage-item { color: #5e5e63; text-shadow: none; }
.top-bar-usage-inner .u-text-bold { color: #0b0b0c; }
.top-bar-menu-panel { background: var(--top-bar-background); border-color: #e5e5e7; }
.top-bar-menu-link { color: #0b0b0c; text-shadow: none; }
.top-bar-menu-link:hover,
.top-bar-menu-link.active {
	color: #0b0b0c;
	text-shadow: none;
	background: #f5f5f6;
	border-left-color: #0000;
	border-right-color: #0000;
	box-shadow: inset 0 -3px 0 #0b0b0c;
}
.top-bar-menu-link:active {
	color: #0b0b0c;
	text-shadow: none;
	background: #e5e5e7;
	border-left-color: #0000;
	border-right-color: #0000;
	box-shadow: inset 0 -3px 0 #0b0b0c;
}
.top-bar-menu-link-logout { color: #0b0b0c; } /* black on white 19.67:1 */
.top-bar-notification-item.unseen .top-bar-notification-title { color: #5e5e63; }
.top-bar-notification-delete .fas,
.top-bar-notifications-delete-all .fas { color: #b91c1c; }

/* ---------- Main menu (Web, DNS, Mail, …) ---------- */
@media (width >= 768px) {
	.main-menu-item.focus .main-menu-item-link { border-bottom-color: #0b0b0c; }
	.main-menu-item.focus .main-menu-item-label { color: #0b0b0c; }
}

/* ---------- Toolbar and lists ---------- */
.toolbar .form-control:hover { border-right-color: #a1a1a6; }
.toolbar .form-control:focus { border-right-color: #0b0b0c; }
.toolbar-sorting-toggle:active,
.toolbar-sorting-toggle:active span,
.toolbar-sorting-menu span:hover,
.toolbar-link:active { color: #0b0b0c; }
.toolbar-sorting-menu span.active { color: #0b0b0c; }
.toolbar-sorting-menu span:active,
.toolbar-sorting-menu span:focus { color: #5e5e63; }
.units-table-row.focus { background-color: #f5f5f6; border-left-color: #0b0b0c; }
.units-table-row:hover { background-color: #f8f8f8; }
.units-table-row.selected { background-color: #f5f5f6; }
.units-table-row.selected:hover { background-color: #ededef; }
.units-table-cell a:hover { color: #5e5e63; }

/* No gradients (owner, 2026-11-13): Hestia's remaining glossy backgrounds made flat */
.toolbar-sorting-menu span.active { color: #0b0b0c; text-shadow: none; background: #f5f5f6; }
.toolbar-sorting-menu span:hover { color: #0b0b0c; text-shadow: none; background: #f8f8f8; box-shadow: none; }
.toolbar-sorting-menu span:active,
.toolbar-sorting-menu span:focus { color: #0b0b0c; text-shadow: none; background: #ededef; box-shadow: none; }
@media (width >= 1024px) {
	.units-table-header { background: #fafafa; box-shadow: none; }
}
.box-collapse-header { background: #fafafa; }

/* Hestia's remaining accent colours (full scan of default.min.css, 2026-11-13): neutral, or a state colour for states */
.toolbar-input-submit { color: #0b0b0c; text-shadow: none; box-shadow: none; }
.toolbar-input-submit:hover { color: #5e5e63; }
.toolbar-input-submit:active { color: #0b0b0c; }
.units-table-row.disabled.selected,
.units-table-row.disabled.selected:hover { color: #a1a1a6; background-color: #ededef; }
.form-control.highlighted { color: #0b0b0c; background-color: #f5f5f6; }
.form-link-danger:active { color: #991b1b; }
.password-meter-input[value="3"] { background: #a16207; }
.password-meter-input[value="3"]::-moz-meter-bar { background: #a16207; }
.password-meter-input[value="3"]::-webkit-meter-bar { background: #a16207; }
.password-meter-input[value="3"]::-webkit-meter-optimum-value { background: #a16207; }
.modal-title { color: #0b0b0c; }
.shortcuts .key,
.shortcuts-title { color: #0b0b0c; }
.shortcuts-close:hover { color: #b91c1c; }
.shortcuts-close:active { color: #991b1b; }
.box-collapse-header:hover { color: #5e5e63; }
.inline-alert-danger { color: #b91c1c; }
.inline-alert-warning { color: #a16207; }
.inline-alert-success { color: #15803d; }
.inline-alert-success a:active { color: #0b0b0c; }
.debug-panel-toggle { background-color: #f5f5f6; }
.debug-panel-toggle:hover { background-color: #ededef; }

/* ---------- Forms ---------- */
.form-control:hover,
.form-select:hover { border-color: #a1a1a6; }
.form-control:focus,
.form-select:focus {
	color: #0b0b0c;
	background-color: #ffffff;
	border-color: #0b0b0c;
	box-shadow: 0 0 0 3px #0b0b0c33;
	outline: 0;
}
.form-link:hover { color: #5e5e63; }
.form-link:active { color: #2a2a2d; }
.form-link-danger:hover { color: #b91c1c; }
.tabs-item:active { color: #2a2a2d; }

/* ---------- Buttons: Hestia's geometry (default.min.css .button), flat black and white ---------- */
.button {
	color: #ffffff;
	text-shadow: none;
	background: #0b0b0c;
	border-color: #0b0b0c;
	box-shadow: 0 1px 2px #0000001f;
}
.button:hover { color: #ffffff; text-shadow: none; background: #2a2a2d; border-color: #2a2a2d; box-shadow: 0 1px 2px #0000001f; }
.button:active { color: #ffffff; text-shadow: none; background: #000000; border-color: #000000; box-shadow: none; }
.button:focus-visible { outline: 2px solid #0b0b0c; outline-offset: 2px; }
.button:not(.button-secondary) .fas { color: #ffffff; } /* coloured icons would vanish on black */
.button-secondary { color: #0b0b0c; text-shadow: none; background: #ffffff; border-color: #c8c8cc; box-shadow: none; }
.button-secondary:hover { color: #0b0b0c; background: #f5f5f6; border-color: #0b0b0c; box-shadow: none; }
.button-secondary:active { color: #0b0b0c; background: #ededef; border-color: #0b0b0c; }
.button-secondary .fas { color: #0b0b0c; } /* toolbar buttons (Add, Packages, …): black icons; green/red/amber only for states */
.button-danger:hover { color: #ffffff; text-shadow: none; background: #b91c1c; border-color: #b91c1c; }
.button-danger:active { color: #ffffff; text-shadow: none; background: #991b1b; border-color: #991b1b; }

/* ---------- Login and password-reset pages ---------- */
.page-login,
.page-reset {
	background: #f5f5f6;
}
.login {
	background-color: #ffffff;
	border: 1px solid #e5e5e7;
	border-radius: 4px;
	box-shadow: 0 1px 3px #0000001a;
}
.login-title { color: #0b0b0c; font-weight: 600; }
.login .form-label { color: #0b0b0c; }
.login .error { color: #b91c1c; }
/* Hestia's light theme sets uppercase here, its dark theme normal case + 400: same look in both (Forgot Password/Token) */
.login-form-link { color: #0b0b0c; text-transform: none; font-weight: 400; }
@media (width >= 480px) {
	.login-form-link:hover { color: #5e5e63; }
}
@media (width < 480px) {
	.login { margin-left: 12px; margin-right: 12px; }
}

/* ---------- Footer: "YABHost · powered by Hestia Control Panel", without the version number ---------- */
.app-footer p { font-size: 0; }
.app-footer p::before {
	content: "YABHost \00B7  powered by Hestia Control Panel";
	font-size: 0.8rem;
	color: #5e5e63;
}

/* ===== DARK MODE (generated by make_dark.py — do not edit by hand) ===== */
@media (prefers-color-scheme: dark) {
:root{--color-text:#ededef;--color-text-link:#ffffff;--color-text-link-hover:#ffffff;--color-text-heading:#ededef;--color-background:#161618;--alert-border-color:#0f0f10;--alert-danger-color:#b91c1c;--icon-color-purple:#a1a1a6;--icon-color-maroon:#ffffff;--icon-color-green:#4ade80;--icon-color-blue:#ffffff;--top-bar-background:#2c2c30;--top-bar-box-shadow:0 8px 15px #00000040;--top-bar-border-bottom:1px solid #2c2c30;--chart-label-color:#ededef;--chart-grid-color:#2c2c30}.top-bar-usage-inner{color:#a1a1a6}.top-bar-usage-item{color:#ededef}.top-bar-usage-item .fas{color:#a1a1a6}.top-bar-notifications-panel{background-color:#1d1d20fc}@media (width>=480px){.top-bar-notifications-panel{border-color:#1d1d20}}.top-bar-notifications-empty{color:#ededef}.top-bar-notifications-empty .fas{color:#ededef}.top-bar-notification-item{text-shadow:0 1px #00000080;color:#ededef;border-bottom-color:#161618}.top-bar-notification-item.unseen .top-bar-notification-title{color:#ffffff}.top-bar-notification-delete .fas{color:#ffffff}.top-bar-notifications-delete-all{border-top-color:#161618}.top-bar-menu-panel{background-color:var(--top-bar-background)}.top-bar-menu-link:hover{color:#ededef;text-shadow:1px 1px #00000080;box-shadow:none;background:#0b0b0c99}.top-bar-menu-link:active{color:#ffffff;text-shadow:0 -1px 1px #00000080;background:#0b0b0cb3}.top-bar-menu-link.active{color:#ededef;text-shadow:0 1px #00000080;background:#0b0b0c99;border-left-color:#1d1d20;border-right-color:#1d1d20}.top-bar-menu-link-logout{color:#ededef}.main-menu-toggle:hover .main-menu-toggle-label{color:#ededef}.main-menu-toggle .fas{color:#ededef}.main-menu-toggle-label{color:#a1a1a6}.main-menu-list{border-top-color:#2c2c30}.main-menu-item-link:hover .main-menu-item-label{color:#ededef}.main-menu-item-link.active .main-menu-item-label{color:#ffffff}.main-menu-item-link.active .main-menu-item-label .fas{color:#ededef}@media (width>=768px){.main-menu-item-link{border-bottom-color:#161618}.main-menu-item-link:hover{border-bottom-color:#ededef}.main-menu-item-link.active{border-bottom-color:#ffffff}}.main-menu-item-label{color:#a1a1a6;font-weight:500}.main-menu-item-label .fas{color:#a1a1a6}.toolbar{background-color:#161618;border-color:#2c2c30}.toolbar.active{box-shadow:0 4px 6px #00000040}.toolbar .form-select{background-color:#0f0f10;border-color:#2c2c30}.toolbar .form-select:hover{background-color:#0f0f10}.toolbar .form-control{background-color:#0f0f10;border-color:#2c2c30}.toolbar .form-control:hover{background-color:#0f0f10;border-right-color:#ffffff}.toolbar .form-control:focus{border-right-color:#ffffff}.toolbar-sorting-toggle:hover{color:#a1a1a6}.toolbar-sorting-toggle:hover span{color:#a1a1a6}.toolbar-sorting-menu{background-color:#161618f2;border-color:#3a3a3f;box-shadow:0 2px 16px #0b0b0ca6}.toolbar-sorting-menu li{color:#ededef;border-bottom:1px solid #2c2c30}.toolbar-sorting-menu span:hover{color:#ffffff;text-shadow:0 -1px 1px #00000080;background:#0f0f1099;box-shadow:inset 0 0 1px #0006,inset -1px -1px 4px #16161866}.toolbar-sorting-menu span:active,.toolbar-sorting-menu span:focus{color:#ffffff;text-shadow:0 -1px 1px #00000080;background:#0f0f1099;box-shadow:inset 0 0 1px #0006,inset -1px -1px 4px #16161866}.toolbar-sorting-menu span.active{color:#ffffff;text-shadow:0 1px #000c;background:#2c2c30}.toolbar-input-submit{text-shadow:1px 1px #000000e6;color:#ededef;background-color:#2c2c30;border-color:#2c2c30;box-shadow:0 1px 1px #0006}.toolbar-input-submit:hover{color:#ffffff;background-color:#2c2c30}.toolbar-input-submit:active{color:#d4d4d8;text-shadow:0 -1px #ffffff33;box-shadow:inset 1px 1px #0003}.toolbar-link{color:#ededef}.toolbar-link.selected,.toolbar-link:hover{color:#ffffff}.card{background-color:#2c2c30;border-color:#3a3a3f;box-shadow:0 1px 4px #0003,inset 0 0 60px #00000040}.card-content{color:#f5f5f6;text-shadow:0 1px #000000f2}.clipboard .clipboard-input{border-color:#3a3a3f}.clipboard-button{background-color:#1d1d20}.server-summary-icon{color:#a1a1a6}.panel{background-color:#2c2c30;border-color:#3a3a3f;box-shadow:0 1px 4px #00000059}.box-collapse-header{text-shadow:0 1px #0006;color:#ffffff;background:#2c2c30;border-color:#2c2c30;box-shadow:inset 0 0 2px #00000080,0 2px 6px #0006}.collapse-header{border-bottom-color:#2c2c30}@media (width>=1024px){.units-table-header{box-shadow:none;text-shadow:0 1px #000000f2;background:#1d1d20;border-color:#0f0f10}}.units-table-row{background-color:#1d1d20;border-color:#161618}.units-table-row.selected{box-shadow:none;background-color:#2c2c30}.units-table-row.disabled{color:#3a3a3f;background-color:#161618}.units-table-row.disabled.selected{color:#1d1d20;background-color:#2c2c30}.units-table-row.focus{background-color:#1d1d20}@media (width>=1024px){.units-table-row:hover{box-shadow:none;background-color:#1d1d20;border-color:#161618}.units-table-row.selected{border-left-color:#0f0f10;border-right-color:#0f0f10}.units-table-row.selected:hover{background-color:#3a3a3f}.units-table-row.disabled:hover{background-color:#161618}.units-table-row.disabled.selected:hover{color:#1d1d20;background-color:#2c2c30}}.units-table-cell a{color:#f5f5f6}.units-table-cell a:hover{color:#f5f5f6}.units-table-row-action-link{background-color:#161618;border-color:#2c2c30}@media (width>=1024px){.units-table-row-action-link{background-color:#0000}}@media (width>=1024px){.units-table-badge{color:#ededef;text-shadow:0 1px #000000b3;background-color:#161618;border-color:#0f0f10;box-shadow:0 1px 2px #2c2c3080,inset 0 2px 2px #000000a6}}.stats-item{border-bottom-color:#1d1d20}@media (width>=1024px){.stats-item:hover{background-color:#1d1d20;border-left-color:#1d1d20;border-right-color:#1d1d20;box-shadow:0 2px 10px #0003}}.stats-item-header-title{color:#f5f5f6}.stats-item-summary-title{border-bottom-color:#3a3a3f}.form-label,.form-check label{color:#ededef}.form-control{color:#ededef;background-color:#2c2c30;border-color:#3a3a3f;box-shadow:0 1px 4px #00000059}.form-control:hover{background-color:#2c2c30;border-color:#ffffff}.form-control:focus{color:#ffffff;background-color:#0f0f10;border-color:#ffffff;box-shadow:0 1px 6px #ffffff26}.form-control.list-editor:focus{box-shadow:none;background-color:#0f0f10}.form-select{color:#ededef;text-shadow:0 0 #ededef;background-color:#2c2c30;border-color:#3a3a3f;box-shadow:0 1px 4px #00000059}.form-select:hover{background-color:#2c2c30;border-color:#ffffff}.form-select:focus{color:#ffffff;background-color:#0f0f10;border-color:#ffffff;box-shadow:0 1px 6px #ffffff26}.form-control:disabled,.form-select:disabled{text-shadow:1px 1px #0000004d;color:#a1a1a6;background-color:#1d1d20;border-color:#3a3a3f}:is(.form-control:disabled,.form-select:disabled):hover{border-color:#3a3a3f}.form-link{color:#ffffff}.form-link-danger:hover{background-color:#ffffff}.form-link-danger:active{background-color:#d4d4d8}.unlimited-toggle .fas{color:#ededef}.hint{color:#a1a1a6}.button{color:#f5f5f6;text-shadow:0 1px 1px #00000059;background:#1d1d20;border-color:#a1a1a6;font-weight:400;box-shadow:0 1px 4px #0003,inset 0 0 1px #0b0b0c,inset 0 0 3px #00000080}.button:hover{color:#ffffff;text-shadow:1px 1px #00000040;background:#2c2c30;border-color:#ffffff;box-shadow:0 1px 3px #00000059,inset 0 0 1px #000,inset 0 0 3px #000000a6}.button:active{color:#ededef;text-shadow:0 -1px 1px #0000008c;background:#1d1d20;border-color:#ffffff;box-shadow:0 1px 3px #0000004d,inset 0 0 1px #000,inset -1px -1px 4px #0f0f1066}.button-secondary{background:#1d1d20;border-color:#2c2c30}.button-secondary:hover{background:#1d1d20}.button-danger:hover{color:#ffffff;text-shadow:0 1px #00000073;background:#991b1b;border-color:#991b1b}.button-danger:active,.button-danger:focus{color:#2b0a07;text-shadow:0 -1px 1px #ffffff4d;background:#991b1b;border-color:#f87171}.page-login,.page-reset{background:#1d1d20}.login .error{color:#f87171}@media (width>=480px){.login{background-color:#161618;box-shadow:0 8px 25px #0000004d,inset 0 0 2px #00000040}.login .form-label{color:#ffffff}}.login-title{color:#ffffff}.login-form-link{color:#f5f5f6;text-transform:initial;font-weight:400}.login-form-link:hover{color:#ffffff}.qr-code{border:1px solid #1d1d20;box-shadow:0 1px 4px #00000059}.console-output{color:#ededef}.spinner-overlay .fas{box-shadow:0 0 25px #000000e6}.icon-highlight{color:#ededef}.icon-highlight:hover{color:#ededef}.icon-dim{color:gray;text-shadow:1px 1px #0000004d}.modal{background-color:#161618;border-color:#2c2c30f7;box-shadow:inset 0 1px 3px #00000040,0 8px 25px #000000e6}.modal-title{color:#ffffff}.modal-message{color:#ededef}.modal-options{border-top:1px solid #1d1d20}.shortcuts{background-color:#161618;border-color:#1d1d20;box-shadow:0 8px 25px #000000e6}.shortcuts-header{border-bottom:1px solid #1d1d20}.tabs{background-color:#2c2c30;border-color:#3a3a3f;box-shadow:0 1px 4px #00000040}.tabs-item{color:#ededef}.tabs-item:hover,.tabs-item[aria-selected=true]{color:#ffffff}.app-footer{color:#ededef;border-color:#2c2c30}.app-footer-link{color:#ededef}.inline-alert-success a{color:#ffffff}.inline-alert-success a:hover{color:#ffffff}.debug-panel-content{background-color:#161618}

/* YABHost brand rules for dark mode — appended by make_dark.py after the recoloured Hestia dark rules (so these win).
   Black and white since 2026-11-13: black page, #161618 cards, white text and white primary buttons; no gradients. */
:root {
	--color-text: #ededef;
	--color-text-link: #ffffff;
	--color-text-link-hover: #a1a1a6;
	--color-text-heading: #ffffff;
	--color-background: #0b0b0c;
	--alert-border-color: #0000;
	--alert-info-color: #ffffff;
	--alert-danger-color: #f87171;
	--alert-success-color: #4ade80;
	--icon-color-teal: #ffffff;
	--icon-color-purple: #a1a1a6;
	--icon-color-maroon: #a1a1a6;
	--icon-color-red: #f87171;
	--icon-color-green: #4ade80;
	--icon-color-orange: #facc15;
	--icon-color-blue: #ffffff;
	--icon-color-lightblue: #d4d4d8;
	--top-bar-background: #000000;
	--top-bar-box-shadow: none;
	--top-bar-border-bottom: 1px solid #2c2c30;
	--chart-label-color: #a1a1a6;
	--chart-grid-color: #2c2c30;
	--chart-line-1-color: #ffffff;
	--chart-line-2-color: #a1a1a6;
	--chart-line-3-color: #4ade80;
}
.top-bar-logo img { content: normal; } /* back to Hestia's logo-header.svg (white wordmark) on the black bar */
.top-bar-usage-inner,
.top-bar-usage-item { color: #a1a1a6; text-shadow: none; }
.top-bar-usage-inner .u-text-bold { color: #ffffff; }
.top-bar-menu-link { color: #ededef; text-shadow: none; }
.top-bar-menu-link:hover,
.top-bar-menu-link.active,
.top-bar-menu-link:active {
	color: #ffffff;
	text-shadow: none;
	background: #1d1d20;
	border-left-color: #0000;
	border-right-color: #0000;
	box-shadow: inset 0 -3px 0 #ffffff;
}
.top-bar-menu-link-logout { color: #ffffff; }
.main-menu-item-link.active .main-menu-item-label { color: #ffffff; }
@media (width >= 768px) {
	/* inactive tabs: no visible bar; hover/active keep theirs */
	.main-menu-item-link { border-bottom-color: #0000; }
	.main-menu-item-link.active,
	.main-menu-item.focus .main-menu-item-link { border-bottom-color: #ffffff; }
	.main-menu-item.focus .main-menu-item-label { color: #ffffff; }
}
.tabs-item:hover,
.tabs-item[aria-selected=true],
.toolbar-link.selected,
.toolbar-link:hover,
.modal-title { color: #ffffff; }
.button { color: #0b0b0c; text-shadow: none; background: #ffffff; border-color: #ffffff; box-shadow: none; }
.button:hover { color: #0b0b0c; text-shadow: none; background: #d4d4d8; border-color: #d4d4d8; box-shadow: none; }
.button:active { color: #0b0b0c; text-shadow: none; background: #a1a1a6; border-color: #a1a1a6; box-shadow: none; }
.button:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.button:not(.button-secondary) .fas { color: #0b0b0c; } /* black icon on the white button */
.button-secondary { color: #ffffff; text-shadow: none; background: #161618; border-color: #3a3a3f; box-shadow: none; }
.button-secondary:hover { color: #ffffff; background: #1d1d20; border-color: #ffffff; }
.button-secondary:active { color: #ffffff; background: #0f0f10; border-color: #ffffff; }
.button-secondary .fas { color: #ffffff; }
.button-danger:hover { color: #ffffff; text-shadow: none; background: #b91c1c; border-color: #b91c1c; }
.button-danger:active,
.button-danger:focus { color: #ffffff; text-shadow: none; background: #991b1b; border-color: #991b1b; }
.form-control:focus,
.form-select:focus { color: #ffffff; background-color: #0f0f10; border-color: #ffffff; box-shadow: 0 0 0 3px #ffffff33; }
.units-table-row.focus { background-color: #1d1d20; border-left-color: #ffffff; }
.units-table-cell a { color: #ffffff; }
.units-table-cell a:hover { color: #a1a1a6; }
.page-login,
.page-reset { background: #0b0b0c; }
.login { background-color: #161618; border: 1px solid #2c2c30; border-radius: 4px; box-shadow: none; }
.login-title,
.login .form-label { color: #ffffff; }
.login-form-link { color: #ffffff; }
.login-form-link:hover { color: #a1a1a6; }
.login .error { color: #f87171; }
.app-footer p::before { color: #a1a1a6; }
.form-link-danger:hover { color: #ffffff; background-color: #b91c1c; }
.form-link-danger:active { color: #ffffff; background-color: #991b1b; }
.shortcuts .key,
.shortcuts-title { color: #ffffff; }
.box-collapse-header:hover { color: #a1a1a6; }
.inline-alert-danger { color: #f87171; }
.inline-alert-warning { color: #facc15; }
.inline-alert-success { color: #4ade80; }
.inline-alert-success a:active { color: #ffffff; }
.form-control.highlighted { color: #ffffff; background-color: #1d1d20; }
.debug-panel-toggle { color: #ffffff; background-color: #1d1d20; }
.debug-panel-toggle:hover { background-color: #2c2c30; }

}
/* ===== END DARK MODE ===== */

/* ===== Quick Install: apps we don't offer (owner, 2026-10-29) =====
   Hides their cards on Web → Quick Install App. Not a lock: the install URL still works if typed by hand.
   Nextcloud (file storage, AUP), Shopware (512 MB PHP), NamelessMC (PHP <= 8.2), Laravel + Symfony (developer frameworks).
   2026-11-01 install test: Flarum (Hestia posts Flarum 1 field names, Composer installs Flarum 2) and ThirtyBees
   (Hestia downloads the php7.4 build, we run PHP 8.3+) never install.
   Matches the installer folder in the card's image path; recheck after Hestia updates. */
.cards .card:has(img[src^="/src/app/WebApp/Installers/Nextcloud/"]),
.cards .card:has(img[src^="/src/app/WebApp/Installers/Shopware/"]),
.cards .card:has(img[src^="/src/app/WebApp/Installers/NamelessMC/"]),
.cards .card:has(img[src^="/src/app/WebApp/Installers/Laravel/"]),
.cards .card:has(img[src^="/src/app/WebApp/Installers/Symfony/"]),
.cards .card:has(img[src^="/src/app/WebApp/Installers/Flarum/"]),
.cards .card:has(img[src^="/src/app/WebApp/Installers/ThirtyBees/"]) { display: none; }
