/* Image to PDF Converter - Modern Styling */
.itp-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.itp-header {
    text-align: center;
    margin-bottom: 25px;
}

.itp-header h2 {
    font-size: 28px;
    color: #2c3e50;
    margin: 0 0 10px;
}

.itp-header h2 i {
    color: #e74c3c;
    margin-right: 8px;
}

.itp-info {
    font-size: 14px;
    color: #7f8c8d;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin: 0;
}

/* Upload Area */
.itp-upload-area {
    border: 2px dashed #b0bec5;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    background: #f9fbfd;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 25px;
}

.itp-upload-area i {
    color: #3498db;
    margin-bottom: 10px;
}

.itp-upload-area p {
    font-size: 16px;
    color: #34495e;
    margin: 10px 0 5px;
}

.itp-upload-area .itp-browse-btn {
    color: #3498db;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.itp-upload-area .itp-small-note {
    font-size: 13px;
    color: #95a5a6;
    margin-top: 10px;
}

.itp-upload-area.itp-dragover {
    border-color: #2ecc71;
    background: #e8f8f5;
}

/* Image Preview List */
.itp-image-list {
    list-style: none;
    margin: 0 0 25px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.itp-image-item {
    position: relative;
    width: 120px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background: #ecf0f1;
    cursor: grab;
    transition: transform 0.2s;
}

.itp-image-item:active {
    cursor: grabbing;
    transform: scale(0.98);
}

.itp-image-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}

.itp-image-name {
    display: block;
    font-size: 11px;
    padding: 6px 5px;
    background: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #2c3e50;
}

.itp-remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
    line-height: 1;
}

.itp-remove-btn:hover {
    background: #e74c3c;
}

.itp-remove-btn i {
    pointer-events: none;
}

/* Options Panel */
.itp-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.itp-option-group {
    flex: 1 1 180px;
}

.itp-option-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 14px;
}

.itp-option-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dcdde1;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #2f3640;
    transition: border 0.2s;
}

.itp-option-group select:focus {
    outline: none;
    border-color: #3498db;
}

/* Actions Buttons & Loading */
.itp-actions {
    text-align: center;
}

.itp-btn {
    display: inline-block;
    padding: 14px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.itp-btn-primary {
    background: #3498db;
    color: white;
}

.itp-btn-primary:hover {
    background: #2980b9;
}

.itp-btn-success {
    background: #2ecc71;
    color: white;
    margin-left: 15px;
}

.itp-btn-success:hover {
    background: #27ae60;
}

.itp-btn i {
    margin-right: 8px;
}

.itp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.itp-loading {
    margin-top: 20px;
    font-size: 16px;
    color: #f39c12;
}

.itp-loading i {
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 600px) {
    .itp-container {
        padding: 15px;
    }

    .itp-image-item {
        width: calc(50% - 8px);
    }

    .itp-options {
        flex-direction: column;
        gap: 15px;
    }

    .itp-btn {
        display: block;
        width: 100%;
        margin: 10px 0 0;
    }

    .itp-btn-success {
        margin-left: 0;
    }
}