/* Scroll Progress Indicator - Circular */

/* Slide-up animation keyframes */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(30px);
    }
}

.scroll-progress {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 50px;
    height: 50px;
    z-index: 999999 !important;
    cursor: pointer;
    pointer-events: auto !important;
}

.scroll-progress.show {
    animation: slideUp 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.scroll-progress.hide {
    animation: slideDown 0.4s ease forwards;
}

.scroll-progress-circle {
    position: relative;
    width: 100%;
    height: 100%;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-progress-circle svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

/* Background circle */
.scroll-progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 3;
}

/* Progress circle */
.scroll-progress-fill {
    fill: none;
    stroke: #ffffff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 169.65;
    stroke-dashoffset: 169.65;
    transition: stroke-dashoffset 0.1s ease;
}

/* Up arrow icon in center */
.scroll-progress-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 16px;
    opacity: 1;
    transition: opacity 0.3s ease, color 0.3s ease;
}

/* Hover effect */
.scroll-progress:hover .scroll-progress-icon {
    color: #ffffff;
}

.scroll-progress:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .scroll-progress {
        width: 50px;
        height: 50px;
        bottom: 20px !important;
        right: 20px !important;
    }
    
    .scroll-progress-icon {
        font-size: 18px;
    }
    
    .scroll-progress-fill {
        stroke-width: 2.5;
    }
    
    .scroll-progress-bg {
        stroke-width: 2.5;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .scroll-progress-circle {
    background: #10b981;
}

[data-theme="dark"] .scroll-progress-bg {
    stroke: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .scroll-progress-fill {
    stroke: #ffffff;
}

[data-theme="dark"] .scroll-progress-icon {
    color: #ffffff;
}
