/* compress.css - Compression Tool Specific Styles */

/* LOADING SPINNER */
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid var(--bg-zone); /* Adaptive background ring */
    border-top: 6px solid var(--primary); /* Brand colored rotating segment */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* SETTINGS CARD (Compression Level UI) */
.settings-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.level-selector {
    margin: 30px 0;
}

#compScale {
    width: 100%;
    accent-color: var(--primary); /* Styles the slider thumb to match brand */
    cursor: pointer;
}

.level-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

/* PROGRESS BAR */
.progress-container {
    width: 100%;
    max-width: 300px;
    height: 10px;
    background: var(--bg-zone);
    border-radius: 10px;
    margin: 20px auto 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.progress-bar {
    width: 0%; /* Updated via JS during compression */
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease; /* Provides smooth movement */
}

/* STATUS & REPORT TEXT */
#status-text {
    font-weight: 700;
    color: var(--text-main);
    animation: pulseText 1.5s ease-in-out infinite;
}

#size-report {
    background: var(--bg-zone);
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--primary); /* Highlights the file size savings */
    border: 1px dashed var(--border-color);
    margin: 20px 0;
    display: inline-block;
}

/* ANIMATIONS */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}