.upload-area.drag-over,
.upload-area:hover {
    background-color: var(--primary-color-light);
    border-color: var(--primary-color)
}

.file-item:hover,
.upload-area.drag-over,
.upload-area:hover {
    border-color: var(--primary-color)
}

.file-name,
.result-name {
    white-space: nowrap;
    text-overflow: ellipsis
}

.results-header,
.section-title,
.stat-item,
.status-badge,
.step-item,
.upload-area {
    text-align: center
}

:root {
    --primary-color: #3b82f6;
    --primary-color-light: rgba(99, 102, 241, 0.1);
    --accent-color: #4677ff;
    --success-color: #10b981;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    --warning-color: #f59e0b;
    --background-light: #f9fafb;
    --border-color: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280
}

.batch-remove-ai-metadata-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem
}

.upload-area {
    position: relative;
    transition: .3s cubic-bezier(.4, 0, .2, 1);
    border: 2px dashed var(--border-color);
    background-color: var(--background-light);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 1.5rem
}

.upload-area:hover {
    transform: translateY(-2px)
}

.upload-area.drag-over {
    box-shadow: 0 4px 12px rgba(99, 102, 241, .15)
}

.upload-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color)
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
    padding: .5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--background-light)
}

.file-list {
    display: none;
    margin-top: 2rem
}

.file-item,
.file-preview {
    display: flex;
    overflow: hidden
}

.file-list.visible,
.progress-section.visible {
    display: block
}

.files-grid::-webkit-scrollbar {
    width: 8px;
    height: 8px
}

.files-grid::-webkit-scrollbar-track {
    background: var(--background-light);
    border-radius: 4px
}

.files-grid::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px
}

.file-item {
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
    transition: .3s
}

.file-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .1)
}

.file-preview {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #f5f7fa 0, #e4e7eb 100%);
    position: relative;
    align-items: center;
    justify-content: center
}

.file-thumbnail {
    width: auto;
    height: 100%;
    object-fit: cover;
    transition: transform .4s
}

.file-item:hover .file-thumbnail {
    transform: scale(1.08)
}

.file-info {
    padding: .75rem;
    background: #fff
}

.file-name {
    font-weight: 600;
    margin-bottom: .5rem;
    overflow: hidden;
    font-size: .9rem;
    color: var(--text-primary)
}

.file-details,
.file-status {
    display: flex;
    font-size: .75rem
}

.file-details,
.status-badge {
    color: var(--text-secondary)
}

.file-details {
    justify-content: space-between;
    margin-bottom: .5rem
}

.file-status {
    align-items: center;
    margin-top: .25rem
}

.status-badge {
    display: inline-block;
    padding: .25rem .5rem;
    border-radius: 6px;
    font-size: .7rem;
    font-weight: 500;
    width: 100%;
    background-color: var(--background-light)
}

.status-badge.queued {
    background-color: #e0f2fe;
    color: #0369a1
}

.status-badge.processing {
    background-color: #fef3c7;
    color: #92400e
}

.status-badge.success {
    background-color: #dcfce7;
    color: #166534
}

.status-badge.error {
    background-color: #fee2e2;
    color: #991b1b
}

.file-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: auto
}

.btn-remove {
    color: var(--error-color);
    background: 0 0;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: .25rem .5rem;
    border-radius: 6px;
    transition: .2s;
    display: flex;
    align-items: center;
    gap: .25rem
}

.btn-remove:hover {
    background: rgba(239, 68, 68, .1)
}

.progress-section {
    display: none;
    margin-top: 2rem;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    border: 1px solid var(--border-color)
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem
}

.progress-stats {
    font-size: .9rem;
    color: var(--text-secondary)
}

.progress-bar-container {
    position: relative;
    margin: 1.5rem 0
}

.progress-bar {
    height: 10px;
    background: var(--background-light);
    border-radius: 5px;
    overflow: hidden
}

.processing-log,
.results-grid {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--background-light)
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 5px;
    transition: width .4s cubic-bezier(.4, 0, .2, 1);
    width: 0%
}

.progress-percentage {
    position: absolute;
    right: 0;
    top: -25px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: .9rem
}

.processing-log {
    max-height: 250px;
    background: var(--background-light);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    font-family: 'SF Mono', 'Roboto Mono', monospace;
    font-size: .85rem;
    border: 1px solid var(--border-color)
}

.processing-log::-webkit-scrollbar {
    width: 6px
}

.processing-log::-webkit-scrollbar-track {
    background: var(--background-light);
    border-radius: 3px
}

.processing-log::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 3px
}

