/* استایل دکمه دسترسی‌پذیری */
.va-accessibility-btn {
    position: fixed;
    z-index: 10000;
}

.va-accessibility-btn.top-right {
    top: 20px;
    right: 20px;
}

.va-accessibility-btn.top-left {
    top: 20px;
    left: 20px;
}

.va-accessibility-btn.bottom-right {
    bottom: 20px;
    right: 20px;
}

.va-accessibility-btn.bottom-left {
    bottom: 20px;
    left: 20px;
}

#va-toggle-panel {
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

#va-toggle-panel:hover {
    background: #135e96;
    transform: scale(1.05);
}

/* استایل پنل تنظیمات */
.va-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    z-index: 10001;
    width: 90%;
    max-width: 400px;
    display: none;
}

.va-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 8px 8px 0 0;
}

.va-panel-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

#va-close-panel {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#va-close-panel:hover {
    color: #000;
}

.va-panel-content {
    padding: 20px;
}

.va-option {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.va-option:last-child {
    border-bottom: none;
}

.va-option label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.va-option button {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 8px 12px;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
}

.va-option button:hover {
    background: #e0e0e0;
}

.va-option button.active {
    background: #2271b1;
    color: white;
    border-color: #135e96;
}

#va-reset-all {
    background: #dc3232;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
    font-weight: bold;
}

#va-reset-all:hover {
    background: #b32d2d;
}

/* استایل overlay */
.va-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
}

/* استایل‌های مربوط به تنظیمات دسترسی‌پذیری */
body.va-font-small {
    font-size: 14px !important;
}

body.va-font-normal {
    font-size: 16px !important;
}

body.va-font-large {
    font-size: 18px !important;
}

body.va-font-x-large {
    font-size: 20px !important;
}

body.va-contrast-high {
    filter: contrast(1.5) !important;
}

body.va-contrast-invert {
    filter: invert(1) hue-rotate(180deg) !important;
}

body.va-highlight-links a {
    background-color: yellow !important;
    color: black !important;
    padding: 2px 4px !important;
    text-decoration: underline !important;
}

body.va-big-cursor, 
body.va-big-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"><circle cx="16" cy="16" r="14" fill="black" opacity="0.7"/><circle cx="16" cy="16" r="12" fill="white" opacity="0.9"/><circle cx="16" cy="16" r="8" fill="black" opacity="0.7"/></svg>') 16 16, auto !important;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .va-panel {
        width: 95%;
        max-width: none;
        margin: 20px;
    }
    
    .va-accessibility-btn {
        transform: scale(0.9);
    }
    
    #va-toggle-panel {
        padding: 10px 15px;
        font-size: 12px;
    }
}