.cache-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(17, 145, 81, 0.4);
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cache-float-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 30px rgba(17, 145, 81, 0.6);
}

.cache-float-btn:active {
    transform: translateY(-2px) scale(1.05);
}

.cache-float-btn svg {
    width: 28px;
    height: 28px;
}

.cache-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.zoom-selection {
    margin-bottom: 2rem;
}

.zoom-selection h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.zoom-range-container {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
}

.zoom-range-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.zoom-range-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.zoom-range {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right,
        var(--primary-light) 0%,
        var(--primary-color) 50%,
        var(--primary-dark) 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    margin-bottom: 1rem;
}

.zoom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.zoom-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(17, 145, 81, 0.4);
}

.zoom-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.zoom-range::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(17, 145, 81, 0.4);
}

.zoom-range-info {
    text-align: center;
    padding: 0.75rem;
    background: white;
    border-radius: 0.5rem;
    border: 2px solid var(--primary-light);
}

.zoom-range-current {
    color: #2c3e50;
    font-size: 1rem;
}

.zoom-range-current strong {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.cache-progress {
    margin-bottom: 2rem;
}

.cache-progress h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.progress-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.zoom-progress {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
}

.zoom-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.zoom-progress-label {
    font-weight: 600;
    color: #2c3e50;
}

.zoom-progress-percentage {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.zoom-progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.zoom-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 2px 4px rgba(17, 145, 81, 0.3);
}

.zoom-progress.completed {
    border-left-color: #28a745;
}

.zoom-progress.completed .zoom-progress-percentage {
    color: #28a745;
}

.zoom-progress.completed .zoom-progress-bar {
    background: linear-gradient(90deg, #28a745, #218838);
}

.cache-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.cache-actions .btn {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.cache-actions .btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
}

.cache-actions .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.cache-actions .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

@media (max-width: 768px) {
    .cache-float-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .cache-float-btn svg {
        width: 24px;
        height: 24px;
    }

    .cache-actions {
        flex-direction: column;
    }

    .cache-actions .btn {
        width: 100%;
    }
}
