

/* Base dark background for admin */
#adminmenu,
#adminmenu .wp-submenu,
#adminmenuback,
#adminmenuwrap {
    background-color: #1d2327 !important;
}

/* Top admin bar */
#wpadminbar,
#wpadminbar .menupop .ab-sub-wrapper,
#wpadminbar .quicklinks .ab-sub-wrapper {
    background-color: #1d2327 !important;
}

/* Menu text */
#adminmenu a,
#adminmenu .wp-submenu a {
    color: #f5f5f5 !important;
}

/* Remove left borders */
#adminmenu .wp-submenu,
#adminmenu li,
#adminmenu a,
#adminmenu li.menu-top {
    border-left: none !important;
}

/* Default icon colour */
#adminmenu div.wp-menu-image:before,
#adminmenu li a .wp-menu-image:before,
#adminmenu [style*="#72aee6"] {
    color: #f5f5f5 !important;
}

/* Main menu active / hover */
#adminmenu li.menu-top:hover > a.menu-top,
#adminmenu li.menu-top > a.menu-top:focus,
#adminmenu li.wp-has-current-submenu > a.wp-has-current-submenu,
#adminmenu li.current a.menu-top,
#adminmenu .wp-menu-open > a.menu-top {
    background-color: #2271b1 !important;
    color: #fff !important;
}

/* Icons when main item active / hover */
#adminmenu li.menu-top:hover div.wp-menu-image:before,
#adminmenu li.menu-top:focus div.wp-menu-image:before,
#adminmenu li.current div.wp-menu-image:before,
#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,
#adminmenu li.wp-has-current-submenu:hover div.wp-menu-image:before,
#adminmenu .wp-menu-open div.wp-menu-image:before {
    color: #1d2327 !important;
}

/* Submenu hover/current – text only */
#adminmenu .wp-submenu a:hover {
    color: #2271b1 !important;
    background-color: transparent !important;
}

#adminmenu .wp-submenu li.current a,
#adminmenu .wp-submenu li.current a:hover {
    color: #2271b1 !important;
    background-color: transparent !important;
}

/* Arrow indicator colour */
ul#adminmenu a.wp-has-current-submenu:after,
ul#adminmenu > li.current > a.current:after {
    border-right-color: #000000 !important;
}

/* Collapse menu button hover */
#collapse-button:hover,
#collapse-button:focus {
    color: #2271b1 !important;
}

/* Buttons */
.wp-core-ui .button-primary,
.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus,
.wp-core-ui .button-primary:active {
    background-color: #2271b1 !important;
    border-color: #2271b1 !important;
    color: #fff !important;
}

/* Admin bar hover */
#wpadminbar .ab-item:hover,
#wpadminbar .ab-item:focus,
#wpadminbar .ab-item.ab-item-active {
    background-color: #2271b1 !important;
    color: #fff !important;
}

/* Notices */
.notice.notice-info,
.notice.notice-info p {
    background-color: #2271b1 !important;
    border-left-color: #2271b1 !important;
    color: #fff !important;
}

/* Admin bar site name */
#wpadminbar #wp-admin-bar-site-name > .ab-item {
    color: #f5f5f5 !important;
    display: flex;
    align-items: center;
}

#wpadminbar #wp-admin-bar-site-name > .ab-item::before {
    content:"";
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 6px;
    background-image: url("https://www.thecutterinn.co.uk/wp-content/uploads/2021/10/favicon.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Hide WP logo */
#wpadminbar #wp-admin-bar-wp-logo {
    display: none !important;
}

/* =========================================================
   LOGIN PAGE STYLING
   ========================================================= */

body.login {
    background-color: #1d2327 !important;
}


body.login #login h1 a {
    background-image: url("https://www.thecutterinn.co.uk/wp-content/uploads/2021/10/favicon.png") !important;
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    width: 260px !important;
    height: 80px !important;
    margin-bottom: 20px !important;
}

/* Login form container */
body.login #login {
    padding-top: 60px;
}

/* Login form card */
body.login #loginform {
    background: #111111 !important;
    border-radius: 8px !important;
    border: 1px solid #1f1f1f !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6) !important;
    padding: 26px 26px 30px !important;
}

