/* ===============================================
   PPID UFDK - Accessibility Widget CSS
   Version: 10.0 - All Features Fixed
   =============================================== */

/* TRIGGER BUTTON - Always visible, never moves */
#a11y-trigger {
    position: fixed !important;
    z-index: 2147483647 !important;
    width: 56px !important;
    height: 56px !important;
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    border: 3px solid white !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.5) !important;
    transition: transform 0.2s ease !important;
    filter: none !important;
    -webkit-filter: none !important;
}

#a11y-trigger:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 30px rgba(249, 115, 22, 0.6) !important;
}

#a11y-trigger svg {
    fill: white !important;
    width: 28px !important;
    height: 28px !important;
}

/* PANEL */
#a11y-panel {
    position: fixed !important;
    z-index: 2147483646 !important;
    width: 340px !important;
    max-width: calc(100vw - 30px) !important;
    max-height: 70vh !important;
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 50px rgba(0,0,0,0.25) !important;
    overflow: hidden !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    filter: none !important;
    -webkit-filter: none !important;
}

/* Header */
.a11y-header {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    color: white !important;
    padding: 14px 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.a11y-header h3 {
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: white !important;
}

.a11y-header h3 svg {
    fill: white !important;
}

.a11y-close {
    background: rgba(255,255,255,0.2) !important;
    border: none !important;
    color: white !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.a11y-close:hover {
    background: rgba(255,255,255,0.35) !important;
}

/* Body */
.a11y-body {
    padding: 14px !important;
    max-height: calc(70vh - 100px) !important;
    overflow-y: auto !important;
}

/* Selects */
.a11y-selects {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
}

.a11y-select-group label {
    display: block !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 4px !important;
}

.a11y-select-group select {
    width: 100% !important;
    padding: 8px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    background: #f9fafb !important;
    cursor: pointer !important;
    color: #374151 !important;
}

.a11y-select-group select:focus {
    border-color: #f97316 !important;
    outline: none !important;
}

/* Feature Grid */
.a11y-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
}

.a11y-feat-btn {
    background: #f9fafb !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 10px !important;
    padding: 10px 6px !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    min-height: 68px !important;
    transition: all 0.15s ease !important;
    color: #374151 !important;
}

.a11y-feat-btn:hover {
    background: #fff7ed !important;
    border-color: #fdba74 !important;
}

.a11y-feat-btn.active {
    background: #fff7ed !important;
    border-color: #f97316 !important;
    color: #ea580c !important;
}

.a11y-feat-btn svg {
    fill: currentColor !important;
    width: 22px !important;
    height: 22px !important;
}

.a11y-feat-btn span {
    font-size: 9px !important;
    font-weight: 500 !important;
    text-align: center !important;
    line-height: 1.2 !important;
}

/* Action Buttons */
.a11y-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
}

.a11y-action-btn {
    width: 100% !important;
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    transition: all 0.15s ease !important;
}

.a11y-action-btn:hover {
    background: #fff7ed !important;
    border-color: #fdba74 !important;
}

.a11y-action-btn svg {
    fill: #f97316 !important;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
}

/* Reset Button */
.a11y-reset-btn {
    width: 100% !important;
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    color: white !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    transition: all 0.15s ease !important;
}

.a11y-reset-btn:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c) !important;
    transform: translateY(-1px) !important;
}

.a11y-reset-btn svg {
    fill: white !important;
    width: 18px !important;
    height: 18px !important;
}

/* Position Section */
.a11y-position-section {
    border-top: 1px solid #e5e7eb !important;
    padding-top: 12px !important;
}

.a11y-position-title {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 8px !important;
}

.a11y-position-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
}

.a11y-pos-label {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 10px !important;
    background: #f9fafb !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    cursor: pointer !important;
    color: #374151 !important;
    transition: background 0.15s ease !important;
}

.a11y-pos-label:hover {
    background: #fff7ed !important;
}

.a11y-pos-label input[type="radio"] {
    accent-color: #f97316 !important;
    width: 14px !important;
    height: 14px !important;
    cursor: pointer !important;
}

/* Footer */
.a11y-footer {
    text-align: center !important;
    padding: 8px !important;
    border-top: 1px solid #e5e7eb !important;
    font-size: 10px !important;
    color: #9ca3af !important;
    background: #f9fafb !important;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    #a11y-trigger {
        width: 50px !important;
        height: 50px !important;
    }
    
    #a11y-trigger svg {
        width: 24px !important;
        height: 24px !important;
    }
    
    #a11y-panel {
        width: calc(100vw - 20px) !important;
        left: 10px !important;
        right: 10px !important;
        max-height: 65vh !important;
    }
    
    .a11y-grid {
        gap: 5px !important;
    }
    
    .a11y-feat-btn {
        padding: 8px 4px !important;
        min-height: 60px !important;
    }
    
    .a11y-feat-btn span {
        font-size: 8px !important;
    }
    
    .a11y-feat-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .a11y-selects {
        grid-template-columns: 1fr !important;
    }
}
