/* Admin Bar */
#wp-admin-bar-wcagaat:hover .wcagaat-dropdown {
	display: block;
}

#wp-admin-bar-wcagaat .ab-icon:before {
	top: 2px !important;
}

#wp-admin-bar-wcagaat .ab-submenu .wcagaat-toggle {
    margin-right: 4px;
    margin-top: -2px;
}

#wp-admin-bar-wcagaat label {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#wp-admin-bar-wcagaat .wcagaat-count-indicator {
    display: inline-block;
    background-color: #dc3232; /* WordPress red */
    color: #fff;
    /* font-size: 12px; */
    margin: 0 0 0 2px !important;
    padding: 0 5px;
    /* height: 100%; */
}

/* Image Alt Text */
.wcagaat-missing-alt {
    outline: 3px solid #c00;
    outline-offset: 2px;
    background-color: rgba(255, 0, 0, 0.1);
    position: relative;
}

.wcagaat-missing-alt::before {
    content: "⚠";
    position: absolute;
    top: 2px;
    left: 2px;
    background: #c00;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
    z-index: 10000;
    pointer-events: none;
}

.wcagaat-missing-wrapper {
	position: relative;
	display: inline-block;
	outline: 3px solid #c00;
	background-color: rgba(255, 0, 0, 0.1);
}

.wcagaat-missing-wrapper::before {
    content: attr(data-label);
	position: absolute;
	top: 2px;
	left: 2px;
	background: #c00;
	color: #fff;
	font-size: 12px;
	font-weight: bold;
	padding: 4px;
	border-radius: 3px;
	z-index: 9999;
	pointer-events: none;
	line-height: 1;
}

/* Poor Color Contrast */
.wcagaat-poor-contrast {
    outline: 2px dashed red;
}

.wcagaat-contrast-badge {
    position: absolute;
    background: #c00 !important;
    color: #fff !important;
    font-size: 11px;
    padding: 2px 4px;
    border-radius: 2px;
    text-decoration: underline;
    z-index: 100000;
    font-weight: bold;
    line-height: 1;
    pointer-events: auto;
    transform: translate(-2px, -15px);
}

.wcagaat-contrast-badge:hover {
    color: #fff !important;
    text-decoration: underline;
}

/* Vague Link Texts */
.wcagaat-vague-link-text {
    outline: 2px dashed orange;
    background-color: rgba(255, 165, 0, 0.15);
    cursor: help;
}

/* Heading hierarchy label style */
.wcagaat-heading-label {
	background-color: #2c3e50 !important;
	color: #ffffff !important;
	font-size: 14px !important;
	padding: 2px 4px;
	margin-left: 6px;
	border-radius: 3px;
	vertical-align: middle;
	display: inline-block;
    font-weight: bold !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

.wcagaat-heading-label.wcagaat-error {
	background-color: #e74c3c;
	color: #fff;
}

/* Outline the heading itself when there's an error */
.wcagaat-heading-error {
	outline: 2px dashed #e74c3c;
	outline-offset: 2px;
}

/* Links Missing Underlines */
.wcagaat-underline-issue {
	outline: 2px dashed #9b59b6;
	position: relative;
}

.wcagaat-underline-label {
	position: absolute;
	top: -10px;
	right: -10px;
	background: #9b59b6;
	color: #fff;
	font-size: 12px;
	padding: 2px 4px;
	border-radius: 3px;
}

#wp-admin-bar-wcagaat > .ab-item {
    padding: 0 5px !important;
}