/* Skip Links - Criteriu 2.4.1 */
.wcag-skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100000;
}

.wcag-skip-link:focus {
    top: 0;
}

/* Toolbar Principal */
.wcag-toolbar {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    font-family: Arial, sans-serif;
}

.wcag-toggle {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.wcag-toggle:hover {
    background: #005a87;
    transform: scale(1.05);
}

.wcag-toggle:focus {
    outline: 3px solid #ff0;
    outline-offset: 2px;
}

.wcag-icon {
    font-size: 24px;
}

/* Panel */
.wcag-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: #fff;
    border: 2px solid #0073aa;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    max-height: 500px;
    overflow-y: auto;
}

.wcag-panel[hidden] {
    display: none;
}

.wcag-header {
    background: #0073aa;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wcag-header h2 {
    margin: 0;
    font-size: 18px;
}

.wcag-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
}

.wcag-close:hover {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.wcag-body {
    padding: 20px;
}

.wcag-group {
    margin-bottom: 20px;
}

.wcag-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.wcag-group input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

.wcag-buttons {
    display: flex;
    gap: 10px;
}

.wcag-btn {
    flex: 1;
    padding: 10px;
    background: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
}

.wcag-btn:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.wcag-btn:focus {
    outline: 3px solid #ff0;
    outline-offset: 2px;
}

.wcag-btn-reset {
    width: 100%;
    background: #dc3232;
    color: #fff;
    border-color: #dc3232;
}

.wcag-btn-reset:hover {
    background: #a00;
}

.wcag-footer {
    padding: 15px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.wcag-footer a {
    color: #0073aa;
    text-decoration: none;
}

.wcag-footer a:hover {
    text-decoration: underline;
}

/* Funcționalități Accesibilitate */

/* Mărire text */
body.wcag-font-100 { font-size: 100%; }
body.wcag-font-125 { font-size: 125%; }
body.wcag-font-150 { font-size: 150%; }
body.wcag-font-175 { font-size: 175%; }
body.wcag-font-200 { font-size: 200%; }

/* Contrast ridicat */
body.wcag-high-contrast {
    background: #000 !important;
    color: #fff !important;
}

body.wcag-high-contrast * {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

body.wcag-high-contrast a {
    color: #ff0 !important;
}

body.wcag-high-contrast img {
    opacity: 0.8;
    border: 2px solid #fff !important;
}

/* Subliniere link-uri */
body.wcag-underline-links a {
    text-decoration: underline !important;
}

/* Cursor mărit */
body.wcag-large-cursor,
body.wcag-large-cursor * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><circle cx="16" cy="16" r="10" fill="black" stroke="white" stroke-width="2"/></svg>') 16 16, auto !important;
}

/* Responsive */
@media (max-width: 768px) {
    .wcag-toolbar {
        right: 10px;
        bottom: 10px;
    }
    
    .wcag-panel {
        width: calc(100vw - 40px);
        right: -10px;
    }
}