/* Resize Method Controls */
.resize-method-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.method-btn {
    background: linear-gradient(135deg, var(--card-bg), rgba(121, 83, 219, 0.02));
    border: 2px solid var(--card-border);
    color: var(--text-color);
    padding: 16px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.method-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(121, 83, 219, 0.1), transparent);
    transition: left 0.5s ease;
}

.method-btn:hover::before {
    left: 100%;
}

.method-btn:hover {
    border-color: #7953db;
    background: linear-gradient(135deg, rgba(121, 83, 219, 0.05), rgba(121, 83, 219, 0.1));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(121, 83, 219, 0.25);
}

.method-btn.active {
    background: linear-gradient(135deg, #7953db, #9d6dff);
    border-color: #7953db;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(121, 83, 219, 0.4);
}

.method-btn i {
    font-size: 22px;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.method-btn:hover i {
    transform: scale(1.1);
}

.method-btn.active i {
    transform: scale(1);
}

/* Dimension Controls */
.dimension-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.dimension-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dimension-input label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dimension-input label i {
    font-size: 16px;
    color: #7953db;
}

.dimension-input input {
    padding: 12px 15px;
    border: 2px solid var(--card-border);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: all 0.3s ease;
}

.dimension-input input:focus {
    border-color: #7953db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(121, 83, 219, 0.1);
}

.dimension-input input:hover {
    border-color: rgba(121, 83, 219, 0.5);
}

/* Preset Size Controls */
.preset-sizes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.preset-btn {
    background: linear-gradient(135deg, var(--card-bg), rgba(121, 83, 219, 0.02));
    border: 2px solid var(--card-border);
    color: var(--text-color);
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.preset-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(121, 83, 219, 0.1), transparent);
    transition: left 0.5s ease;
}

.preset-btn:hover::before {
    left: 100%;
}

.preset-btn:hover {
    border-color: #7953db;
    background: linear-gradient(135deg, rgba(121, 83, 219, 0.05), rgba(121, 83, 219, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(121, 83, 219, 0.2);
}

.preset-btn.active {
    background: linear-gradient(135deg, #7953db, #9d6dff);
    border-color: #7953db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(121, 83, 219, 0.3);
}

/* Aspect Ratio Lock */
.aspect-ratio-lock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(121, 83, 219, 0.05), rgba(121, 83, 219, 0.02));
    border-radius: 8px;
    border: 1px solid rgba(121, 83, 219, 0.2);
}

.aspect-ratio-lock label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color);
}

.aspect-ratio-lock input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #7953db;
    cursor: pointer;
}

/* Quality Control Enhanced */
.quality-control {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.quality-slider {
    flex: 1;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, #ddd 0%, #7953db 50%, #ddd 100%);
    outline: none;
    -webkit-appearance: none;
    position: relative;
}

.quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7953db, #9d6dff);
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(121, 83, 219, 0.4);
    border: 2px solid white;
    transition: all 0.2s ease;
}

.quality-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(121, 83, 219, 0.6);
}

.quality-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7953db, #9d6dff);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 3px 8px rgba(121, 83, 219, 0.4);
    transition: all 0.2s ease;
}

.quality-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(121, 83, 219, 0.6);
}

.quality-display {
    background: linear-gradient(135deg, var(--card-bg), rgba(121, 83, 219, 0.05));
    padding: 10px 16px;
    border-radius: 12px;
    border: 2px solid var(--card-border);
    font-weight: 700;
    color: var(--text-color);
    min-width: 70px;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Images Grid Enhanced */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    border: 2px solid var(--card-border);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--background-color), rgba(121, 83, 219, 0.02));
    scrollbar-width: thin;
    scrollbar-color: rgba(121, 83, 219, 0.3) transparent;
}

.images-grid::-webkit-scrollbar {
    width: 8px;
}

.images-grid::-webkit-scrollbar-track {
    background: transparent;
}

.images-grid::-webkit-scrollbar-thumb {
    background-color: rgba(121, 83, 219, 0.3);
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.images-grid::-webkit-scrollbar-thumb:hover {
    background-color: rgba(121, 83, 219, 0.5);
}

.image-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.image-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: rgba(121, 83, 219, 0.3);
}

