/* Laisner Accessibility Plugin Styles */

/* Accessibility Button - Force visibility */
#la-accessibility-button.la-button {
    position: fixed !important;
    width: 60px !important;
    height: 60px !important;
    background: #2196F3 !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 2147483647 !important;
    transition: all 0.3s ease !important;
    color: white !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Position classes */
#la-accessibility-button.la-position-top-right {
    top: 20px !important;
    right: 20px !important;
}

#la-accessibility-button.la-position-top-left {
    top: 20px !important;
    left: 20px !important;
}

#la-accessibility-button.la-position-bottom-right {
    bottom: 20px !important;
    right: 20px !important;
}

#la-accessibility-button.la-position-bottom-left {
    bottom: 20px !important;
    left: 20px !important;
}

#la-accessibility-button.la-button:hover {
    background: #1976D2 !important;
    transform: scale(1.1) !important;
}

#la-accessibility-button.la-button:focus {
    outline: 3px solid #FFC107 !important;
    outline-offset: 2px !important;
}

#la-accessibility-button.la-button.la-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Accessibility Panel */
.la-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1000000;
    transition: right 0.3s ease;
    overflow-y: auto;
    direction: rtl;
}

.la-panel.la-open {
    right: 0;
}

.la-panel-header {
    background: #2196F3;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.la-panel-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.la-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.la-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.la-close-btn:focus {
    outline: 2px solid #FFC107;
}

.la-panel-content {
    padding: 20px;
    padding-bottom: 40px !important;
}

.la-feature {
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    transition: background 0.2s;
}

.la-feature:hover {
    background: #e8e8e8;
}

.la-feature label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.la-feature input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    cursor: pointer;
}

.la-controls {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.la-btn-small {
    background: #2196F3;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background 0.2s;
}

.la-btn-small:hover {
    background: #1976D2;
}

.la-btn-small:focus {
    outline: 2px solid #FFC107;
}

#la-text-size-value {
    font-weight: bold;
    min-width: 50px;
    text-align: center;
}

.la-reset-btn {
    width: 100%;
    padding: 12px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s;
}

.la-reset-btn:hover {
    background: #d32f2f;
}

.la-reset-btn:focus {
    outline: 2px solid #FFC107;
}

/* Accessibility Features Applied */
body.la-high-contrast {
    background: #000 !important;
    color: #fff !important;
}

body.la-high-contrast * {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

body.la-high-contrast a {
    color: #4CAF50 !important;
}

body.la-highlight-links a {
    text-decoration: underline !important;
    border-bottom: 2px solid currentColor !important;
}

body.la-line-spacing * {
    line-height: 2 !important;
}

body.la-readable-font,
body.la-readable-font * {
    font-family: Arial, sans-serif !important;
}

body.la-stop-animations,
body.la-stop-animations * {
    animation: none !important;
    transition: none !important;
}

body.la-reading-mode .sidebar,
body.la-reading-mode aside,
body.la-reading-mode .widget,
body.la-reading-mode header,
body.la-reading-mode footer,
body.la-reading-mode nav {
    display: none !important;
}

body.la-reading-mode {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Overlay */
.la-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    display: none;
}

.la-overlay.la-active {
    display: block;
}

/* Credits */
.la-credits {
    text-align: center !important;
    font-size: 12px !important;
    color: #666 !important;
    margin-top: 15px !important;
    font-family: Arial, sans-serif !important;
    opacity: 0.8 !important;
}