:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.image-to-pdf-converter-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.image-to-pdf-converter-container {
    background-color: #f9f9f9;
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-to-pdf-converter-container .container {
    max-width: 800px;
    width: 100%;
}

.image-to-pdf-converter-container .card {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 20px;
}

.image-to-pdf-converter-container .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
    font-weight: 500;
}

.image-to-pdf-converter-container .upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-to-pdf-converter-container .upload-area:hover, 
.image-to-pdf-converter-container .upload-area.dragover {
    border-color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.05);
}

.image-to-pdf-converter-container .upload-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.image-to-pdf-converter-container .browse-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.image-to-pdf-converter-container .browse-btn:hover {
    background-color: var(--primary-dark);
}

.image-to-pdf-converter-container #file-input {
    display: none;
}

.image-to-pdf-converter-container .options-section {
    margin-bottom: 25px;
}

.image-to-pdf-converter-container .section-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.image-to-pdf-converter-container .option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.image-to-pdf-converter-container .option-item {
    flex: 1;
    min-width: 200px;
}

.image-to-pdf-converter-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.image-to-pdf-converter-container input[type="checkbox"] {
    margin-right: 8px;
}

.image-to-pdf-converter-container input[type="number"], 
.image-to-pdf-converter-container select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.image-to-pdf-converter-container input[type="color"] {
    width: 50px;
    height: 40px;
    border: none;
    cursor: pointer;
    background: none;
}

.image-to-pdf-converter-container .convert-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    display: block;
    margin: 30px auto 0;
    transition: all 0.3s;
    width: 100%;
    max-width: 300px;
}

.image-to-pdf-converter-container .convert-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.image-to-pdf-converter-container .image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.image-to-pdf-converter-container .preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.image-to-pdf-converter-container .preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-to-pdf-converter-container .preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.image-to-pdf-converter-container .hidden {
    display: none;
}

@media (max-width: 768px) {
    .image-to-pdf-converter-container .card {
        padding: 20px;
    }
    
    .image-to-pdf-converter-container .option-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .image-to-pdf-converter-container .option-item {
        min-width: 100%;
    }
}