/* Labels & small text */
body.login label {
    color: #f5f5f5 !important;
}

body.login #nav a,
body.login #backtoblog a {
    color: #2271b1 !important;
}

body.login #nav a:hover,
body.login #nav a:focus,
body.login #backtoblog a:hover,
body.login #backtoblog a:focus {
    color: #ffffff !important;
}

/* Inputs */
body.login .input,
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
    background-color: #1d2327 !important;
    border: 1px solid #333333 !important;
    color: #f5f5f5 !important;
    box-shadow: none !important;
}

body.login .input:focus,
body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
    border-color: #2271b1 !important;
    box-shadow: 0 0 0 1px #2271b1 !important;
}

/* Remember me checkbox label */
body.login .forgetmenot label {
    color: #f5f5f5 !important;
}

/* Language switcher select */
body.login .language-switcher select {
    background-color: #1d2327 !important;
    border: 1px solid #333333 !important;
    color: #f5f5f5 !important;
}

/* =========================================================
   CUSTOM DASHBOARD WIDGET STYLES
   ========================================================= */

.ubie-dashboard-widget {
    padding: 4px 0;
}

.ubie-dashboard-actions {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ubie-dashboard-actions li {
    margin-bottom: 8px;
}

.ubie-dashboard-actions li:last-child {
    margin-bottom: 0;
}

.ubie-dashboard-link {
    display: block;
    padding: 10px 12px;
    border-radius: 4px;
    background-color: #1d2327;
    color: #f5f5f5;
    text-decoration: none;
    border: 1px solid #1f1f1f;
}

.ubie-dashboard-link:hover,
.ubie-dashboard-link:focus {
    background-color: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

/* Counts underneath dashboard links */
.ubie-dashboard-count-line {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.85;
}

.ubie-dashboard-count-number {
    font-weight: 600;
    margin-right: 3px;
}

.ubie-dashboard-count-label {
    font-weight: 400;
}

/* Hide ONLY the 'Welcome' checkbox in Screen Options */
#screen-options-wrap input[value="welcome-panel"],
#screen-options-wrap label[for="welcome-panel-hide"] {
    display: none !important;
}

/* Remove button focus glow */
.wp-core-ui .button:focus {
    box-shadow: none !important;
}

/* =========================================================
   v1.5.4 – Login heading + lost password polish
   (keeps all previous admin styling intact)
   ========================================================= */

/* Heading under logo on all login-related screens */
.ubie-login-heading {
    padding-top: 20px;
    padding-bottom: 5px;
    text-align: center;
    color: #f5f5f5;
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 20px;
    letter-spacing: 0.5px;
}

/* Slightly tighter gap under logo */
body.login #login h1 a {
    margin-bottom: 10px !important;
}

/* Make lost password form match the login card */
body.login #loginform,
body.login #lostpasswordform {
    background: #111111 !important;
    border-radius: 8px !important;
    border: 1px solid #1f1f1f !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6) !important;
    padding: 26px 26px 30px !important;
}

/* Branded notice / success boxes on login & reset screens */
body.login .message,
body.login .success {
    background-color: #2271b1 !important;
    border-left: none !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 14px 16px !important;
    margin-bottom: 18px !important;
}


@media (max-width: 782px) {
    body:not(.ubie-modern) #wpadminbar #wp-admin-bar-site-name:not(.has-site-icon) > .ab-item::before {
        content:"\f102" !important;
        flex-shrink: 0;
        background-image: none !important;
        width: 52px !important;
        height: auto !important;
        margin: 0 !important;
    }

    body:not(.ubie-modern) #wpadminbar #wp-admin-bar-site-name.has-site-icon > .ab-item::before {
        content: none !important;
    }
}


.ubie-elements-admin-wrap {
    max-width: 1180px;
}

.ubie-elements-admin-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 24px 0 20px;
    padding: 28px;
    background: #1d2327;
    border-radius: 18px;
    color: #f5f5f5;
    border: 1px solid #1f1f1f;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.ubie-elements-admin-hero h1 {
    color: #ffffff;
    font-size: 32px;
    line-height: 1.15;
    margin: 4px 0 10px;
}

