.accessibility-toolbar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.accessibility-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.accessibility-toggle:hover {
    background: #005a87;
    transform: scale(1.1);
}

.accessibility-toggle:focus {
    outline: 3px solid #ff6b6b;
    outline-offset: 2px;
}

.accessibility-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 340px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    overflow: hidden;
}

.accessibility-header {
    background: #0073aa;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accessibility-header h3 {
    margin: 0;
    font-size: 18px;
}

.accessibility-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.accessibility-content {
    padding: 20px;
    max-height: 550px;
    overflow-y: auto;
}

.accessibility-group {
    margin-bottom: 20px;
}

.accessibility-group h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.accessibility-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.accessibility-btn {
    flex: 1;
    min-width: 70px;
    padding: 12px 10px;
    border: 2px solid #0073aa;
    background: white;
    color: #0073aa;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.accessibility-btn:hover {
    background: #0073aa;
    color: white;
    transform: translateY(-2px);
}

.accessibility-btn:focus {
    outline: 3px solid #ff6b6b;
    outline-offset: 2px;
}

.accessibility-btn.active {
    background: #0073aa;
    color: white;
}

.reset-btn {
    width: 100%;
    background: #0073aa;
    border-color: #0073aa;
    color: white;
    font-size: 14px;
}

.reset-btn:hover {
    background: #1380b3;
    border-color: #1380b3;
}

.accessibility-toggle-group {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.accessibility-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.accessibility-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #0073aa;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

input:focus + .slider {
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.5);
}

/* Zoom Styles - thjeshte dhe efikase */
body {
    --text-zoom: 1;
}

body.zoom-level-1 { --text-zoom: 1.05; }
body.zoom-level-2 { --text-zoom: 1.1; }
body.zoom-level-3 { --text-zoom: 1.15; }

p, li, span, a, h1, h2, h3, h4, h5, h6 {
    font-size: calc(1em * var(--text-zoom)) !important;
}


/* High Contrast */
body.high-contrast {
    background: #000 !important;
}

body.high-contrast *:not(.accessibility-toolbar):not(.accessibility-toolbar *) {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

body.high-contrast a:not(.accessibility-toolbar a) {
    color: #ffff00 !important;
    font-weight: bold !important;
}

body.high-contrast img:not(.accessibility-toolbar img) {
    filter: contrast(1.5) brightness(0.9);
}

body.high-contrast button:not(.accessibility-toolbar button),
body.high-contrast input:not(.accessibility-toolbar input) {
    background: #333 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}

/* Dyslexia Mode */
body.dyslexia-mode {
    background: #faf8f3 !important;
}

body.dyslexia-mode *:not(.accessibility-toolbar):not(.accessibility-toolbar *) {
    font-family: 'OpenDyslexic', Arial, 'Comic Sans MS', sans-serif !important;
    line-height: 1.8 !important;
    letter-spacing: 0.05em !important;
    word-spacing: 0.16em !important;
}

body.dyslexia-mode p:not(.accessibility-toolbar p),
body.dyslexia-mode li:not(.accessibility-toolbar li),
body.dyslexia-mode div:not(.accessibility-toolbar div) {
    color: #333 !important;
}

/* Keyboard Navigation Focus */
body.keyboard-navigation *:focus:not(.accessibility-toolbar *) {
    outline: 4px solid #ff6b6b !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 6px rgba(255, 107, 107, 0.3) !important;
    z-index: 9999;
    position: relative;
}

/* Highlight Links - me verdh */
body.highlight-links a:not(.accessibility-toolbar a) {
    background: #ffff00 !important;
    color: #000 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

body.highlight-links a:hover:not(.accessibility-toolbar a) {
    background: #ffd700 !important;
}

/* Text Spacing */
body.text-spacing *:not(.accessibility-toolbar *) {
    line-height: 2 !important;
    letter-spacing: 0.12em !important;
    word-spacing: 0.16em !important;
}

body.text-spacing p:not(.accessibility-toolbar p),
body.text-spacing li:not(.accessibility-toolbar li) {
    margin-bottom: 1.5em !important;
}

/* Responsive */
@media (max-width: 768px) {
    .accessibility-panel {
        width: 90vw;
        max-width: 340px;
    }
    
    .accessibility-toolbar {
        bottom: 15px;
        left: 15px;
    }
    
    .accessibility-toggle {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .accessibility-panel{
        right: 30px;
    }
}