.image-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.image-item:hover img {
    transform: scale(1.05);
}

.image-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 10px 8px 8px;
    font-size: 11px;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.9), rgba(192, 57, 43, 0.9));
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
}

.remove-image:hover {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.6);
}

/* Progress Container Enhanced */
.progress-container {
    margin: 20px 0;
    background: linear-gradient(135deg, var(--background-color), rgba(121, 83, 219, 0.02));
    border-radius: 16px;
    padding: 20px;
    border: 2px solid var(--card-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background-color: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7953db, #9d6dff, #7953db);
    background-size: 200% 100%;
    border-radius: 6px;
    transition: width 0.3s ease;
    width: 0%;
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.progress-text {
    font-size: 14px;
    color: var(--text-color);
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Bulk Actions */
.bulk-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.bulk-action-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bulk-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.bulk-action-btn:hover::before {
    left: 100%;
}

.bulk-action-btn.primary {
    background: linear-gradient(135deg, #7953db, #9d6dff);
    color: white;
    box-shadow: 0 4px 15px rgba(121, 83, 219, 0.3);
}

.bulk-action-btn.primary:hover {
    background: linear-gradient(135deg, #6a44cc, #8b5cf6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(121, 83, 219, 0.4);
}

.bulk-action-btn.secondary {
    background: linear-gradient(135deg, var(--background-color), rgba(121, 83, 219, 0.05));
    border: 2px solid var(--card-border);
    color: var(--text-color);
}

.bulk-action-btn.secondary:hover {
    background: linear-gradient(135deg, rgba(121, 83, 219, 0.1), rgba(121, 83, 219, 0.15));
    border-color: #7953db;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(121, 83, 219, 0.2);
}

.bulk-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.bulk-action-btn:disabled::before {
    display: none;
}

/* Enhanced Info Display */
.bulk-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(121, 83, 219, 0.03) 0%, rgba(157, 109, 255, 0.03) 100%);
    border-radius: 20px;
    border: 2px solid rgba(121, 83, 219, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.info-item {
    background: linear-gradient(135deg, var(--background-color), rgba(121, 83, 219, 0.02));
    padding: 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 2px solid var(--card-border);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #7953db, #9d6dff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.info-item:hover::before {
    transform: scaleX(1);
}

.info-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(121, 83, 219, 0.3);
}

.info-label {
    font-size: 14px;
    color: var(--tool-description-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-label i {
    font-size: 16px;
    opacity: 0.8;
    color: #7953db;
}

.info-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

.resize-badge {
    color: #3498db;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(52, 152, 219, 0.05));
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    display: inline-block;
    width: fit-content;
    border: 1px solid rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
    cursor: help;
}

.resize-badge-green {
    color: #2ecc71;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.05));
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    display: inline-block;
    width: fit-content;
    border: 1px solid rgba(46, 204, 113, 0.2);
    transition: all 0.3s ease;
    cursor: help;
}

.resize-badge-green:hover {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(46, 204, 113, 0.1));
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.2);
}

.resize-badge-red {
    color: #e74c3c;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.05));
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    display: inline-block;
    width: fit-content;
    border: 1px solid rgba(231, 76, 60, 0.2);
    transition: all 0.3s ease;
    cursor: help;
}

.resize-badge-red:hover {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(231, 76, 60, 0.1));
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
}

.resize-badge:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(52, 152, 219, 0.1));
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .resize-method-controls {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .method-btn {
        padding: 14px 12px;
        flex-direction: row;
        justify-content: center;
    }

    .method-btn i {
        font-size: 18px;
        margin-bottom: 0;
        margin-right: 8px;
    }

    .dimension-controls {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .preset-sizes {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .bulk-actions {
        flex-direction: column;
        gap: 10px;
    }

    .bulk-action-btn {
        min-width: auto;
        padding: 12px 16px;
    }

    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
        padding: 12px;
    }

    .image-item img {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .method-btn {
        padding: 12px;
        font-size: 13px;
    }

    .method-btn i {
        font-size: 16px;
    }

    .dimension-input input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .preset-btn {
        padding: 8px 10px;
        font-size: 12px;
    }

    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
        padding: 10px;
    }

    .image-item img {
        height: 80px;
    }

    .remove-image {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}