/* Accessibility Widget Floating Button */
.accessibility-widget-btn {
    position: fixed;
    bottom: 95px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--base-color);
    color: var(--light);
    border: none;
    box-shadow: 0 4px 16px var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    z-index: 999999;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.accessibility-widget-btn:hover, .accessibility-widget-btn:focus {
    background: var(--hover-color);
    box-shadow: 0 8px 24px var(--shadow-strong);
    outline: 2px solid var(--hover-color);
    transform: scale(1.08);
}

/* Accessibility Widget Panel */
.accessibility-widget-panel {
    position: fixed;
    bottom: 100px;
    right: 32px;
    width: 340px;
    max-width: 95vw;
    background: var(--card-background);
    color: var(--light);
    border-radius: 18px;
    box-shadow: 0 8px 32px var(--shadow-strong);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.3s, transform 0.3s;
}
.accessibility-widget-panel.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.accessibility-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 10px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--lighter-border);
}
.accessibility-widget-close {
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 4px;
    border-radius: 4px;
    transition: background 0.2s;
}
.accessibility-widget-close:hover, .accessibility-widget-close:focus {
    background: var(--base-color-light);
    color: var(--base-color);
    outline: 2px solid var(--base-color);
}

.accessibility-widget-body {
    padding: 18px 20px 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.accessibility-widget-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.accessibility-widget-row label {
    font-size: 1rem;
    color: var(--light);
    flex: 1 1 60%;
}
.accessibility-widget-row input[type="color"] {
    width: 38px;
    height: 38px;
    border: 2px solid var(--lighter-border);
    border-radius: 8px;
    background: var(--card-background);
    cursor: pointer;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px var(--shadow-light);
}
.accessibility-widget-row input[type="color"]:focus {
    border: 2px solid var(--base-color);
    outline: none;
    box-shadow: 0 0 0 2px var(--base-color-light);
}

.accessibility-widget-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 20px 18px 20px;
    border-top: 1px solid var(--lighter-border);
}
.accessibility-widget-save, .accessibility-widget-reset {
    background: var(--base-color);
    color: var(--light);
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px var(--shadow-light);
}
.accessibility-widget-save:hover, .accessibility-widget-save:focus {
    background: var(--hover-color);
    color: var(--light);
    outline: 2px solid var(--hover-color);
}
.accessibility-widget-reset {
    background: var(--lighter-greyish);
    color: var(--light);
}
.accessibility-widget-reset:hover, .accessibility-widget-reset:focus {
    background: var(--base-color-light);
    color: var(--base-color);
    outline: 2px solid var(--base-color);
}

@media (max-width: 600px) {
    .accessibility-widget-btn {
        bottom: 75px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
    .url-shortener-widget-btn
    {
        width: 48px !important;
        height: 48px !important;
        bottom: 16px !important;
        right: 16px !important;
    }
    
    .accessibility-widget-panel, .accessibility-widget-panel.open {
        right: 8px;
        width: 95vw;
        min-width: 0;
        max-width: 99vw;
        border-radius: 12px;
        padding: 0;
    }
    .accessibility-widget-panel
    {
        bottom: 35px !important;
    }
    .accessibility-widget-header, .accessibility-widget-body, .accessibility-widget-footer {
        padding-left: 10px;
        padding-right: 10px;
    }
} 