.ubie-elements-admin-hero p {
    max-width: 760px;
    color: #d8d8d8;
    font-size: 15px;
    margin: 0;
}

.ubie-elements-admin-hero strong,
.ubie-elements-kicker {
    color: #2271b1;
}

.ubie-elements-kicker {
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px !important;
}

.ubie-elements-list {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.ubie-element-card {
    background: #ffffff;
    border: 1px solid #dcdcde;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.ubie-element-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eeeeee;
}

.ubie-element-card-head h2 {
    margin: 7px 0 0;
    font-size: 21px;
    line-height: 1.2;
}

.ubie-element-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #2271b1;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.ubie-element-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ubie-element-card label,
.ubie-element-full {
    display: block;
}

.ubie-element-card label > span,
.ubie-element-full > span {
    display: block;
    margin-bottom: 7px;
    color: #1d2327;
    font-weight: 700;
}

.ubie-element-card input[type="text"],
.ubie-element-card input[type="url"],
.ubie-element-card textarea,
.ubie-element-card select {
    width: 100%;
    max-width: none;
    border-radius: 9px;
    border-color: #c7c7c7;
    padding: 8px 10px;
}

.ubie-element-card textarea {
    min-height: 118px;
    resize: vertical;
}

.ubie-element-card em {
    display: block;
    margin-top: 7px;
    color: #646970;
    font-size: 12px;
}

.ubie-element-full {
    margin-top: 16px;
}

.ubie-element-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eeeeee;
}

.ubie-toggle-row {
    display: inline-flex !important;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 999px;
    background: #f7f7f7;
    border: 1px solid #e2e2e2;
}

.ubie-toggle-row span {
    margin: 0 !important;
}

.ubie-elements-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 22px;
    padding: 16px;
    background: rgba(240, 240, 241, 0.94);
    backdrop-filter: blur(8px);
    border: 1px solid #dcdcde;
    border-radius: 14px;
}

.ubie-custom-dashboard-element {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 8px 0;
}

.ubie-custom-dashboard-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #1d2327;
    color: #72aee6;
    font-size: 24px;
}

.ubie-custom-dashboard-icon:before {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.ubie-custom-dashboard-body {
    flex: 1;
    min-width: 0;
}

.ubie-custom-dashboard-content p:first-child {
    margin-top: 0;
}

.ubie-custom-dashboard-content p:last-child,
.ubie-custom-dashboard-button-wrap {
    margin-bottom: 0;
}

@media (max-width: 782px) {
    .ubie-elements-admin-hero,
    .ubie-element-card-head,
    .ubie-element-settings-row,
    .ubie-elements-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ubie-element-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   v1.7.8 – Hideable dashboard elements
   ========================================================= */
.ubie-element-toggle-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

/* Keep dashboard element controls inside the natural WordPress widget flow.
   The close button is a real flex item, not an overlay, so it cannot cover text. */
.ubie-custom-dashboard-element {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 8px 0;
}

.ubie-custom-dashboard-icon {
    order: 1;
}

.ubie-custom-dashboard-body {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
}

.ubie-dashboard-element-close {
    position: static;
    order: 3;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    box-sizing: border-box;
    border: 0;
    border-radius: 50%;
    background: #1d2327;
    color: #72aee6;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 2px 0 0 auto;
    line-height: 0;
    appearance: none;
    -webkit-appearance: none;
}

.ubie-dashboard-element-close-icon {
    display: block;
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    pointer-events: none;
    overflow: visible;
}

.ubie-dashboard-element-close-icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.ubie-dashboard-element-close:hover,
.ubie-dashboard-element-close:focus {
    background: #2271b1;
    color: #fff;
    outline: none;
}

@media (max-width: 782px) {
    .ubie-element-toggle-stack {
        justify-content: flex-start;
    }

    .ubie-custom-dashboard-element {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .ubie-custom-dashboard-element {
        gap: 10px;
    }

    .ubie-custom-dashboard-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .ubie-custom-dashboard-icon:before {
        font-size: 22px;
        width: 22px;
        height: 22px;
    }

    .ubie-dashboard-element-close {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
        min-width: 26px;
        min-height: 26px;
    }
}


/* =========================================================
   v1.7.9 – Dashboard greeting heading
   ========================================================= */
body.index-php #wpbody-content .wrap > h1:first-child {
    color: transparent;
    font-size: 0;
    line-height: 1.18;
    letter-spacing: -0.03em;
    margin: 34px 0 34px;
    max-width: 1180px;
}

body.index-php #wpbody-content .wrap > h1:first-child::before,
body.index-php #wpbody-content .wrap > h1:first-child::after {
    color: #1d2327;
    font-size: clamp(28px, 3.1vw, 40px);
    line-height: 1.18;
}

body.index-php #wpbody-content .wrap > h1:first-child::before {
    font-weight: 700;
}

