/* PDF to PNG Specific Styles */

/* Upload Area */
.upload-area {
    margin-bottom: 2rem;
}

.upload-box {
    background: var(--card-bg);
    border: 2px dashed var(--card-border);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-box:hover {
    border-color: var(--primary-color);
    background: rgba(255, 77, 141, 0.05);
}

.upload-icon {
    margin-bottom: 1.5rem;
}

.upload-icon i {
    font-size: 4rem;
    color: var(--primary-color);
}

.upload-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.upload-box p {
    color: var(--text-color-light);
    margin-bottom: 1.5rem;
}

.btn-upload {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 77, 141, 0.3);
}

.upload-info {
    margin-top: 1rem;
}

.upload-info small {
    color: var(--text-color-light);
    font-size: 0.85rem;
}

/* Drag and Drop Effects */
.upload-area.drag-over .upload-box {
    border-color: var(--primary-color);
    background: rgba(255, 77, 141, 0.1);
    transform: scale(1.02);
}

.upload-area.drag-over .upload-icon i {
    animation: bounce 0.6s ease-in-out infinite alternate;
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-10px);
    }
}

/* Files Grid */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    min-height: 200px;
}

.pdf-file-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pdf-file-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pdf-preview {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    position: relative;
}

.pdf-preview i {
    font-size: 2.5rem;
    color: white;
}

.pdf-file-name {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdf-file-size {
    font-size: 0.75rem;
    color: var(--text-color-light);
    margin-bottom: 0.5rem;
}

.pdf-status {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.pdf-status.ready {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.pdf-status.processing {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.pdf-status.completed {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.remove-file-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.remove-file-btn:hover {
    background: #e74c3c;
    transform: scale(1.1);
}

/* Conversion Settings */
.conversion-settings {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 140px;
}

.setting-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.setting-select {
    padding: 0.6rem 1rem;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.setting-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 77, 141, 0.1);
}

/* Convert Button */
.convert-action {
    text-align: center;
    margin-bottom: 2rem;
}

.btn-convert {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 77, 141, 0.3);
}

.btn-convert:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 77, 141, 0.4);
    background: linear-gradient(135deg, #d43f8d, #a23f8d);
}

.btn-convert:active {
    transform: translateY(0);
}

.btn-convert:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-convert i {
    font-size: 1.2rem;
}

/* Results Area */
#results-area {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

#results-area h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-image-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.result-image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.result-image-preview {
    width: 100%;
    height: 100px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.result-image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.result-image-name {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-download-single {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-download-single:hover {
    background: #d43f8d;
}

.download-actions {
    text-align: center;
}

.btn-download-all {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 77, 141, 0.3);
}

.btn-download-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 77, 141, 0.4);
    background: linear-gradient(135deg, #d43f8d, #a23f8d);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .conversion-settings {
        flex-direction: column;
        gap: 1rem;
    }

    .setting-group {
        min-width: 100%;
    }

    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}