.api-key-form-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.api-key-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

/* 统一所有输入框和选择框的基础样式 */
.form-group input,
.form-group .MuiSelect-select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    color: #333;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.submit-button {
    padding: 12px 24px;
    background-color: #1976d2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

.submit-button:hover:not(:disabled) {
    background-color: #1565c0;
}

.submit-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.status-message {
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
}

.status-message.error {
    background-color: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

.status-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
} 

.api-key-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.form-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
    color: #666;
}

.form-divider::before,
.form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: #ddd;
}

.form-divider::before {
    left: 0;
}

.form-divider::after {
    right: 0;
}

.file-input {
    border: 2px dashed #ddd !important;
    padding: 20px !important;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.file-input:hover {
    border-color: #1976d2 !important;
}

.file-hint {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}

.upload-button {
    padding: 12px 24px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
    margin-top: 10px;
    width: 100%;
}

.upload-button:hover:not(:disabled) {
    background-color: #388e3c;
}

.upload-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}
