/* ═══════════════════════════════════════════════
   ACCESSIBILITY PANEL — GRID CARD STYLE
   accessibility.css
═══════════════════════════════════════════════ */

#accessibilityPanel {
    position: fixed;
    top: 0;
    left: -360px;
    width: 340px;
    height: 100vh;
    background: #f4f6fb;
    box-shadow: 6px 0 40px rgba(0, 0, 0, 0.13);
    z-index: 10000;
    transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e0e4ef;
}

#accessibilityPanel.panel-open {
    left: 0;
}

/* Header */
.acc-panel-header {
    background: #0a2463;
    color: #fff;
    padding: 20px 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.acc-panel-header h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.acc-close-btn {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.acc-close-btn:hover {
    background: #e63946;
}

/* Scrollable content */
.acc-panel-content {
    padding: 18px 16px 10px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Section label */
.acc-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px !important;
    text-transform: uppercase;
    color: #8a93b2;
    margin: 14px 0 8px 2px;
}
.acc-section-label:first-child {
    margin-top: 0;
}

/* Grid wrapper — 3 columns */
.acc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 4px;
}

/* Individual card */
.acc-card {
    position: relative;
    background: #fff;
    border: 1.5px solid #e5e9f5;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px 12px;
    cursor: pointer;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background 0.2s;
    user-select: none;
    min-height: 88px;
    text-align: center;
}

.acc-card:hover {
    border-color: #6c63ff;
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.12);
}

.acc-card.active {
    border-color: #6c63ff;
    background: #f5f3ff;
}

/* Checkmark badge */
.acc-card .acc-check {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 20px;
    height: 20px;
    background: #6c63ff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}
.acc-card.active .acc-check {
    display: flex;
}

.acc-check svg {
    width: 11px;
    height: 11px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Card icon */
.acc-card-icon {
    font-size: 22px;
    color: #444;
    margin-bottom: 8px;
    transition: color 0.2s;
    line-height: 1;
}
.acc-card.active .acc-card-icon {
    color: #6c63ff;
}

/* Card label */
.acc-card-label {
    font-size: 11px;
    font-weight: 600;
    color: #444;
    line-height: normal;
}
.acc-card.active .acc-card-label {
    color: #6c63ff;
}

/* Font Size buttons */
.acc-font-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 4px;
}

.acc-font-btn {
    background: #fff;
    border: 1.5px solid #e5e9f5;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px 10px;
    cursor: pointer;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    min-height: 80px;
    position: relative;
}
.acc-font-btn:hover {
    border-color: #6c63ff;
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.12);
}
.acc-font-btn.active {
    border-color: #6c63ff;
    background: #f5f3ff;
}
.acc-font-btn .acc-check {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 20px;
    height: 20px;
    background: #6c63ff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}
.acc-font-btn.active .acc-check {
    display: flex;
}

.acc-font-glyph {
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-bottom: 6px;
}
.acc-font-btn.active .acc-font-glyph {
    color: #6c63ff;
}
.acc-font-btn .acc-card-label {
    font-size: 10.5px;
    font-weight: 600;
    color: #555;
}
.acc-font-btn.active .acc-card-label {
    color: #6c63ff;
}

/* Footer */
.acc-panel-footer {
    padding: 14px 16px 18px;
    border-top: 1px solid #e8ecf5;
    background: #f4f6fb;
    flex-shrink: 0;
}

.acc-reset-btn {
    width: 100%;
    padding: 11px;
    background: #fff;
    border: 1.5px solid #d0d5e8;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: 0.25s;
    color: #0a2463;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "Poppins", sans-serif;
}
.acc-reset-btn:hover {
    background: #0a2463;
    color: #fff;
    border-color: #0a2463;
}
.acc-reset-btn .icon {
    fill: #0a2463;
    transition: 0.25s;
}

.acc-reset-btn:hover .icon {
    fill: #fff;
}

/* Floating Trigger Button */
.acc-tool-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    border: none;
    background: linear-gradient(135deg, #0062ff 0%, #0041ab 100%);
    color: #fff;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 65, 171, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    width: 56px;
    height: 56px;
    overflow: hidden;
}
.acc-tool-btn::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background: rgba(0, 98, 255, 0.35);
    animation: acc-pulse 2s infinite;
    z-index: -1;
}
@keyframes acc-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}
.acc-btn-content {
    display: flex;
    align-items: center;
    padding-left: 16px;
    width: 100%;
}
.acc-tool-btn i {
    font-size: 22px;
    flex-shrink: 0;
}
.acc-btn-text {
    font-size: 14px;
    font-weight: 600;
    margin-left: 12px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
    white-space: nowrap;
}
.acc-tool-btn:hover {
    width: 195px;
    box-shadow: 0 15px 30px rgba(0, 65, 171, 0.4);
}
.acc-tool-btn:hover .acc-btn-text {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .acc-tool-btn {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }
    .acc-tool-btn::after {
        display: none;
    }
}

/* ── Feature classes ── */
.big-cursor,
.big-cursor a,
.big-cursor button,
.big-cursor [role="button"] {
    cursor: crosshair !important;
}

.invert-mode {
    filter: invert(1) hue-rotate(180deg) contrast(0.9);
}

.line-height-mode * {
    line-height: 1.9 !important;
}

.highlight-links a {
    background-color: yellow !important;
    color: #000 !important;
    text-decoration: underline !important;
    font-weight: 600;
    border-radius: 2px;
    padding: 2px 4px;
}
.highlight-links a:hover {
    background-color: orange !important;
}

.hide-images img {
    visibility: hidden;
}

/* .dyslexia-mode * {
    font-family: "Arial", sans-serif !important;
    letter-spacing: 0.05em !important;
    word-spacing: 0.1em !important;
} */
/* Invert — panel ko double-invert karke normal dikhao */
.invert-mode {
    filter: invert(1) hue-rotate(180deg) contrast(0.9);
}
.invert-mode #accessibilityPanel {
    filter: invert(1) hue-rotate(180deg) contrast(1.1);
}
#accessibilityPanel,
#accessibilityPanel * {
    letter-spacing: normal !important;
    line-height: normal !important;
    word-spacing: normal !important;
    font-family: "Poppins", sans-serif !important;
    cursor: default !important;
}
