/* LionBytes Admin Styling */

/* Basis font */
body,
#adminmenu,
#wpcontent,
.wp-core-ui {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Sidebar achtergrond */
#adminmenu,
#adminmenuwrap,
#adminmenuback {
    background: linear-gradient(180deg, #181f28 0%, #11161d 100%) !important;
}

/* Submenu achtergrond */
#adminmenu .wp-submenu {
    background-color: #141a22 !important;
}

/* Sidebar tekst */
#adminmenu a {
    color: #cbd5e1 !important;
    transition: all 0.2s ease;
    font-weight: 400;
}

/* Hoofdmenu hover + actief */
#adminmenu li.menu-top:hover,
#adminmenu li.opensub > a.menu-top,
#adminmenu li.current a.menu-top,
#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu {
    background: linear-gradient(90deg, #9b7246 0%, #b5895a 100%) !important;
    color: #ffffff !important;
}

/* Actief item extra fix */
#adminmenu li.current a.menu-top {
    background: #9b7246 !important;
    color: #ffffff !important;
}

/* Sidebar iconen goud */
#adminmenu .wp-menu-image:before {
    color: #9b7246 !important;
    margin-right: 4px;
}

/* Sidebar iconen wit bij hover / actief */
#adminmenu li.menu-top:hover .wp-menu-image:before,
#adminmenu li.current .wp-menu-image:before,
#adminmenu li.wp-has-current-submenu .wp-menu-image:before {
    color: #ffffff !important;
}

/* Sidebar tekst lichtblauw bij hover */
#adminmenu li.menu-top:hover > a,
#adminmenu li.menu-top:hover > a .wp-menu-name {
    color: #60a5fa !important;
}

/* Submenu hover / actief streepje */
#adminmenu .wp-submenu a:hover,
#adminmenu .wp-submenu a:focus,
#adminmenu .wp-submenu a.current,
#adminmenu .wp-submenu li.current a,
#adminmenu .wp-submenu li.current a:hover {
    border-left: 2px solid rgba(255,255,255,0.5) !important;
    padding-left: 10px !important;
}

/* Submenu tekst hover lichtblauw */
#adminmenu .wp-submenu a:hover {
    color: #60a5fa !important;
}

/* Topbar */
#wpadminbar {
    background: #181f28 !important;
    font-weight: 500;
}

/* Admin bar alleen tekst, niet de icon containers */
#wpadminbar .ab-label,
#wpadminbar .display-name,
#wpadminbar .ab-item .ab-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Admin bar iconen goud, standaard WP */
#wpadminbar .ab-icon:before,
#wpadminbar .dashicons:before,
#wpadminbar [class*="dashicons-"]:before {
    color: #9b7246 !important;
}

/* Admin bar iconen wit bij hover / focus */
#wpadminbar .ab-item:hover .ab-icon:before,
#wpadminbar .ab-item:hover:before,
#wpadminbar .ab-item:focus .ab-icon:before {
    color: #ffffff !important;
}

/* LiteSpeed icoon niet forceren qua font, alleen kleur */
#wpadminbar #wp-admin-bar-litespeed-menu .ab-icon:before {
    color: #9b7246 !important;
}

/* WordPress logo en menu toggle links verbergen */
#wpadminbar #wp-admin-bar-wp-logo,
#wpadminbar #wp-admin-bar-menu-toggle {
    display: none !important;
}

/* Eerste item strak links */
#wpadminbar .quicklinks > ul > li:first-child {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Site name strak links */
#wpadminbar #wp-admin-bar-site-name {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

#wpadminbar #wp-admin-bar-site-name > .ab-item {
    margin-left: 0 !important;
    padding-left: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
}

/* LionBytes logo voor site name */
#wpadminbar #wp-admin-bar-site-name > .ab-item:before {
    content: "" !important;
    display: inline-block !important;
    width: 24px !important;
    height: 24px !important;
    background-image: url('logo-admin.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    vertical-align: middle !important;
    order: -1;
    margin-left: 6px !important;
    margin-right: 4px !important;
}