.log-entry {
    padding: .5rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: .5rem
}

.log-entry:last-child {
    border-bottom: none
}

.log-entry::before {
    content: "›";
    color: var(--text-secondary);
    font-weight: 700
}

.log-success {
    color: var(--success-color)
}

.log-error {
    color: var(--error-color)
}

.log-info {
    color: var(--text-secondary)
}

.results-section {
    display: none;
    margin-top: 2rem;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
    border: 1px solid var(--border-color)
}

.results-section.visible {
    display: block;
    animation: .5s forwards fadeIn
}

.results-header {
    margin-bottom: 2.5rem
}

.results-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0
}

.stat-item {
    min-width: 100px
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: .5rem
}

.stat-label {
    font-size: .9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .05em
}

.download-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem 0
}

.results-grid {
    display: grid;
    gap: 1.25rem;
    max-height: 600px;
    padding: .5rem
}

.results-grid::-webkit-scrollbar {
    width: 8px;
    height: 8px
}

.results-grid::-webkit-scrollbar-track {
    background: var(--background-light);
    border-radius: 4px
}

.results-grid::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px
}

.result-item1111 {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
    transition: .3s
}

.result-item1111:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .1);
    border-color: var(--primary-color)
}

.result-preview {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 1.5rem;
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0, #e4e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center
}

.result-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s
}

.result-item1111:hover .result-thumbnail {
    transform: scale(1.05)
}

.error-thumbnail {
    font-size: 2rem;
    color: var(--error-color)
}

.result-info {
    flex-grow: 1;
    min-width: 0
}

.result-name {
    font-weight: 600;
    margin-bottom: .75rem;
    overflow: hidden;
    color: var(--text-primary);
    font-size: 1rem
}

.result-stats1111 {
    display: flex;
    gap: 1.5rem;
    font-size: .85rem;
    color: var(--text-secondary);
    flex-wrap: wrap
}

.metadata-status {
    color: var(--success-color);
    font-weight: 500
}

.result-actions {
    flex-shrink: 0;
    margin-left: 1rem
}

.btn-icon {
    background: 0 0;
    border: none;
    cursor: pointer;
    padding: .5rem;
    border-radius: 6px;
    transition: .2s;
    color: var(--text-secondary);
    display: flex
}

.btn-icon:hover {
    background: var(--background-light);
    color: var(--primary-color)
}

.btn-icon svg {
    width: 18px;
    height: 18px
}

@media (max-width:992px) {

    .result-info,
    .result-preview {
        width: 100%;
        margin-bottom: 1rem
    }

    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr))
    }

    .result-item1111 {
        flex-wrap: wrap
    }

    .result-preview {
        margin-right: 0;
        height: 120px
    }

    .result-actions {
        margin-left: auto
    }
}

@media (max-width:768px) {

    .download-actions,
    .results-stats {
        flex-direction: column
    }

    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr))
    }

    .file-preview {
        height: 140px
    }

    .results-stats {
        gap: 1.5rem
    }

    .result-stats111 {
        flex-direction: column;
        gap: .5rem
    }
}

.btn-loader,
.notification {
    align-items: center;
    gap: .75rem
}

@media (max-width:576px) {
    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr))
    }

    .file-preview {
        height: 100px
    }

    .upload-area {
        padding: 1.5rem
    }

    .upload-icon {
        font-size: 2.5rem
    }

    .result-item1111 {
        padding: 1rem
    }
}

.notification-icon,
.step-item h3 {
    font-size: 1.25rem
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.file-item,
.result-item1111 {
    animation: .3s forwards fadeIn
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: #fff;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(400px);
    transition: .4s cubic-bezier(.68, -.55, .27, 1.55);
    max-width: 320px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    display: flex
}

.notification.show {
    transform: translateX(0)
}

.notification-success {
    background: var(--success-color)
}

.notification-error {
    background: var(--error-color)
}

.notification-info {
    background: var(--info-color)
}

.btn-loader {
    display: inline-flex
}

@keyframes spin {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

.btn-loader::after {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: 1s linear infinite spin
}

.how-it-works {
    padding: 2rem 0;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #1e293b;
    font-weight: 700
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto
}

.step-item {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);
    transition: transform .3s, box-shadow .3s
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1)
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #3b82f6;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1.5rem
}

.step-item h3 {
    margin-bottom: 1rem;
    color: #1e293b
}

.step-item p {
    color: #64748b;
    line-height: 1.6
}

@media (max-width:768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 500px
    }

    .step-item {
        padding: 1.5rem
    }
}

@media (max-width:480px) {
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem
    }
}