/* Accessibility Widget Styles for TaskPilot
   Complies with Israeli Standard 5568 */

/* Widget Container */
.accessibility-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Toggle Button */
.accessibility-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0056b3;
    color: white;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.accessibility-toggle:hover,
.accessibility-toggle:focus {
    background-color: #003d7a;
    outline: none;
}

.accessibility-toggle:focus {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5), 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Panel */
.accessibility-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 300px;
    background-color: #2c3e50;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: white;
    display: none;
    overflow: hidden;
}

/* Panel Header */
.accessibility-header {
    background-color: #1a2533;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #34495e;
}

.accessibility-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.accessibility-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px;
}

.accessibility-close:hover,
.accessibility-close:focus {
    color: #f8f9fa;
    outline: none;
}

/* Panel Content */
.accessibility-content {
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

/* Sections */
.accessibility-section {
    margin-bottom: 20px;
}

.accessibility-section h4 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 500;
    color: #f8f9fa;
}

.accessibility-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.accessibility-btn {
    background-color: #34495e;
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.accessibility-btn:hover,
.accessibility-btn:focus {
    background-color: #4a6785;
    outline: none;
}

.accessibility-btn:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* Statement Link */
.accessibility-section.statement {
    text-align: center;
    margin-top: 10px;
}

.accessibility-section.statement a {
    color: #63b3ed;
    text-decoration: none;
}

.accessibility-section.statement a:hover,
.accessibility-section.statement a:focus {
    text-decoration: underline;
    outline: none;
}

/* Accessibility Statement Modal */
.accessibility-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
}

.accessibility-modal-content {
    background-color: #2c3e50;
    color: white;
    margin: 50px auto;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.accessibility-modal-header {
    background-color: #1a2533;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #34495e;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.accessibility-modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
}

.accessibility-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0 5px;
}

.accessibility-modal-close:hover,
.accessibility-modal-close:focus {
    color: #f8f9fa;
    outline: none;
}

.accessibility-modal-body {
    padding: 20px;
    line-height: 1.6;
}

.accessibility-modal-body h3 {
    margin-top: 0;
    font-size: 20px;
    color: #f8f9fa;
}

.accessibility-modal-body h4 {
    margin: 20px 0 10px;
    font-size: 18px;
    color: #f8f9fa;
}

.accessibility-modal-body p {
    margin: 10px 0;
}

.accessibility-modal-body ul {
    margin: 10px 0;
    padding-left: 20px;
}

/* Accessibility Class Styles */

/* High Contrast Mode */
body.high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}

body.high-contrast * {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

body.high-contrast a {
    color: #ffff00 !important;
}

body.high-contrast button,
body.high-contrast .btn {
    background-color: #000 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}

body.high-contrast input,
body.high-contrast textarea,
body.high-contrast select {
    background-color: #000 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}

body.high-contrast img {
    filter: grayscale(100%) contrast(150%);
}

/* Link Highlighting */
body.highlight-links a {
    background-color: #ffff00 !important;
    color: #000 !important;
    text-decoration: underline !important;
    border: 2px solid #ff0000 !important;
    padding: 2px !important;
}

/* Heading Highlighting */
body.highlight-headings h1,
body.highlight-headings h2,
body.highlight-headings h3,
body.highlight-headings h4,
body.highlight-headings h5,
body.highlight-headings h6 {
    background-color: #000080 !important;
    color: #ffffff !important;
    border: 2px solid #ffff00 !important;
    padding: 5px !important;
}

/* Stop Animations */
body.stop-animations *,
body.stop-animations *::before,
body.stop-animations *::after {
    animation: none !important;
    transition: none !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .accessibility-panel {
        width: 250px;
    }
    
    .accessibility-modal-content {
        width: 95%;
        margin: 30px auto;
    }
}

@media (max-width: 480px) {
    .accessibility-toggle {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .accessibility-panel {
        width: 230px;
    }
    
    .accessibility-modal-content {
        margin: 15px auto;
    }
    
    .accessibility-modal-body {
        padding: 15px;
    }
} 