.convert-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.convert-panel {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.panel-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.mode-options {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.mode-btn {
    flex: 1;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn:hover {
    border-color: #03b025;
    background: #cef2e9;
}

.mode-btn--active {
    border-color: #03b025;
    color: #03b025;
    background: #cef2e9;
}

.output-settings {
    padding: 20px;
    background: #f3f4f6;
    border-radius: 12px;
    margin-bottom: 24px;
}

.setting-section {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.setting-section:last-child {
    margin-bottom: 0;
}

.setting-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.format-options {
    display: flex;
    gap: 12px;
}

.format-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: #374151;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.format-option:hover {
    border-color: #03b025;
    color: #03b025;
    background: #cef2e9;
}

.format-option--active {
    border-color: #03b025;
    color: #03b025;
    background: #cef2e9;
}

.format-option input[type="radio"] {
    display: none;
}

.format-option__text {
    font-size: 14px;
    font-weight: 500;
}

.quality-options {
    display: flex;
    gap: 12px;
    max-width: 100%;
}

.quality-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 30px;
    color: #374151;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.quality-option:hover {
    border-color: #03b025;
}

.quality-option--active {
    border-color: #03b025;
    color: #03b025;
    background: #cef2e9;
}

.quality-option input[type="radio"] {
    display: none;
}

.quality-option__badge {
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    background: #03b025;
    border-radius: 10px;
}

.quality-option__text {
    font-size: 14px;
    font-weight: 600;
}

.quality-option__desc {
    font-size: 11px;
    color: #6b7280;
}

.pdf-settings {
    margin-bottom: 24px;
    padding: 20px;
    background: #f3f4f6;
    border-radius: 12px;
}

.page-size-options {
    display: flex;
    gap: 12px;
}

.page-size-option {
    padding: 10px 30px;
    border: 2px solid #d1d5db;
    color: #374151;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-size-option:hover {
    border-color: #03b025;
}

.page-size-option--active {
    border-color: #03b025;
    color: #03b025;
    background: #cef2e9;
}

.page-size-option input[type="radio"] {
    display: none;
}

.page-size-option__text {
    font-size: 14px;
    font-weight: 500;
}

.page-orientation-options {
    display: flex;
    gap: 12px;
}

.page-orientation-option {
    padding: 10px 30px;
    color: #374151;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-orientation-option:hover {
    border-color: #03b025;
}

.page-orientation-option--active {
    border-color: #03b025;
    color: #03b025;
    background: #cef2e9;
}

.page-orientation-option input[type="radio"] {
    display: none;
}

.page-orientation-option__text {
    font-size: 14px;
    font-weight: 500;
}

.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
    margin-bottom: 24px;
}

.upload-area:hover {
    border-color: #03b025;
    background: #cef2e9;
}

.upload-area__icon {
    margin-bottom: 16px;
    color: #03b025;
}

.upload-area__title {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.upload-area__hint {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

.file-list-wrapper {
    margin-bottom: 24px;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f9fc;
    border-radius: 8px;
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.file-size {
    font-size: 12px;
    color: #6b7280;
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remove-file {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    font-size: 20px;
    color: #ef4444;
    background: #fee2e2;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-file:hover {
    background: #fecaca;
    transform: scale(1.1);
}

.preview-panel {
    margin-top: 24px;
}

.preview-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.preview-item {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-item__header {
    margin-bottom: 12px;
    width: 100%;
    text-align: center;
}

.preview-item__label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.preview-item__img {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-download-single {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    background: linear-gradient(135deg, #03b025 0%, #1CC88A 100%);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-download-single:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 115, 223, 0.4);
}

.btn-download-all {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #03b025 0%, #1CC88A 100%);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 115, 223, 0.4);
}

@media (max-width: 768px) {
    .convert-panel {
        padding: 20px;
    }
    
    .mode-options {
        flex-direction: column;
    }
    
    .format-options {
        flex-direction: column;
    }
    
    .quality-options {
        flex-direction: column;
    }
    
    .preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .upload-area {
        padding: 30px 20px;
    }
}