/* Compression Specific Styles */

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.option-card {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    background: white;
}

.option-card:hover {
    border-color: #b3d4fc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.option-card.selected {
    border-color: var(--primary, #4a90e2);
    background: #f0f7ff;
}

.check-circle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ddd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.option-card.selected .check-circle {
    background: var(--primary, #4a90e2);
    border-color: var(--primary, #4a90e2);
}

.option-card h3 {
    margin: 5px 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.option-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.tech-details {
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
}

/* Custom Controls */
.custom-controls {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

input[type="range"] {
    width: 100%;
}

.control-group-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
}

.hidden {
    display: none !important;
}

/* Modern Progress Bar */
.modern-progress-container {
    width: 300px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    margin-top: 25px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00C851, #007E33);
    border-radius: 20px;
    transition: width 0.4s ease-out;
    box-shadow: 0 0 10px rgba(0, 200, 81, 0.5);
    position: relative;
}

/* Striped Animation */
.modern-progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.2),
            rgba(255, 255, 255, 0.2) 10px,
            transparent 10px,
            transparent 20px);
    animation: moveStripes 1s linear infinite;
}

@keyframes moveStripes {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 28px 0;
        /* matches diagonal repeat */
    }
}

.modern-progress-text {
    color: white;
    font-weight: 600;
    margin-top: 10px;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

/* Loading Overlay (Was missing) */
.merge-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 4px solid #00C851;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(0, 200, 81, 0.2);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Quick Compress Links (New) */
.quick-compress-tools {
    margin-top: 30px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.quick-compress-title {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.quick-links-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-link-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    color: #444;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.quick-link-pill:hover {
    background: var(--primary, #4a90e2);
    color: white;
    border-color: var(--primary, #4a90e2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.2);
}

.quick-link-pill i {
    margin-right: 6px;
    font-size: 0.85em;
}