.version-update-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    font-family: Arial, sans-serif;
}

.version-update-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    z-index: 10001;
}

.version-update-content h3 {
    margin: 0 0 15px 0;
}

.version-update-content .critical-update {
    color: #dc3545;
}

.version-update-content .regular-update {
    color: #007bff;
}

.version-update-content p {
    margin: 8px 0;
    font-size: 14px;
}

.changelog {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    text-align: left;
    font-size: 13px;
}

.changelog strong {
    display: block;
    margin-bottom: 8px;
    color: #495057;
}

.changelog div {
    color: #6c757d;
    line-height: 1.5;
}

.version-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.btn-update-now {
    padding: 12px 24px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.btn-update-now.critical-btn {
    background: #dc3545;
}

.btn-update-now:hover {
    background: #0056b3;
}

.btn-update-now.critical-btn:hover {
    background: #c82333;
}

.btn-update-later {
    padding: 12px 24px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-update-later:hover {
    background: #5a6268;
}

.update-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    color: white;
    font-family: Arial, sans-serif;
}

.progress-content {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.update-progress p:first-of-type {
    font-size: 18px;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.update-progress p:last-of-type {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

.update-error {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    z-index: 10002;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.update-error h3 {
    color: #dc3545;
    margin: 0 0 15px 0;
}

.update-error p {
    margin: 0 0 20px 0;
    color: #6c757d;
}

.update-error button {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Адаптивность для мобильных */
@media (max-width: 600px) {
    .version-update-content {
        padding: 15px;
        margin: 10px;
    }
    
    .version-buttons {
        flex-direction: column;
    }
    
    .btn-update-now, .btn-update-later {
        width: 100%;
    }
}