/* Accessibility Widget Styles */

.acc-widget-container {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.acc-btn-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 2px solid white;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.3s ease, background 0.3s ease;
}

.acc-btn-float:hover {
    transform: scale(1.1);
    background: var(--color-accent);
}

.acc-panel {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid #eaeaea;
    z-index: 10000;
    overflow: hidden;
}

.acc-header {
    background: var(--color-primary);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.acc-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.acc-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
}

.acc-close:hover {
    background: rgba(255,255,255,0.2);
}

.acc-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.acc-section {
    margin-bottom: 20px;
}

.acc-slider {
    width: 70%;
    accent-color: var(--color-primary);
}

.acc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.acc-opt-btn {
    background: #f5f7fa;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    padding: 12px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.acc-opt-btn:hover {
    background: #edf1f5;
}

.acc-opt-btn i {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.acc-opt-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.acc-opt-btn.active i {
    color: white;
}

.acc-reset-btn {
    width: 100%;
    padding: 12px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.acc-reset-btn:hover {
    background: #f5c6cb;
}

.acc-reading-guide {
    position: fixed;
    left: 0;
    width: 100vw;
    height: 8px;
    background: rgba(46, 204, 113, 0.4);
    z-index: 10001;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.2);
}

/* Modifier Classes */
.acc-hide-img img,
.acc-hide-img video,
.acc-hide-img [style*="background-image"] {
    visibility: hidden !important;
}

.acc-hl-links a {
    background-color: yellow !important;
    color: black !important;
    text-decoration: underline !important;
    font-weight: bold !important;
}

.acc-kb-nav *:focus {
    outline: 4px solid #ff9900 !important;
    outline-offset: 2px !important;
}