body.index-php #wpbody-content .wrap > h1:first-child::after {
    font-weight: 400;
}

body.index-php #dashboard-widgets-wrap {
    margin-top: 8px;
}

@media (max-width: 782px) {
    body.index-php #wpbody-content .wrap > h1:first-child {
        line-height: 1.25;
        margin: 24px 0 26px;
    }

    body.index-php #wpbody-content .wrap > h1:first-child::before,
    body.index-php #wpbody-content .wrap > h1:first-child::after {
        font-size: clamp(24px, 8vw, 32px);
        line-height: 1.25;
    }
}

@media (max-width: 480px) {
    body.index-php #wpbody-content .wrap > h1:first-child {
        margin: 22px 0 24px;
    }

    body.index-php #wpbody-content .wrap > h1:first-child::after {
        display: block;
        margin-top: 4px;
    }
}

/* 1.9.18: readable "View website" in the top bar when hovered or focused
   (black on the yellow highlight instead of white). */
#wpadminbar #wp-admin-bar-site-name > .ab-item:hover,
#wpadminbar #wp-admin-bar-site-name > .ab-item:focus,
#wpadminbar #wp-admin-bar-site-name.hover > .ab-item,
#wpadminbar #wp-admin-bar-site-name > .ab-item.ab-item-active {
    color: #1d2327 !important;
}


.ubie-elements-admin-wrap .notice,
.ubie-elements-admin-wrap .notice p,
.ubie-elements-admin-wrap div.updated p,
.ubie-elements-admin-wrap div.error p {
    color: #1d2327;
}

.ubie-elements-admin-wrap .notice a,
.ubie-elements-admin-wrap div.updated a,
.ubie-elements-admin-wrap div.error a {
    color: #1d2327;
    text-decoration: underline;
}

.ubie-elements-admin-wrap > hr.wp-header-end {
    margin: 0;
}

/* 1.10.3: "Remember me" box matches the dark login card on every screen size
   (WordPress makes it a large white square on phones and blue when ticked). */
body.login .forgetmenot input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin: 0 6px 0 0;
    border: 1px solid #5a5a5a;
    border-radius: 5px;
    background: #1d2327;
    box-shadow: none;
    vertical-align: middle;
}

body.login .forgetmenot input[type="checkbox"]:checked {
    border-color: #2271b1;
    background: #2271b1;
}

body.login .forgetmenot input[type="checkbox"]:checked::before {
    margin: -1px 0 0 -1px;
    width: 18px;
    height: 18px;
    filter: brightness(0);
}

body.login .forgetmenot input[type="checkbox"]:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.5);
    outline: 2px solid transparent;
}

@media screen and (max-width: 782px) {
    body.login .forgetmenot input[type="checkbox"] {
        width: 24px;
        height: 24px;
    }

    body.login .forgetmenot input[type="checkbox"]:checked::before {
        width: 24px;
        height: 24px;
        margin: -1px 0 0 -1px;
    }
}


body.login #login h1 a {
    width: 340px !important;
    max-width: 100% !important;
    height: 104px !important;
    margin: 0 auto 12px !important;
}

@media screen and (max-width: 480px) {
    body.login #login h1 a {
        width: 300px !important;
        height: 92px !important;
    }
}

/* 1.10.4: easy-to-tap links under the login box ("Forgot password?", "Log in") */
body.login #nav a,
body.login #backtoblog a {
    display: inline-block;
    min-height: 44px;
    padding: 12px 8px;
    box-sizing: border-box;
    line-height: 20px;
}

body.login #nav {
    margin-top: 12px;
}