/* Buttons */
.wp-core-ui .button-primary {
    background: #9b7246 !important;
    border-color: #9b7246 !important;
}

.wp-core-ui .button-primary:hover {
    background: #7c5a38 !important;
    border-color: #7c5a38 !important;
}

/* Avatar in admin bar rechtsboven */
#wpadminbar #wp-admin-bar-my-account .ab-item {
    display: flex !important;
    align-items: center !important;
    height: 32px !important;
}

/* Kleine avatar rechtsboven */
#wpadminbar #wp-admin-bar-my-account .avatar {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin-top: 0 !important;
}

/* Grote avatar in uitklapmenu */
#wpadminbar #wp-admin-bar-user-info .avatar {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin-left: 8px !important;
    margin-top: 0 !important;
}

/* Alleen 'Hallo' bovenin verbergen */
#wpadminbar #wp-admin-bar-my-account > .ab-item .ab-label {
    font-size: 0 !important;
}

/* Naam zichtbaar houden */
#wpadminbar #wp-admin-bar-my-account > .ab-item .display-name {
    font-size: 13px !important;
    color: #60a5fa !important;
}

/* Dropdown items wit houden */
#wpadminbar #wp-admin-bar-my-account .ab-sub-wrapper .ab-item,
#wpadminbar #wp-admin-bar-my-account .ab-sub-wrapper a,
#wpadminbar #wp-admin-bar-logout > .ab-item {
    font-size: 13px !important;
    color: #ffffff !important;
}
/* ALLE admin bar iconen goud maken (ook plugins zoals Yoast en Customizer) */
#wpadminbar .ab-icon,
#wpadminbar .ab-icon:before,
#wpadminbar .dashicons,
#wpadminbar .dashicons:before,
#wpadminbar .yoast-logo,
#wpadminbar svg {
    color: #9b7246 !important;
    fill: #9b7246 !important;
}

#wpadminbar .ab-item:hover .ab-icon,
#wpadminbar .ab-item:hover .ab-icon:before,
#wpadminbar .ab-item:hover svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* LionBytes dashboard widget */
#lionbytes_dashboard .inside {
    margin: 0;
    padding: 0;
}

.lionbytes-widget {
    padding: 20px;
    background: #181f28;
    color: #e5e7eb;
   }

.lionbytes-widget-header h3 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #ffffff;
}

.lionbytes-widget-header p {
    margin: 0 0 18px;
    color: #cbd5e1;
}

.lionbytes-widget-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.lionbytes-card {
    background: #11161d;
    border-left: 4px solid #9b7246;
    border-radius: 10px;
    padding: 14px;
}

.lionbytes-label {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.lionbytes-value {
    display: block;
    font-size: 18px;
    color: #ffffff;
}

.lionbytes-value.ok {
    color: #d6b16f;
}

.lionbytes-widget-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lionbytes-widget-actions .button-primary {
    background: #9b7246 !important;
    border-color: #9b7246 !important;
}

.lionbytes-widget-actions .button-primary:hover {
    background: #7c5a38 !important;
    border-color: #7c5a38 !important;
}

@media (max-width: 960px) {
    .lionbytes-widget-grid {
        grid-template-columns: 1fr;
    }
}

/* LionBytes widget upgrade */
#lionbytes_dashboard .inside {
    padding: 0 !important;
    margin: 0 !important;
}

#lionbytes_dashboard {
    border: none !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3) !important;
    border-radius: 12px !important;
    overflow: hidden;
}

/* Header */
#lionbytes_dashboard .postbox-header {
    background: #181f28 !important;
    border-bottom: 1px solid #111 !important;
}

#lionbytes_dashboard h2 {
    color: #ffffff !important;
}

/* Content */
.lionbytes-widget {
    background: #181f28;
    color: #e5e7eb;
    padding: 20px;
}

