.convert-api-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.convert-api-upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.convert-api-upload-area.highlight {
    border-color: #4a90e2;
    background-color: #f0f7ff;
}

.convert-api-upload-icon {
    margin-bottom: 15px;
}

.convert-api-upload-icon svg {
    width: 64px;
    height: 64px;
}

.convert-api-upload-text {
    font-size: 18px;
    color: #555;
    margin-bottom: 10px;
}

.convert-api-upload-or {
    margin: 10px 0;
    color: #888;
}

.convert-api-browse-button {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.convert-api-browse-button:hover {
    background-color: #3a80d2;
}

.convert-api-options {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.convert-api-option-row {
    margin-bottom: 15px;
}

.convert-api-option-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.convert-api-option-row select {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.convert-api-option-description {
    margin-top: 5px;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.convert-api-actions {
    text-align: center;
    margin-bottom: 20px;
}

.convert-api-convert-button {
    background-color: #9c6ade;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.convert-api-convert-button:hover {
    background-color: #8c5abe;
}

.convert-api-convert-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.convert-api-result {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.convert-api-download {
    text-align: center;
    margin-top: 20px;
}

.convert-api-download-button {
    background-color: #4caf50;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.convert-api-download-button:hover {
    background-color: #3c9f40;
}

.convert-api-loading {
    text-align: center;
    margin: 20px 0;
}

.convert-api-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #9c6ade;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.convert-api-loading-text {
    color: #555;
}

.convert-api-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #c62828;
}

.convert-api-file-name {
    margin-top: 15px;
    font-weight: bold;
    color: #333;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* PDF Merger specific styles */
.convert-api-file-list {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.convert-api-file-list-help {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.convert-api-sortable-files {
    list-style: none;
    padding: 0;
    margin: 0;
}

.convert-api-file-item {
    display: flex;
    align-items: center;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 10px;
    cursor: move;
}

.convert-api-file-item:hover {
    background-color: #f5f5f5;
}

.convert-api-file-item-icon {
    margin-right: 10px;
    color: #e74c3c;
}

.convert-api-file-item-name {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.convert-api-file-item-size {
    color: #777;
    margin: 0 15px;
}

.convert-api-file-item-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    margin-left: 10px;
}

.convert-api-file-item-remove:hover {
    color: #c0392b;
}

.convert-api-file-item.ui-sortable-helper {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.convert-api-file-item.ui-sortable-placeholder {
    visibility: visible !important;
    background-color: #f0f7ff;
    border: 1px dashed #4a90e2;
}