/* --- Base Styles --- */
.custom-taskbar-btn {
    background: none !important;
    text-decoration: none !important;
}

/* Common PNG Icon Container */
.custom-taskbar-btn .button-inner::before,
.custom-taskbar-btn.inner::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('icons/spam.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

/* ==========================================
   1. CLASSIC SKIN FIXES (Light Header)
   ========================================== */
#taskbar a.custom-taskbar-btn,
body.skin-classic #taskbar a.custom-taskbar-btn {
    padding: 0 8px !important;
    display: inline-block !important;
}

#taskbar a.custom-taskbar-btn .button-inner,
body.skin-classic #taskbar a.custom-taskbar-btn .button-inner {
    background: none !important;
    padding: 0 !important;
    color: #1f3d66 !important; /* Standard Classic dark blue text */
    font-weight: bold !important;
    font-size: 11px !important;
    line-height: 19px;
    text-shadow: none !important;
}

#taskbar a.custom-taskbar-btn .button-inner::before {
    vertical-align: middle;
    margin-right: 4px;
    margin-top: -2px;
}

/* ==========================================
   2. LARRY SKIN FIXES (Dark Header + Blue Text)
   ========================================== */
body.skin-larry #taskbar a.custom-taskbar-btn,
#taskbar a.custom-taskbar-btn {
    padding: 0 10px !important;
    display: inline-block !important;
}

body.skin-larry #taskbar a.custom-taskbar-btn .button-inner {
    background: none !important;
    padding: 0 !important;
    color: #c9e4f6 !important; /* Native Larry light blue text */
    font-weight: bold !important;
    font-size: 12px !important; /* Native Larry size */
    line-height: 19px;
    text-shadow: 0 1px 1px black !important; /* Restores standard native drop shadow */
    font-family: "Lucida Grande", "Lucida Sans Unicode", Geneva, Verdana, sans-serif !important;
}

body.skin-larry #taskbar a.custom-taskbar-btn:hover .button-inner {
    color: white !important; /* Brightens on hover */
}

body.skin-larry #taskbar a.custom-taskbar-btn .button-inner::before {
    vertical-align: middle;
    margin-right: 5px;
    margin-top: -2px;
}


/* ==========================================
   2. ELASTIC SKIN FIXES
   ========================================== */
	 
#taskmenu a.custom-taskbar-btn::before {
	height: 0px !important;
}
	 

#taskmenu a.custom-taskbar-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75rem 0.5rem !important; /* Matches native padding instead of fixed height */
    height: auto !important;             /* Removes artificial height gap */
    font-size: 1.25em !important;
    font-family: Roboto, sans-serif !important;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
}

#taskmenu a.custom-taskbar-btn:hover {
    color: #ffffff !important;
}

/* Icon placement above label */
#taskmenu a.custom-taskbar-btn .button-inner::before {
    content: "";
    display: block !important;
    margin: 0 auto 0.25rem auto !important; /* Tightens gap between icon and text */
    width: 24px;
    height: 24px;
    background-image: url('icons/spam.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

/* Label typography */
#taskmenu a.custom-taskbar-btn .button-inner {
    display: block;
    font-size: 1rem !important;
    font-family: Roboto, sans-serif !important;
    line-height: 1.2;
    white-space: nowrap;
    color: inherit !important;
}