/* CSS for A11yWidget */

.a11y-widget {
    position: relative;
}

.a11y-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.a11y-btn img {
    width: 30px;
    height: 30px;
}

.a11y-panel {
    position: fixed;
    margin-bottom: 10px;
    width: 300px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1001;
}

.a11y-panel.hidden {
    display: none;
}

.a11y-panel-content {
    padding: 15px;
}

.a11y-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#a11y-title {
    font-weight: bold;
}

.a11y-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.a11y-panel-body {
    margin-bottom: 15px;
}

.a11y-option {
    display: block;
    margin-bottom: 10px;
}

.a11y-contrast-group {
    margin-top: 15px;
}

.a11y-contrast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

#a11y-contrast-range {
    width: 100%;
}

.a11y-contrast-helper {
    font-size: 0.8em;
    color: #666;
}

.a11y-panel-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.a11y-primary {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.a11y-secondary {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

/* Accessibility styles */

body.a11y-dark-theme {
    background-color: #121212;
    color: #ffffff;
}

body.a11y-large-text {
    font-size: 1.2em;
}

body.a11y-underline-links a {
    text-decoration: underline;
}

body.a11y-readable-font {
    font-family: sans-serif;
}

body.a11y-reduce-motion * {
    transition: none !important;
    animation: none !important;
}