/* Cards */
.lionbytes-card {
    background: #11161d;
    border-left: 3px solid #9b7246;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

/* Labels */
.lionbytes-label {
    font-size: 12px;
    color: #94a3b8;
}

/* Values */
.lionbytes-value {
    font-size: 16px;
    color: #d6b16f;
}

.lionbytes-card {
    transition: all 0.2s ease;
}

.lionbytes-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 8px 20px rgba(255,255,255,0.05);
}

.lionbytes-card:hover .lionbytes-label {
    color: rgba(255,255,255,0.85);
}

.lionbytes-widget-header {
    position: relative;
    overflow: hidden;
}

.lionbytes-widget-header::after {
    content: "";
    position: absolute;
    top: 150%;
    left: 50%;
    width: 240px;
    height: 240px;
    background: url('../assets/logo-admin.png') no-repeat center;
    background-size: contain;
    opacity: 0.05;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

#lionbytes_dashboard .inside {
    margin: 0 !important;
    padding: 0 !important;
}

.lionbytes-widget {
    font-family: Inter, sans-serif;
    background: linear-gradient(135deg, #181f28 0%, #222c38 100%);
    color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
}

.lionbytes-widget-header {
    padding: 28px 24px 18px 24px;
    background: linear-gradient(135deg, #181f28 0%, #222c38 100%);
    text-align: center;
}

.lionbytes-widget-header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.lionbytes-widget-logo-center {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto 14px auto;
    object-fit: contain;
}

.lionbytes-widget-header-center h3 {
    margin: 0 0 8px 0 !important;
    color: #ffffff !important;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}

.lionbytes-widget-header-center p {
    margin: 0;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    line-height: 1.5;
    max-width: 620px;
}

.lionbytes-widget-body {
    padding: 0 22px 22px 22px;
}

.lionbytes-widget-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.lionbytes-card {
    background: rgba(0,0,0,0.28);
    border-left: 3px solid #9b7246;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.lionbytes-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 8px 20px rgba(255,255,255,0.05);
}

.lionbytes-card:hover .lionbytes-label {
    color: rgba(255,255,255,0.9);
}

.lionbytes-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.68);
    margin-bottom: 8px;
}

.lionbytes-value {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: #f0b85a;
    line-height: 1.3;
}

.lionbytes-value.ok {
    color: #f0b85a;
}

.lionbytes-widget-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lionbytes-widget-actions .button.button-primary {
    background: #9b7246 !important;
    border-color: #9b7246 !important;
    color: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.lionbytes-widget-actions .button.button-primary:hover {
    background: #7c5a38 !important;
    border-color: #7c5a38 !important;
}

.lionbytes-widget-actions .button:not(.button-primary) {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.22);
    color: #ffffff;
}

.lionbytes-widget-actions .button:not(.button-primary):hover {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255,255,255,0.06);
}

@media (max-width: 900px) {
    .lionbytes-widget-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    .lionbytes-widget-grid {
        grid-template-columns: 1fr;
    }
}






#lionbytes_dashboard.postbox {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: hidden;
    border-radius: 16px;
}

/* HEADER FIX */
#lionbytes_dashboard .postbox-header {
    background: linear-gradient(135deg, #181f28 0%, #222c38 100%) !important;
    border-bottom: none !important;
    border-radius: 16px 16px 0 0;
}

/* Titel */
#lionbytes_dashboard .hndle {
    color: #ffffff !important;
    font-weight: 600;
}

/* pijltjes rechts */
#lionbytes_dashboard .handle-actions button {
    color: #ffffff !important;
}

/* inhoud */
#lionbytes_dashboard .inside {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}
#lionbytes_dashboard .inside {
    padding: 0 !important;
    margin: 0 !important;
}




#lionbytes_dashboard {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

#lionbytes_dashboard.postbox {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

#lionbytes_dashboard .postbox-header {
    background: linear-gradient(135deg, #181f28 0%, #222c38 100%) !important;
    border-bottom: none !important;
    border-radius: 16px 16px 0 0 !important;
    overflow: hidden !important;
}

#lionbytes_dashboard .inside {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.lionbytes-widget {
    margin: 0 !important;
    border-radius: 0 0 16px 16px !important;
    overflow: hidden !important;
}


