/**
 * Image to PDF Styles
 */

:root {
    --pdf-primary: #f43f5e;
    --pdf-bg: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
}

.pdf-wrap {
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(244, 63, 94, 0.1);
    background: var(--panel-bg);
    overflow: hidden;
}

.upload-box {
    border: 3px dashed var(--border-color);
    border-radius: 20px;
    padding: 50px 20px;
    text-align: center;
    background: var(--bg-light);
    cursor: pointer;
    transition: 0.3s;
}

.upload-box:hover,
.upload-box.dragover {
    border-color: var(--pdf-primary);
    background: rgba(244, 63, 94, 0.05);
}

.upload-box i {
    font-size: 4rem;
    color: var(--pdf-primary);
    margin-bottom: 20px;
}

/* File List */
.file-list {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.file-item {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    position: relative;
    text-align: center;
    animation: fadeIn-kf 0.3s ease;
}

.file-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.file-item .remove-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: #fff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.options-card {
    background: var(--panel-bg);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid var(--border-color);
    margin-top: 30px;
    display: none;
}

.convert-btn {
    background: var(--pdf-bg);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    width: 100%;
    margin-top: 30px;
    font-size: 1.2rem;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(244, 63, 94, 0.3);
}

.convert-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(244, 63, 94, 0.4);
}

@keyframes fadeIn-kf {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}