/* Empire Garage Door - Tabbed Accessibility Widget CSS */
/* Based on AppWT LLC design pattern */

:root {
    --ada-primary: #1e40af;
    --ada-primary-hover: #1d4ed8;
    --ada-secondary: #64748b;
    --ada-success: #059669;
    --ada-danger: #dc2626;
    --ada-warning: #d97706;
    --ada-background: #ffffff;
    --ada-surface: #f8fafc;
    --ada-border: #e2e8f0;
    --ada-text: #1e293b;
    --ada-text-light: #64748b;
}

/* Floating Accessibility Widget */
.floating-accessibility-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}

.accessibility-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ada-primary), var(--ada-primary-hover));
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accessibility-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.6);
}

/* Main Panel */
.developed-by-appwt-llc-ada-panel {
    position: absolute;
    bottom: 60px;
    left: 0;
    background: var(--ada-background);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--ada-border);
    width: 360px;
    max-height: 500px;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
    overflow: hidden;
}

.developed-by-appwt-llc-ada-panel.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Panel Header */
.developed-by-appwt-llc-ada-header {
    background: linear-gradient(135deg, var(--ada-primary), var(--ada-primary-hover));
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.developed-by-appwt-llc-ada-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.developed-by-appwt-llc-ada-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Tab Navigation */
.developed-by-appwt-llc-ada-tabs {
    display: flex;
    background: var(--ada-surface);
    border-bottom: 1px solid var(--ada-border);
}

.developed-by-appwt-llc-ada-tab {
    flex: 1;
    padding: 12px 8px;
    border: none;
    background: transparent;
    color: var(--ada-text-light);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    border-bottom: 2px solid transparent;
}

.developed-by-appwt-llc-ada-tab:hover {
    background: rgba(30, 64, 175, 0.05);
    color: var(--ada-primary);
}

.developed-by-appwt-llc-ada-tab.active {
    color: var(--ada-primary);
    border-bottom-color: var(--ada-primary);
    background: rgba(30, 64, 175, 0.05);
}

/* Panel Content */
.developed-by-appwt-llc-ada-content {
    max-height: 350px;
    overflow-y: auto;
    padding: 0;
}

.developed-by-appwt-llc-ada-tab-content {
    padding: 20px;
    display: none;
}

.developed-by-appwt-llc-ada-tab-content.active {
    display: block;
}

/* Section Headers */
.developed-by-appwt-llc-ada-section-header {
    font-size: 14px;
    font-weight: 600;
    color: var(--ada-text);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ada-border);
}

/* Option Groups */
.developed-by-appwt-llc-ada-option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.developed-by-appwt-llc-ada-option-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--ada-border);
    border-radius: 8px;
    background: var(--ada-background);
    color: var(--ada-text);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.developed-by-appwt-llc-ada-option-btn:hover {
    border-color: var(--ada-primary);
    background: rgba(30, 64, 175, 0.02);
}

.developed-by-appwt-llc-ada-option-btn.active {
    border-color: var(--ada-primary);
    background: rgba(30, 64, 175, 0.1);
    color: var(--ada-primary);
}

/* Profile Indicators */
.developed-by-appwt-llc-ada-profile-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--ada-border);
    background: var(--ada-background);
    transition: all 0.2s;
}

.developed-by-appwt-llc-ada-option-btn.active .developed-by-appwt-llc-ada-profile-indicator {
    background: var(--ada-primary);
    border-color: var(--ada-primary);
}

/* Toggle Switches */
.developed-by-appwt-llc-ada-toggle {
    width: 40px;
    height: 20px;
    border-radius: 10px;
    background: var(--ada-border);
    position: relative;
    transition: all 0.2s;
}

.developed-by-appwt-llc-ada-toggle::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: all 0.2s;
}

.developed-by-appwt-llc-ada-option-btn.active .developed-by-appwt-llc-ada-toggle {
    background: var(--ada-primary);
}

.developed-by-appwt-llc-ada-option-btn.active .developed-by-appwt-llc-ada-toggle::after {
    left: 22px;
}

/* Slider Groups */
.developed-by-appwt-llc-ada-slider-group {
    margin-bottom: 20px;
}

