.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2147483647;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto !important;
}

.modal-overlay.visible {
    opacity: 1;
    display: flex !important;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 800px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-content img {
    height: 120px !important;
    width: auto !important;
    margin-bottom: 20px !important;
    max-width: none !important;
    display: inline-block !important;
    vertical-align: middle !important;
    object-fit: contain !important;
    border: none !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

.modal-content p {
    margin: 20px 0;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.progress-bar {
    width: 100% !important;
    height: 20px !important;
    background: #f0f0f0 !important;
    border-radius: 10px !important;
    margin: 25px 0 !important;
    display: none;
    overflow: hidden !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1) !important;
}

.progress {
    width: 0;
    height: 100% !important;
    background: #5382a1 !important;
    border-radius: 10px !important;
    transition: none !important;
}

.update-button {
    background: #5382a1; /* Java blue */
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    margin-top: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.update-button:hover {
    background: #4b7793; /* Darker Java blue */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(83,130,161,0.3);
}

/* Пульсирующая рамка вокруг кнопки */
.update-button::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid #5382a1; /* Java blue */
    border-radius: 8px;
    animation: pulseBorder 1.5s infinite;
    opacity: 0;
}

@keyframes pulseBorder {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

/* Новый индикатор загрузки */
.download-indicator {
    display: none;
    position: fixed;
    top: 30px;
    right: 30px;
    width: 180px;
    height: 80px;
    z-index: 2147483647;
    pointer-events: none;
}

.download-indicator::before {
    content: '⬆';
    position: absolute;
    top: 0;
    right: 0;
    font-size: 40px;
    color: #5382a1; /* Java blue */
    animation: bounceArrow 1s infinite;
    text-shadow: 0 0 10px rgba(83,130,161,0.5);
}

.download-indicator::after {
    content: 'Click the downloaded file to update Java';
    position: absolute;
    top: 50px;
    right: 0;
    font-size: 14px;
    color: #5382a1; /* Java blue */
    background: rgba(255,255,255,0.95);
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(83,130,161,0.2);
    border: 1px solid rgba(83,130,161,0.2);
}

@keyframes bounceArrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.arrow {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 200px;
    height: 200px;
    z-index: 10000;
}

.arrow svg {
    display: none;
}

.arrow:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: none;
    border: 6px solid #ff6b6b;
    border-color: transparent #ff6b6b #ff6b6b transparent;
    border-radius: 0 0 100px 0;
    animation: arrowPulse 2s infinite;
}

@keyframes arrowPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
} 