.developed-by-appwt-llc-ada-slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--ada-text);
    font-weight: 500;
}

.developed-by-appwt-llc-ada-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--ada-border);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.developed-by-appwt-llc-ada-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ada-primary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.developed-by-appwt-llc-ada-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ada-primary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Color Picker */
.developed-by-appwt-llc-ada-color-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.developed-by-appwt-llc-ada-color-option {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid var(--ada-border);
    cursor: pointer;
    transition: all 0.2s;
}

.developed-by-appwt-llc-ada-color-option:hover {
    transform: scale(1.1);
    border-color: var(--ada-primary);
}

.developed-by-appwt-llc-ada-color-option.active {
    border-color: var(--ada-primary);
    box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.2);
}

/* Reset Button */
.developed-by-appwt-llc-ada-reset-mini {
    transition: all 0.2s;
}

.developed-by-appwt-llc-ada-reset-mini:hover {
    background: #b91c1c !important;
    transform: translateY(-1px);
}

/* Scrollbar Styling for Panel Content */
.developed-by-appwt-llc-ada-content::-webkit-scrollbar {
    width: 6px;
}

.developed-by-appwt-llc-ada-content::-webkit-scrollbar-track {
    background: var(--ada-surface);
}

.developed-by-appwt-llc-ada-content::-webkit-scrollbar-thumb {
    background: var(--ada-border);
    border-radius: 3px;
}

.developed-by-appwt-llc-ada-content::-webkit-scrollbar-thumb:hover {
    background: var(--ada-text-light);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .accessibility-toggle {
        width: 45px;
        height: 45px;
    }

    .developed-by-appwt-llc-ada-panel {
        width: 320px;
        max-height: 450px;
    }

    .developed-by-appwt-llc-ada-tab {
        font-size: 11px;
        padding: 10px 6px;
    }
}

.accessibility-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.accessibility-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.accessibility-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.accessibility-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.accessibility-group {
    margin-bottom: 20px;
}

.accessibility-group h4 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.accessibility-group h5 {
    margin: 10px 0 8px 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7280;
}

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

.profile-controls {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.accessibility-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #495057;
    white-space: nowrap;
}

.accessibility-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.accessibility-btn.accessibility-active {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}

.profile-btn {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
}

.slider-group {
    margin-bottom: 15px;
}

.slider-group label {
    display: block;
    font-size: 0.8rem;
    color: #374151;
    margin-bottom: 5px;
    font-weight: 500;
}

.slider-group input[type="range"] {
    width: 100%;
    margin: 5px 0;
}

.slider-group span {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

.color-group {
    margin-top: 10px;
}

.color-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.color-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #374151;
}

.color-controls input[type="color"] {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Accessibility Feature Styles */
.high-contrast {
    filter: contrast(150%);
}

.monochrome {
    filter: grayscale(100%);
}

.dark-mode {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

.light-mode {
    background-color: #ffffff !important;
    color: #000000 !important;
}

.highlight-titles h1,
.highlight-titles h2,
.highlight-titles h3,
.highlight-titles h4,
.highlight-titles h5,
.highlight-titles h6 {
    background-color: #ffff00 !important;
    color: #000000 !important;
    padding: 2px 4px;
}

.highlight-links a {
    background-color: #00ff00 !important;
    color: #000000 !important;
    text-decoration: underline !important;
}

.hide-images img {
    display: none !important;
}

.reading-guide {
    position: relative;
}

.stop-animations *,
.stop-animations *:before,
.stop-animations *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

.big-black-cursor,
.big-black-cursor * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon points="0,0 0,24 9,18 13,28 18,26 14,16 24,16" fill="black"/></svg>'), auto !important;
}

.big-white-cursor,
.big-white-cursor * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon points="0,0 0,24 9,18 13,28 18,26 14,16 24,16" fill="white" stroke="black" stroke-width="1"/></svg>'), auto !important;
}

.enhanced-focus *:focus {
    outline: 3px solid #007bff !important;
    outline-offset: 2px !important;
}

.readable-font,
.readable-font * {
    font-family: Arial, sans-serif !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .accessibility-toggle {
        width: 45px;
        height: 45px;
    }

    .accessibility-panel {
        min-width: 260px;
        max-width: 280px;
    }
}